LiteLLM license: MIT, the Enterprise license and commercial use

LiteLLM is MIT licensed outside its enterprise/ directory, while that directory falls under the BerriAI Enterprise license. Production use of enterprise code needs a valid license for the correct number of seats.

On this page

Can we use LiteLLM in production under the MIT license?

Code outside litellm/enterprise/ is MIT licensed, and code inside that directory is governed by the BerriAI Enterprise license, which requires a valid license for production use. For most of the gateway, the MIT terms allow you to use, copy, modify, distribute and run the software in production without a subscription, provided the copyright and permission notice stays with every copy or substantial portion. The Enterprise directory is different. Its license permits copying and modifying for development and testing without a subscription, but production use depends on a subscription agreement with BerriAI and a valid license for the correct number of user seats.

This section is for procurement, legal and security leads who need to settle one question before a pilot becomes a production gateway: does our intended use fall entirely under MIT, or does it touch paid features? Legal should read the root LICENSE file and the Enterprise license text directly, since both are short and the boundary is defined by directory. Security and platform leads should map which features the planned gateway will switch on, such as SSO beyond the free user limit, audit logs or team-level guardrails, because those features sit in the Enterprise directory and their production use is the point where the license matters.

Before you approve production use, confirm three things in writing: which LiteLLM version and directory tree you will deploy, which features in your configuration are Enterprise features, and whether your legal review accepts the Enterprise license terms for those features. Ask BerriAI to confirm how the license applies to your seat count and deployment model. Revisit the answer when you upgrade, because the file layout and license terms are maintained in the same repository and can change between releases.

Which license covers which part of LiteLLM

This table compares the MIT-licensed code, the BerriAI Enterprise license code and the license key mechanism across what each permits and requires. Read each row as a separate question: what you may do with the code, what you must keep or agree to, and where the terms stop. The main takeaway is that the licence split follows the directory structure, so the terms that apply depend on which part of the code you run in production.

AreaMIT-licensed code (outside enterprise/)BerriAI Enterprise license (enterprise/ directory)License key mechanism
Covered codeEverything outside the litellm/enterprise/ directoryContent under litellm/enterprise/, governed by enterprise/LICENSE.mdChecks a license key set in the LITELLM_LICENSE variable
Use and copyPermitted, including commercial useCopy and modify permitted for development and testing without a subscriptionNot applicable
Production usePermitted under the MIT termsOnly with BerriAI subscription terms or another governing agreement and a valid licenseRequired to unlock Enterprise Edition features
Distribute and sublicensePermitted, including sale of copiesGoverned by the enterprise license text; confirm terms with the vendor before redistributingNot applicable
What you must keepCopyright and permission notice in all copies or substantial portionsValid license for the correct number of user seatsKey set on each gateway instance, followed by a restart
How validity is checkedNot applicableEnforced through the license terms and seat countSignature checked offline with a public key in the image; the license server is contacted only if that check fails
Regions and instancesNot applicableNot applicableOne key covers all regions that share one database, per the activation docs
Published list priceFree under MITNo list price published on this page; see the LiteLLM pricing pageObtained through the agreement; ask the vendor for written terms

What is free, what is paid and what you still run yourself

LiteLLM splits into MIT-licensed code and code under the BerriAI Enterprise license, so the license you need depends on which files you use. The cards below separate what you can run without a license from what you still pay for in infrastructure, data stores, staff time and upgrades. Vendor Enterprise pricing and sales terms are covered on the LiteLLM pricing page.

Open-source gateway under MIT

Everything outside the litellm/enterprise/ directory is available under the MIT license, which permits use, copying, modification, merging, distribution, sublicensing and sale. The one condition is that the copyright and permission notice stays in all copies or substantial portions. Commercial production use of this code does not require a BerriAI subscription. Check that your build does not pull in files from the enterprise directory without a license.

Read the LICENSE file

Enterprise code needs a license

The enterprise directory is governed by the BerriAI Enterprise license, which allows production use only under a BerriAI subscription or another governing agreement and a valid license for the correct number of user seats. You may copy and modify that code for development and testing without a subscription. Confirm with the vendor which features your seat count and use case require before you deploy them to production.

Read the Enterprise license

Activating the license key

Enterprise features are enabled by setting the LITELLM_LICENSE variable on each gateway instance and restarting it. The gateway checks the key signature offline first and contacts the license server only if that check fails. One key covers every region that shares one database. Record which instances hold the key, since a missed instance will run without Enterprise features.

Activation docs

Infrastructure you pay for

Compute for the proxy is your cost regardless of license. The production guide suggests 1 vCPU and 4 GiB memory per worker, and it recommends one Uvicorn worker per Kubernetes pod with horizontal scaling. Budget for load balancers, certificates, egress and monitoring in the cloud or data center you run. Ask your team to size these against expected request volume before quoting the platform.

Production guide

PostgreSQL and Redis you operate

PostgreSQL is the primary supported database, and virtual keys require it. Redis 7.0 or newer becomes necessary once more than one proxy instance runs, since it holds shared rate limits, router state and cache. Both are recurring operational costs: backups, high availability, patching and capacity growth fall to your team or your managed-service bill. Confirm which of these your platform team already runs before you plan new capacity.

Staff time and upgrades

Your team owns the upgrade cadence. LiteLLM maintains support for the four most recent stable minor versions, so a release line you fall behind on can leave you without vendor-maintained fixes. Plan time for testing each release, applying database migrations and updating the key-holding instances. Estimate this as recurring effort per quarter, and decide whether an internal owner, a retainer or a fixed-scope partner will carry it.

Supported minor versions
Four
LiteLLM releases

Which license position fits your organization

If your team runs the open-source gateway for internal applications and does not need features that sit under the enterprise directory, the code you deploy is almost entirely covered by the MIT license. That license lets you use, copy, modify, merge, publish, distribute, sublicense and sell copies of the software, provided the copyright and permission notice stays in all copies or substantial portions. Internal use does not require a subscription for that code.

  • Keep the notice: Retain the MIT copyright and permission notice in any copies, forks or patched builds you distribute.
  • Confirm the code path: Check that your deployment does not pull in anything from the litellm/enterprise/ directory, which is governed by a different license.
  • Avoid enterprise features by accident: Do not set a LITELLM_LICENSE key unless you have agreed to the Enterprise terms.
  • Record your version: Note the release you run so later upgrades can be checked against the supported release lines.
  • Plan for scale: A single team may later need shared Redis or Enterprise controls, which changes the position.

Before go-live, confirm with your legal or procurement team that internal use is the only use, and that no enterprise-only feature is required by your controls.

How the LiteLLM license key is checked

The Enterprise features are unlocked by setting the license key in the LITELLM_LICENSE environment variable on each gateway instance, followed by a restart. The activation docs then show Enterprise Edition on the gateway. Because the variable is read per instance, your deployment manifests, Helm values or container configuration must set it on every replica, and a restart is needed after any change. Treat the key as a secret: store it in the same secret manager you use for LITELLM_MASTER_KEY, not in a plain configuration file in version control.

On startup the gateway first checks the key signature offline, using a public key shipped in the container image. The key is sent to the LiteLLM license server only if that offline check fails. In practice, a correctly signed key should validate without any outbound call to the vendor. One key is used in every region and covers all regions that share one database, so a multi-region design with separate databases will need its own review of how many keys and which seats apply. Confirm with the vendor under what conditions the online fallback runs, what data it sends, and whether a key can be validated when egress is blocked.

In restricted or air-gapped environments, confirm three things before go-live: whether the image needs any outbound network path to the license server, how the vendor handles a validation failure (whether the gateway keeps running, degrades or refuses Enterprise features), and how a renewed or replaced key is delivered to isolated networks. Ask for these answers in writing and test them in a non-production environment with egress blocked. Record the check in your change process so a future image upgrade does not silently change the license behavior.

What to collect before the license approval

This sequence turns the license question into a written record your legal, security and finance reviewers can sign off on before anyone buys or deploys an Enterprise key. Each step produces a document or check that feeds the approval.

  1. Read the MIT and Enterprise license texts

    Obtain the root LICENSE file from the BerriAI/litellm repository and the Enterprise license at litellm/enterprise/LICENSE.md, then read both in full. Your legal or procurement reviewer should confirm that the MIT grant covers everything outside the enterprise/ directory, and that the Enterprise license governs only the code inside it. Save dated copies of both files and the commit or release they came from, so the reviewed text can be matched to the version you deploy. The step is done when the reviewer can state in one paragraph which code is MIT and which code needs a BerriAI Enterprise license for production use.

  2. Map features in your environment to enterprise code

    Have the platform team list every LiteLLM feature the gateway will use, such as SSO, SCIM, JWT authentication, audit logs, team RBAC, IP allowlisting, secret manager integrations and team-level guardrails or logging. Check each item against the Enterprise documentation and the enterprise/ directory to decide whether it needs licensed code. Record any feature you plan to use that you cannot place clearly, and raise it with the vendor before approval. The output is a feature register that marks each item as open source or Enterprise, which becomes the basis for the seat and key discussion.

  3. Count the user seats the license must cover

    Ask the identity and access owner to count the people who will use the licensed features in production, including administrators, team members and any service accounts your policy treats as users. The Enterprise license terms refer to a valid license for the correct number of user seats, so this count must be exact and documented with its method. Note which groups are in scope and which are excluded, and how the count will change as teams onboard. The step is complete when the count, its source and its review date are recorded in the approval packet.

  4. Confirm regions and databases sharing one key

    Document every region, cluster and PostgreSQL database that will run gateway instances, and state which ones share a database. The activation documentation says one license key is used in every region and covers all regions that share one database, so the topology determines how many keys you request. Ask the vendor to confirm how a separate database or a separate environment is treated before you commit to a design. The output is a topology diagram with a short table of databases and the key each one needs, reviewed by the platform architect.

  5. Confirm the development and testing permissions

    Ask the legal reviewer to confirm what the Enterprise license allows outside production. The BerriAI Enterprise license states that you may copy and modify the enterprise software for development and testing without a subscription, but production use requires the subscription terms or another governing agreement. Write down which non-production environments will run enterprise code and who is responsible for keeping production and test keys separate. The step is done when the reviewer signs a short note that maps each environment to its permitted use.

  6. Review the subscription terms and governing agreement

    Obtain the BerriAI subscription terms or other governing agreement that the Enterprise license refers to, and have legal review term length, renewal, seat changes, termination, data handling and any liability limits. Confirm which document governs if the subscription terms and the license file differ. Ask the vendor for the written quote and the list of what it covers, then compare it with the feature register and seat count from earlier steps. The output is a redline or issue list that the approver can resolve before signature.

  7. Plan the exit path before signing

    Decide in advance what happens if the Enterprise subscription ends or the scope changes. Confirm with the vendor whether the gateway keeps running on the open-source MIT code, which enterprise features stop working, and how configuration, virtual keys, budgets and spend history are retained. Document the steps to switch the gateway back to open-source features and the team that performs them. The step is complete when the exit plan is attached to the approval record and the platform owner has accepted it.

Questions legal and procurement ask before approving LiteLLM

Can we redistribute LiteLLM code under the MIT license?

Yes, for code outside the enterprise/ directory. The MIT license allows you to use, copy, modify, merge, publish, distribute, sublicense and sell copies of the software, provided the copyright and permission notice stay in all copies or substantial portions. Content under litellm/enterprise/ is not MIT. It is governed by the BerriAI Enterprise license, so a legal review should separate the two before anyone packages or redistributes a modified build. Confirm the exact file boundaries against the LiteLLM LICENSE file for the version you plan to deploy.

Do development and testing need an Enterprise subscription?

No, according to the BerriAI Enterprise license text. You may copy and modify the enterprise software for development and testing without a subscription. The subscription requirement applies to production use. Ask the vendor to confirm in writing that your planned test environments, including shared staging clusters and load tests against real provider keys, fall within that allowance.

What counts as production use under the Enterprise license?

The license says enterprise software may only be used in production if you have agreed to BerriAI's subscription terms or another governing agreement and hold a valid Enterprise license for the correct number of user seats. In practice, a gateway serving real applications, teams or customer traffic is production use. Legal teams should ask the vendor how it defines production in the governing agreement, since the license text does not list environments one by one. Any environment that routes live prompts through the gateway should be treated as production until the vendor confirms otherwise.

How are Enterprise seats counted for a LiteLLM license?

The license ties production use to a valid license for the correct number of user seats, but the counting method is set by the governing agreement, not the license file. Ask the vendor to define in writing what constitutes a seat, whether service accounts and API-only consumers count, and how seats are measured over time. Also confirm how seat counts behave across regions that share one database, since the activation docs describe one license key covering all such regions.

Does the LiteLLM license key require internet access?

Not for the usual check. According to the activation docs, the gateway first verifies the license key signature offline using a public key shipped in the image. It sends the key to the LiteLLM license server only if that offline check fails. Network teams running restricted or air-gapped segments should test the fallback path in a staging environment and confirm with the vendor what happens when the license server is unreachable. The key is set in the LITELLM_LICENSE environment variable on each instance, followed by a restart.

What costs sit outside the LiteLLM license?

The license covers only the software terms. Other cost components include the infrastructure you run, such as Kubernetes or virtual machines, PostgreSQL, and Redis 7.0 or newer once more than one proxy instance runs. You also pay model providers for tokens, staff time for deployment and operations, and any Enterprise subscription fees, which are set by the governing agreement. Ask for a quote that separates one-time setup from recurring infrastructure and subscription costs. The LiteLLM pricing page covers vendor pricing in more detail.

What can DeployOpen do to scope a LiteLLM license review?

DeployOpen can help your team map which parts of the deployment fall under MIT and which fall under the BerriAI Enterprise license, based on the edition and version you plan to run. We can list the features you need, identify which of them require a license key, and prepare a written scope for the questions your counsel should send to the vendor, such as seat definitions and production terms. DeployOpen does not provide legal advice or license interpretation on the vendor's behalf. Your legal counsel and the vendor set the terms. Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.

Which LiteLLM version should we use when approving the license?

Approve against the specific release you intend to deploy, because file boundaries and terms can change between versions. The LiteLLM GitHub releases page lists v1.105.1, published October 14, 2026, as the latest release in the supplied sources. LiteLLM maintains support for the four most recent stable minor versions for both open source and Enterprise deployments. Confirm with the vendor which version line they will support for your contract and how upgrades within that window are handled.

What the MIT and Enterprise terms require of you

The LiteLLM code base sits under two sets of terms, and each one attaches different obligations to your team. The cards below cover what the MIT license asks you to keep, what the Enterprise license asks before production use, and what you may do during development and testing. Confirm the full text of both licenses with counsel before you sign or deploy.

Keep the copyright and permission notice

The MIT license grants broad rights to use, copy, modify, merge, publish, distribute, sublicense and sell the software. The one condition attached is that the copyright and permission notice stays in all copies or substantial portions of the software. This applies when you fork the gateway, vendor it into an internal image or ship a modified build. Check that your packaging and internal copies carry the notice from the LICENSE file.

LiteLLM LICENSE file

Enterprise code needs a subscription in production

Content under the enterprise directory is governed by the BerriAI Enterprise license, not MIT. Under that license, production use requires that you have agreed to BerriAI's subscription terms or another governing agreement and hold a valid Enterprise license for the correct number of user seats. Before go-live, map which features you turn on, because enabling Enterprise functionality is what triggers this condition.

Enterprise license text

Seat count sets the license scope

The Enterprise license is tied to a number of user seats, so the license you buy must match the users your gateway serves in production. Ask the vendor how seats are counted for service accounts, shared keys and automated callers, since these may not map to named people. Record the count you licensed and review it whenever user access grows.

Development and testing without a subscription

The Enterprise license allows you to copy and modify the enterprise software for development and testing without a subscription. Teams can build integrations, run evaluations and test configuration on non-production environments under this allowance. The boundary matters: once the same build serves real traffic, the production condition applies. Keep staging and production on clearly separated builds and records.

Fork and modification records

If you modify MIT code or the Enterprise code for development, keep a record of your changes against the upstream release. The MIT license keeps the notice requirement, and the Enterprise license ties production use to your agreement with the vendor. Your change log helps counsel and auditors see which build runs where. Confirm with counsel whether any further notice or disclosure duty applies to your modifications.

Confirm the full terms with counsel

This page summarizes the license conditions and does not replace the license text or legal advice. Obligations beyond the notice requirement and the production condition should come from the full documents, not from this summary. Ask counsel to review the license files for the exact version you deploy, and to confirm how your procurement terms interact with the subscription.

How DeployOpen scopes a LiteLLM license review and deployment

DeployOpen starts with a written review of which LiteLLM code your gateway will run, which features need an Enterprise license key, and how that fits your production plans. We then deploy and document the gateway inside your own infrastructure, so license decisions are recorded before anything reaches production.

How we scope

  • Inventory which LiteLLM features you plan to use and map each one to MIT code or the enterprise/ directory.
  • Confirm whether development, testing or production use is planned, and which Enterprise seat count applies.
  • Agree the review, deployment steps and deliverables in writing before any work starts, as a fixed-scope engagement.

How we build

  • Set up the gateway in your cloud accounts, data centers or air-gapped network, with the license key handled per instance.
  • Configure LITELLM_LICENSE through your secret handling, restart the gateway and confirm the Enterprise Edition status.
  • Test that the chosen edition behaves as the license review predicted, including features gated behind the key.

How we hand over

  • Deliver a written license record covering code origin, permitted use, seat count and renewal dependencies.
  • Document the activation steps, verification checks and which teams own each license decision after handover.
  • Walk your engineering and compliance staff through the findings so they can repeat the review when versions change.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement.
  • Re-check license terms when you move to a new release line or add Enterprise features.
  • Confirm vendor support terms with LiteLLM directly, since DeployOpen does not issue licenses or vendor agreements.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.