{"record":{"id":"45c675d45dd3db0b","repo":"BerriAI/litellm","slug":"project-management-is-an-enterprise-feature-you-m","errorCode":null,"errorMessage":"Project management is an enterprise feature. You must be a LiteLLM Enterprise user to use this feature. If you have a license please set `LITELLM_LICENSE` in your env. Get a 7 day trial key here: https://www.litellm.ai/enterprise#trial. \nPricing: https://www.litellm.ai/#pricing","messagePattern":"Project management is an enterprise feature\\. You must be a LiteLLM Enterprise user to use this feature\\. If you have a license please set `LITELLM_LICENSE` in your env\\. Get a 7 day trial key here: https://www\\.litellm\\.ai/enterprise#trial\\. \nPricing: https://www\\.litellm\\.ai/#pricing","errorType":"http","errorClass":"HTTPException","httpStatus":403,"severity":"error","filePath":"enterprise/litellm_enterprise/proxy/management_endpoints/project_endpoints.py","lineNumber":370,"sourceCode":"    ```\n    \"\"\"\n    from litellm.proxy.proxy_server import (\n        litellm_proxy_admin_name,\n        premium_user,\n        prisma_client,\n    )\n\n    try:\n        if getattr(data, \"tags\", None) is not None and not premium_user:\n            raise HTTPException(\n                status_code=403,\n                detail={\n                    \"error\": \"Only premium users can add tags to projects. \" + CommonProxyErrors.not_premium_user.value\n                },\n            )\n\n        if not premium_user:\n            raise HTTPException(\n                status_code=403,\n                detail={\n                    \"error\": \"Project management is an enterprise feature. \" + CommonProxyErrors.not_premium_user.value\n                },\n            )\n\n        # ADD METADATA FIELDS\n        for field in LiteLLM_ManagementEndpoint_MetadataFields_Premium:\n            if getattr(data, field, None) is not None:\n                _set_object_metadata_field(\n                    object_data=data,\n                    field_name=field,\n                    value=getattr(data, field),\n                )\n                delattr(data, field)\n\n        if prisma_client is None:\n            raise HTTPException(","sourceCodeStart":352,"sourceCodeEnd":388,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/enterprise/litellm_enterprise/proxy/management_endpoints/project_endpoints.py#L352-L388","documentation":"Litellm's project-management REST surface lives in the litellm_enterprise package and is gated by a premium-user check. At startup the proxy validates the LITELLM_LICENSE environment variable and sets the premium_user flag; if the license is missing, expired, or invalid, premium_user is False and POST /project/new is rejected with HTTP 403 before any database write. The message names the exact remedy: set LITELLM_LICENSE or get a trial key.","triggerScenarios":"POST /project/new (any JSON body) against a proxy running without a valid LITELLM_LICENSE, i.e. premium_user is False. This check runs before the prisma_client check, so it fires even when no DATABASE_URL is configured.","commonSituations":"Self-hosting the OSS litellm proxy image and assuming /project/* endpoints are available; forgetting to pass LITELLM_LICENSE into the Docker container or Kubernetes deployment; a license that expired or was mistyped so the startup check silently downgrades premium_user to False after a restart or upgrade.","solutions":["Set a valid enterprise license in the proxy environment (export LITELLM_LICENSE=<key>, or the equivalent env entry in Docker/K8s) and restart the proxy","If evaluating the feature, request the 7-day trial key from https://www.litellm.ai/enterprise#trial and set it the same way","If the variable is already set, verify the key is still valid for the running litellm version and check startup logs for license-validation failures","If you do not intend to license, stop calling /project/* endpoints and model ownership with /team/* and /key/* endpoints instead"],"exampleFix":"# before (403: enterprise feature)\ndocker run -p 4000:4000 litellm/litellm --config /app/config.yaml\n\n# after\ndocker run -p 4000:4000 -e LITELLM_LICENSE='sk-enterprise-...' litellm/litellm --config /app/config.yaml","handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try:\n    r = httpx.post(base + '/project/new', headers=hdr, json=payload)\n    r.raise_for_status()\nexcept httpx.HTTPStatusError as e:\n    if e.response.status_code == 403 and 'enterprise feature' in e.response.text:\n        raise RuntimeError('proxy lacks an enterprise license: set LITELLM_LICENSE on the litellm proxy, not the client') from None\n    raise","preventionTips":["Keep LITELLM_LICENSE in the proxy deployment manifest and verify it at startup","Feature-flag /project/* usage in your client until a licensed proxy is confirmed","Smoke-test one premium endpoint in CI against a licensed staging proxy"],"tags":["litellm","enterprise-license","http-403","project-management"],"backgroundTag":"enterprise-license-required","analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}