LiteLLM cost of ownership and editions

What LiteLLM costs to run yourself: which governance features need the Enterprise license, what the proxy, PostgreSQL and Redis need, and what people and support add.

On this page

What LiteLLM cost of ownership includes and when to work it out

LiteLLM is MIT licensed, with the exception of its enterprise/ directory, which falls under its own license. Total cost of ownership for a self-hosted gateway is driven by three things: infrastructure, people, and the governance features that need a paid Enterprise license. A platform or security owner usually has to explain this to finance and risk teams before any budget is released, and the estimate is most useful when it is built before the first provider key is connected. It should cover what the open-source core costs to run, what Enterprise would add, and who carries the work of operating it. Teams commission this estimate when they move from a proof of concept to a shared gateway, when a regulator or internal risk function asks how access and logs are controlled, or when a renewal of an existing gateway contract comes up. Some teams build the model in-house, since the components are familiar to platform engineers. Others ask an implementation partner to price the scope in writing, which makes the assumptions easier to check.

Start by confirming the license position in the BerriAI/litellm LICENSE file and in the enterprise license file it references, because the boundary decides which features can be used without a contract. Then list the controls your organization requires, such as SSO beyond five users, audit logs, team-level RBAC, IP allowlisting, secret manager integration, and team guardrails, and map each one to the edition that provides it. Confirm current entitlements with LiteLLM in writing, since the feature set and free-tier limits can change between releases. Keep the one-time costs (design, build, integration, and testing) separate from the recurring ones (compute, PostgreSQL, Redis, on-call time, upgrades, and support). Ask any partner for a quote that states who pays for each line, which environments are included, and what changes when the number of providers, teams, or applications grows.

Which LiteLLM features are free and which need an Enterprise license

The LiteLLM proxy core, virtual keys, budgets, routing and a basic Admin UI are available under the MIT license. Several governance controls that large organizations usually require sit in the Enterprise edition, so the license decision should be made against the controls your review board expects. Check each item below against the current documentation and the license text before you budget.

Open source proxy core

The gateway itself, including the OpenAI-compatible endpoint, provider connections and the Python SDK, sits outside the enterprise/ directory and is covered by the MIT license. Virtual keys, per-key and per-team budgets, TPM and RPM limits, model restrictions and the router's retry and failover behavior are part of this core. Confirm with the vendor and in the license file that your planned usage stays within that boundary.

LiteLLM LICENSE

Admin UI SSO up to five users

Sign-in to the Admin UI through Google, Microsoft Entra ID, Okta or a generic OIDC provider is free for up to five users from v1.76.0. Beyond that limit, an Enterprise license is required. Count the people who will administer keys, budgets and models, not the people who call the API, because only admin sign-in consumes the SSO allowance.

Free SSO limit
5 users
Admin UI SSO docs

SSO beyond five users and SCIM

Enterprise adds SSO for admin users beyond the free limit and SCIM provisioning, which lets your identity provider create, update and remove users in LiteLLM. Without SCIM, offboarding depends on someone remembering to deactivate access. Ask whether your review requires automated deprovisioning, since that requirement alone often decides the edition.

Enterprise docs

JWT authentication and audit logs

JWT authentication accepts identity provider tokens for API callers, so applications can authenticate with corporate identity rather than only with LiteLLM-issued keys. Audit logs record administrative and configuration changes for review. Both are Enterprise features, and both need a design decision on token lifetimes, log retention and where logs are stored before procurement.

Enterprise features

Organization and team RBAC

Role-based access control at the organization and team level separates who can manage keys, budgets and models for each business unit. Teams that share one proxy need this separation to avoid one group changing another group's limits. Confirm the exact roles offered in the current Enterprise documentation against the access model your governance team has drafted.

IP allowlisting, secrets and team guardrails

IP allowlisting restricts where administrative and API traffic may originate. Secret manager integrations with AWS, Azure, Google, HashiCorp Vault and CyberArk keep provider credentials out of configuration files. Team-level guardrails and logging let each team apply its own content rules and log destinations. These controls are Enterprise features, so list which ones your security baseline makes mandatory.

Enterprise controls

What drives LiteLLM cost up or down

This table lists the main inputs that move the cost of a self-hosted LiteLLM gateway and the levers that keep each one under control. Read each row as a question to answer in your own environment before requesting a quote, since most of the spend follows from user count, edition, and how many environments you run.

DriverWhy it moves costHow to keep it down
Users against the five-user SSO limitFrom v1.76.0, admin UI SSO is free for up to 5 users. Beyond that, an Enterprise license is required, so the user count decides whether a license line appears at all.Count admin UI users precisely and assign roles so only those who need the console sign in through SSO. Confirm the current license terms with LiteLLM before rollout.
Proxy pods and workersLiteLLM recommends one Uvicorn worker per pod on Kubernetes and scaling horizontally, so each added pod adds compute and memory to run.Size pods from measured load rather than peak guesses, and scale out only when monitoring shows saturation.
PostgreSQL sizingPostgreSQL is the primary supported database and backs virtual keys, budgets and spend tracking. Spend writes grow with traffic and key count.Use a managed or existing PostgreSQL service if your organization already runs one. Batching spend updates every 60 seconds at scale reduces write pressure.
Redis sizingRedis 7.0 or newer is required once more than one proxy instance runs, for shared rate limits, router state and cache. It becomes a recurring service once HA is needed.Confirm whether a shared cache already exists in your platform. Keep Redis in the same environment and region as the proxy to limit extra infrastructure.
Providers and private modelsEach provider account, credential and self-hosted model adds configuration, testing, key handling and routing rules. Private models also add hosting cost outside LiteLLM.Connect only providers that have approved use cases. Document which models each team may call so unused connections do not need upkeep.
Environments (dev, staging, production)Each environment usually repeats the proxy, database, Redis and secret configuration, so infrastructure and test effort multiply with every environment.Keep dev and staging smaller than production and share non-production infrastructure where your policies allow. Use the same configuration templates across environments.
Compliance evidence needsAssessors may ask for audit logs, access reviews, key rotation records and change history. Producing that evidence takes configuration, retention storage and staff time.Agree the evidence list with your assessor before build starts. Use logging destinations you already operate and avoid custom evidence tooling where a standard export works.
Edition chosenOpen source (MIT) covers the core gateway. Governance features such as audit logs, organization and team RBAC, JWT authentication, SCIM, IP allowlisting and certain secret manager integrations are in the Enterprise edition under the enterprise/ license, which adds a license cost.List the governance controls your policy requires, then check which ones sit in the enterprise/ directory. Request a written quote that separates license fees from implementation and support.

How proxy pods, PostgreSQL and Redis shape the infrastructure bill

The infrastructure bill for a self-hosted LiteLLM gateway is driven by three components: the proxy pods, PostgreSQL and, once you run more than one proxy instance, Redis. The LiteLLM production guide names PostgreSQL as the primary supported database. Virtual keys need a PostgreSQL database, so budgets, per-key limits and key records cannot be run without it. Plan for a managed or highly available PostgreSQL service from the start, and ask your team which database service and backup tier your organization already pays for, since that cost is often absorbed by an existing platform rather than added as a new line.

Redis matters for cost as soon as you scale out. The production guide requires Redis 7.0 or newer once more than one proxy instance runs, because shared rate limits, router state and cache must be consistent across pods. A single-instance pilot can skip Redis, but the moment you add replicas for availability, you add a second managed or self-hosted service to operate and pay for. The guide also suggests a starting point of 1 vCPU and 4 GiB memory per worker, and recommends one Uvicorn worker per Kubernetes pod with horizontal scaling. Multiply that starting point by replicas, environments (development, staging, production) and any disaster recovery copy to estimate the compute line. Spend updates to the database are batched every 60 seconds at scale, which reduces write load on PostgreSQL, so database sizing depends more on key, team and request volume than on raw token throughput.

Treat the suggested starting point as a hypothesis, not a sizing answer. Your actual footprint depends on request rate, prompt and response size, streaming behavior, the number of virtual keys and the routing strategy you choose. Run load tests in your own environment against representative traffic, measure CPU, memory, database connections and Redis latency, and then size pods and database tiers from those results. In the quote from any implementation partner, ask for the load test plan, the assumed request profile and the sizing it produces, and make sure the line items for PostgreSQL, Redis and compute are priced separately so you can see which one drives the bill.

How a cost of ownership estimate is built

The estimate runs in a fixed order, from inventory to edition choice to infrastructure and people, so each cost line traces back to a decision the buyer can check. The result is a one-time and recurring total with its assumptions written down.

  1. Inventory providers, users, teams and traffic

    List every model provider and private model the gateway must reach, the teams and applications that will call it, the approximate number of users and keys, and the traffic each application generates. Owners are the platform lead with input from application teams. The step is done when each provider, team and application has a named owner and a rough request volume written down, even if the volume is an estimate marked as such.

  2. Choose the edition from required governance features

    Write down each governance requirement the security and compliance teams have set, such as SSO beyond five users, SCIM provisioning, JWT authentication, audit logs, organization and team RBAC, IP allowlisting, or secret manager integration. Check each one against the LiteLLM enterprise documentation and the open source license terms in the LICENSE file. The output is an edition decision per requirement, with any feature that needs a license named explicitly and the license quote requested from the vendor.

  3. Size the proxy, PostgreSQL and Redis per environment

    Estimate the number of proxy pods for each environment, such as development, staging and production, using the production guidance of one Uvicorn worker per pod, roughly 1 vCPU and 4 GiB memory per worker, and horizontal scaling. Add a PostgreSQL database, which virtual keys require, and a Redis 7.0 or newer instance once more than one proxy instance runs. The output is a sizing table per environment that lists compute, database and cache resources, with the cloud or data center prices supplied by the client's own infrastructure team.

  4. Estimate people and support hours by role

    Assign hours to each role the rollout needs: platform engineering for deployment and Kubernetes, database administration for PostgreSQL, security for key handling and secret manager work, identity engineering for SSO, application teams for migration, and compliance for evidence. Mark which hours are one-time build work and which are ongoing operations. If an external partner or LiteLLM Enterprise support is included, request the written scope and any SLA terms in the quote rather than assuming them. The output is a role-by-role hours table with the assumption behind each figure.

  5. Separate one-time costs from recurring costs

    Move each line into one of two groups. One-time costs usually include design, initial deployment, integration of applications, migration, initial testing and any license setup fee the vendor quotes. Recurring costs usually include compute, database and cache hosting, license renewals, support subscriptions, upgrade testing across the four supported minor versions, and ongoing operations. The output is two lists with no line in both, and each recurring line states its billing cycle as supplied by the source of the price.

  6. Write totals with assumptions stated

    Add each group into a one-time total and a recurring total, then write every assumption beside the number it affects, including traffic volume, edition, number of SSO users, support tier and infrastructure provider. Show what changes the total most, such as adding a governance feature that requires a license or moving from one proxy instance to several. The output is an estimate document that a CISO or procurement reviewer can challenge line by line, with a clear note that it is a planning figure until the written scope and vendor quote are agreed.

One-time costs versus recurring costs

One-time costs are the work required to get the gateway into a state you can defend to security and compliance reviewers. They are paid when the project starts and do not repeat each year, although they often recur when you add a new provider, team or identity source. Whether the work is done by your staff or a partner, the cost comes from the hours spent and the decisions that must be made before production traffic moves.

  • Design: Decide the provider list, the private models to expose, the team and key hierarchy, the budget model and the logging destinations. Changing these later means reworking keys and configuration.
  • Initial configuration: Build the proxy config, connect PostgreSQL and Redis, set the LITELLM_MASTER_KEY and wire environment variables for each provider account.
  • Identity and secret manager integration: Connect the admin UI to your identity provider and move provider credentials into your secret manager. If you need SSO for more than five users, budget for the Enterprise license at this stage.
  • Application migration: Replace direct provider SDK calls and scattered API keys with the gateway endpoint, one application at a time.
  • Testing and Enterprise license negotiation: Verify routing, fallbacks, budgets and rate limits before cutover. If you plan to use Enterprise features, negotiate the license and support terms during this phase.

Check whether your quote lists each of these as a separate line item, and ask who owns the design decisions after the project closes.

Which cost lines teams keep in-house and which they outsource

This table maps each LiteLLM cost line to the team that usually pays for it, the skills it needs, and whether a partner is worth bringing in. Read it to decide where your own staff are enough and where a scoped outside engagement adds the most value.

Cost lineUsually paid bySkills requiredGood candidate to outsource?
Kubernetes and proxy pod operationsPlatform engineeringKubernetes deployments, Helm or manifests, autoscaling, one Uvicorn worker per pod, upgrade rolloutsPartly, for the initial build and upgrade planning
PostgreSQL operationsPlatform or database teamBackups, restore testing, database migrations between LiteLLM versions, connection sizingPartly, for migration planning and restore testing
Redis operations (multi-instance)Platform engineeringRedis 7.0 or newer, persistence and failover settings, monitoring shared rate limit and router stateRarely, unless the first build is included in scope
Master key and provider credential handlingSecuritySecret manager integration, key rotation, restricting access to LITELLM_MASTER_KEYYes, for a hardening review before go-live
Logging and data retention decisionsSecurity and complianceDeciding what prompts, keys and spend data are logged, where logs go and how long they are keptYes, for an assessment of logging choices
Enterprise license decisionFinance or procurement, with security inputComparing MIT open source features with Enterprise features such as SSO beyond five users, audit logs, RBAC and SCIMNo, but a partner can map which features your requirements need
Support coverage after go-liveIT operations or vendor contract ownerTriage, incident response, reading release notes, staying within the four supported minor versionsYes, through a retainer covering upgrades and testing
Scoped estimate and initial buildBusiness sponsor with technical leadWriting requirements, defining providers and teams in scope, reviewing a written quoteYes, a fixed-scope engagement with written deliverables

Where LiteLLM cost estimates usually go wrong

Most LiteLLM cost estimates fail in the same places: the free tier is assumed to cover more than it does, shared infrastructure is left out of the plan, and support expectations are not priced. Each card below names one gap and the check that closes it before a budget is approved.

Underestimating the five-user SSO limit

SSO for the Admin UI is free for up to 5 users, and an Enterprise license is needed beyond that. Teams often count only the platform engineers and forget the security reviewers, finance users, and team leads who also sign in to the Admin UI. Build a headcount of every person who will log in, add the seats that will be granted over the first year, and compare that number with the free limit before the budget is set. Ask the vendor to confirm how the count is applied in your version.

Admin UI SSO docs

Omitting Redis when a second instance is added

A single proxy instance can run without Redis, but once more than one instance runs, shared rate limits, router state and cache need a common store. LiteLLM's production guide requires Redis 7.0 or newer at that point. Teams that scale out for availability often add pods to the proxy budget and forget the Redis service, its high availability setup, and its operations time. Put Redis in the design from the start, and include its hosting, backup and monitoring in the recurring infrastructure line.

Assuming the free tier covers audit logging

Audit logs, organization and team RBAC, IP allowlisting and secret manager integrations are listed as Enterprise features. An estimate built on the open source edition can look complete until a compliance review asks who changed a budget or which administrator viewed a key. Map each control your assessors will request to an edition, and confirm with LiteLLM in writing which features require a license. If logging is needed, price the Enterprise license or plan a custom logging build with its own maintenance cost.

Enterprise docs

Ignoring upgrade testing across minor versions

LiteLLM maintains support for the four most recent stable minor versions for both editions, so upgrades are recurring work rather than a one-off event. Each release can change database migrations, routing behavior or budget handling, and those changes need a test cycle before production. Budget for staging environments, regression tests of routing and virtual key limits, and the engineering time to plan each upgrade window. Confirm the upgrade cadence your team can sustain before committing to a support model.

Supported minor versions
4
LiteLLM releases

Forgetting Enterprise SLA terms for 24/7 response

Enterprise support includes a dedicated channel with the engineering team, and optional 24/7 SLAs with a 1 hour response for critical issues and 72 hours for security patches. Those SLA terms are an add-on to be priced and written into the contract, not an assumed default. If the business expects around-the-clock response for an AI gateway that carries production traffic, confirm the SLA tier in the quote and check whether your own on-call rota can act on the vendor response. Compare that cost with the cost of an outage on model access.

How the cost picture changes by starting point

A small team starting with a handful of users can run the MIT-licensed core of LiteLLM without buying an Enterprise license. The software itself carries no license fee, so the cost sits in the infrastructure, the time to configure it and the people who run it. Virtual keys, budgets and routing are part of the open source code, but the Admin UI supports SSO free only for up to 5 users, so this starting point assumes a small, named group of administrators.

  • Software fee: None for the MIT-licensed components, according to the LICENSE file in the BerriAI/litellm repository.
  • Database: A PostgreSQL instance is needed for virtual keys, so budget the hosting of one database even at small scale.
  • Staff time: Initial configuration, key issuance and upgrades fall to your own engineers unless you retain a partner.
  • Limited access model: Admin access without SSO means managing local administrator accounts and their lifecycle by hand.
  • Growth trigger: Adding a sixth Admin UI user or a second proxy instance changes the cost profile, so track both.

Check which code paths you use, since anything under the enterprise/ directory is licensed separately and not covered by the MIT terms.

What the client must provide before a cost estimate

A credible estimate starts with a provider and private model inventory: every external provider account, every self-hosted model endpoint, and the models each team expects to call. The count of providers drives connection and testing effort, and the count of private models drives routing and fallback design. Ask the client to list which of these are already contracted and who holds each account, because the gateway will need credentials for all of them and their spend limits will shape the budget settings.

Next, the client should state expected user and team counts, the number of applications that will call the gateway, and the traffic and budget assumptions behind them. Peak request rates, average tokens per request and the monthly spend ceiling per team determine how many proxy pods, PostgreSQL capacity and Redis capacity are needed, and whether the Enterprise license is worth buying for team-level controls. Also confirm the identity provider (Okta, Entra ID, Google or a generic OIDC provider), the secret manager, the Kubernetes or hosting target, and the data retention and logging rules that apply to prompts and spend records. Each of these changes the edition decision and the recurring infrastructure line. Confirm with the vendor, through the LiteLLM Enterprise documentation, which features your identity and secret manager choices depend on before you finalize the list.

Finally, name the owners who will sign off the edition decision, usually a security lead for audit logging and access control, a platform owner for hosting and upgrades, and a budget holder for licensing and support. Ask each owner to confirm in writing which governance features are mandatory, such as SSO beyond five users, audit logs or IP allowlisting, because an unresolved requirement at this stage becomes a change order later. A written scope with these inputs lets a partner quote one-time setup separately from recurring infrastructure, licensing and support.

LiteLLM cost questions buyers ask before hiring help

Is LiteLLM free to run in our own infrastructure?

The core LiteLLM code is free to use, because everything outside the enterprise/ directory is licensed under MIT. The license file in the enterprise/ directory is separate, so check which features you use before assuming they are free. Your real costs are the infrastructure that runs the proxy, PostgreSQL and Redis, the model provider bills you pay for usage, and the people who build, upgrade and operate the gateway. Infrastructure and people recur every month, while build work is mostly one-time. Confirm the license terms against the LiteLLM LICENSE file with your legal team before you commit.

When do we need the LiteLLM Enterprise license?

You need the Enterprise license when you want features that sit in the enterprise/ directory, such as SSO beyond the free user limit, SCIM, JWT authentication, audit logs, organization and team RBAC, IP allowlisting, secret manager integrations and team-level guardrails and logging. Make a feature list from your security and governance requirements, then map each item to the LiteLLM Enterprise documentation. Enterprise also includes support options, which are a separate purchase decision. Ask the vendor for a written quote tied to the exact features and user count you need.

How does the five-user SSO limit work in LiteLLM?

From v1.76.0, LiteLLM's admin UI SSO with Google, Microsoft Entra ID, Okta or generic OIDC is free for up to 5 users. Beyond that limit, an Enterprise license is required for SSO. Count the people who will sign in to the admin UI, not the people who call the gateway with virtual keys, because those are different access paths. Plan your admin roster early, since adding a sixth admin changes the license need. The admin UI SSO documentation describes the setup steps and the current limit, so confirm it against the version you plan to deploy.

What drives the effort and time of a LiteLLM rollout?

Effort follows the number of providers and private models to connect, the number of teams and virtual keys to issue, and how many applications must move onto the gateway. Other drivers are your Kubernetes or VM environment, the PostgreSQL and Redis setup, the identity provider integration, secret manager work, and the number of approval reviews in your change process. Routing, budgets and logging rules add test cycles. Ask any partner to break its quote into these drivers so you can see which ones you control. The production best practices guide lists the infrastructure settings that most affect the plan.

Can our own team estimate and run LiteLLM without a partner?

Many platform teams can deploy LiteLLM themselves if they have Kubernetes, PostgreSQL and Redis experience and time to read the documentation carefully. The questions to answer honestly are whether someone owns upgrades within the four supported minor versions, whether someone can test routing and budgets before each release, and who responds when a provider fails at 2 a.m. Estimate your own effort by listing each driver from the rollout, then assign a named owner and a monthly hour allowance for operations. Compare that with a written, fixed-scope quote before you decide.

What does a partner need from us before quoting LiteLLM work?

A partner needs enough detail to write a fixed scope, so prepare a short inventory before the first call. Include the model providers and private models you want to connect, the teams and applications that will use the gateway, your target hosting environment and network rules, your identity provider, and your logging and retention requirements. Add your compliance drivers and the evidence your auditors ask for, plus any required Enterprise features. Your decision on the Enterprise edition, support level and who operates the system after go-live also shapes the quote. DeployOpen plans and implements in the client's own infrastructure and provides a quote from the written scope, so a clear inventory makes that scope precise.

What support does the LiteLLM Enterprise edition include?

LiteLLM's Enterprise documentation describes a dedicated support channel with the engineering team and optional 24/7 SLAs. Those SLAs list a 1 hour response for critical issues and 72 hours for security patches. These terms are the vendor's, not DeployOpen's, so read the current contract before you rely on them. Support is a recurring cost that sits beside infrastructure and people. Ask the vendor which tier covers your use, whether it applies to self-hosted deployments, and how it interacts with the partner support you buy separately.

How DeployOpen scopes a LiteLLM cost of ownership review

DeployOpen approaches LiteLLM cost of ownership as a written scope: which features need the MIT open source build, which need an Enterprise license, and what the proxy, PostgreSQL and Redis infrastructure costs to run in your own environment. The output is a cost model your finance, security and platform teams can review before you commit.

How we scope

  • Confirm which governance features your controls require, such as SSO beyond five users, SCIM, audit logs and RBAC, and mark each one as open source or Enterprise.
  • Inventory the environments, regions and Kubernetes clusters where proxy pods, PostgreSQL and Redis would run, including any air-gapped networks.
  • Agree the scope, deliverables and timeline in writing before work starts, since most engagements are fixed-scope and the quote follows from that document.

How we build

  • Model one-time costs such as licensing decisions, design, configuration and integration work, and separate them from recurring infrastructure and support lines.
  • Size proxy, database and cache capacity against the production guidance for workers, Redis when multiple instances run, and spend update batching.
  • Test the cost assumptions against a working deployment, including budgets, rate limits and routing behavior, so the model reflects measured usage rather than estimates alone.

How we hand over

  • Deliver a written cost of ownership document with edition comparison, cost drivers, assumptions and the questions to put to Chainscore Labs or LiteLLM before purchase.
  • Provide an itemized list of recurring components, owners and review points, so finance and platform teams can track spend after go-live.
  • Document the sizing inputs and the parts of the model you should revisit when versions change or your provider mix grows.

How we support

  • Keep the cost model current through a retainer covering upgrades, version tracking within the supported minor releases and periodic review of edition fit.
  • Re-run the comparison when your governance requirements change, such as adding SCIM, new secret managers or a larger user base.
  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing against the same cost model.

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.