Skip to main content
← Safety

LiteLLM Proxy (AI Gateway)

BerriAI · LiteLLM
Local Open source Self-hosted Cloud Permission chain webhook MCP guardrails 8 axes checked Active Checked 2026-11-06

Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.

30-second check: should it make your shortlist?

In one line

It is a self-deployed unified entry point, with governance on keys and budgets.…

How you use it

Local + cloud · Local app

Licence / commercial use

Open licence

Read the original licence before commercial use
Mainland China

Direct in mainland · Not checked

These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.

Information not confirmed

  • Hosted details and limits of batch / asynchronous jobs (videos, batches and similar)
  • The full open-source versus Enterprise feature split (only the items the docs mention were verified)
  • Data residency and retention terms of the official hosted cloud
  • Compliance certifications and third-party audit reports
  • Minimum deployment requirements beyond Helm / Terraform (bare-metal sizing, cache needs)

It is a self-deployed unified entry point, with governance on keys and budgets. Officially an open-source AI gateway: one OpenAI-format interface accepts many providers, then turns who can call which model, what it costs and which tools are reachable into configurable objects.

When to use it, when not to

Fit: teams consolidating multi-model access, needing key/team/organisation-level authorisation, and insisting keys and logs stay in their own environment. Not fit: wanting only a thin client SDK, or teams needing vendor-backed hosted guardrails and compliance promises; here guardrails are external services you attach, not a vendor guarantee.

China availability domestic / direct access / CAC filing · snapshot 2026-11-06

Origin
foreign-made BerriAI / LiteLLM (on the PyPI page and official site the same day); an open-source project with no official statement about a China-specific edition.
Direct access
direct OK Same-day probes returned 200 for docs.litellm.ai, www.litellm.ai and pypi.org, so the install route works; self-hosting does not depend on vendor regions. "Usable" here means the self-hosted route, not any compliance claim.
CAC filing
filing unknown:The docs and site say nothing about mainland filing/registration; the public registry was not searched.

Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

8 questions, one table

8 questions, each comparable item by item with its peers.

Model & openness

This is one of its two main axes: the providers page records '100+ LLMs' behind one OpenAI-format API with bring-your-own keys, and self-hosted endpoints on the same page (Ollama, vLLM, Llamafile). Release notes record providers still being added (the 2026-11 entries include Microsoft 365 Copilot and Azure PTU capacity). No guardrail judgement is built in; it comes from external rails you attach.

Where it runs

Self-hosting first: the simple-proxy page records pip install then litellm --config config.yaml, default port 4000. The deploy page records the ghcr.io/berriai/litellm image, a docker run example, Helm / Terraform, a Postgres dependency and the /health/readiness check. The site also records a hosted cloud usage path. Production requiring a database is stated plainly on the simple-proxy page.

Local files

It reads your own config.yaml (model list, key references, guardrail settings); keys and routing definitions stay in your environment, and spend and logs go into the Postgres you manage. It does not read your application source tree - the file surface is configuration plus where you persist data.

Tasks after shutdown

It is a long-running gateway process: queueing, retries and routing happen service-side, and surviving a shutdown depends on how you deploy it (Helm or a VM). The batch and asynchronous job surface (videos / batches) has only appeared in release notes; dedicated pages were official docs do not itemize every sub-detail and are recorded as unknown.

Tools & extensions

The MCP page records it acting as an 'MCP Gateway' offering 'governed access to tools': servers configured through config.yaml or the UI, transports HTTP / SSE / stdio, authentication via OAuth, API keys and AWS SigV4, with access scoped by key, team and organization. A2A, Auto Router, logging and OpenTelemetry pages sit in the documentation navigation.

Context & memory

Context passes through from the caller; the gateway itself keeps no memory and does no compression. Virtual keys, budgets and teams are access-layer boundaries, not context-layer ones, and the effective window is whatever the routed model gives you.

Permissions & limits

Access control is its core: the virtual-keys page records keys minted through /key/generate, model, budget, rate-limit and team scoping, a master key for administration, and scheduled rotation as an Enterprise capability. The guardrails page records that most integrations run in the open-source build while dynamic parameters and per-key rail control need Enterprise. Data flow follows whichever providers you attach. SSO and audit logs sit in the Enterprise framing (simple-proxy page). Compliance certifications and third-party audits were not found on official pages and are recorded as unknown.

Best for

Fits: teams collapsing many providers into one OpenAI-compatible entry point, governing spend and access per key or team, and insisting on self-hosting. Not a fit: anyone wanting only a thin client SDK, nor anyone for whom a vendor-backed hosted guardrail with compliance attestations is a requirement - rails here are external services you plug in, not a vendor guarantee.

Licence and terms of use

MIT (on the PyPI project page, direct-fetched 2026-11-06). The docs record that some operational and governance capabilities belong to the Enterprise edition; the item-by-item boundary is not duplicated here —see the official enterprise pages.

Top misconception

  • 以为开源版就带 SSO 与审计日志。官方 simple-proxy 页把这些写在企业版口径里
  • 以为 MCP 工具接进来就安全。MCP 页在册的是按 key / team / org 的授权面,策略仍要自己配
  • 以为 100+ provider 等于都能挂护栏。护栏集成是另一份清单,逐 key 控制还要企业版

Evidence sources

Checked 2026-11-06,Content updated 2026-11-06。This is the date of the entry, not a claim that every field was rechecked that day.

TypeNameLink
docsLiteLLM · docs home (open-source AI gateway positioning, 100+ models, quickstart, release-notes entry, direct-fetched 200 on 2026-11-06)https://docs.litellm.ai/
docsLiteLLM · Providers (100+ models through one OpenAI format, self-hosted endpoints, direct-fetched 200 on 2026-11-06)https://docs.litellm.ai/docs/providers
docsLiteLLM · Run LiteLLM Proxy (pip install, --config, port 4000, production database, Enterprise capability boundary, direct-fetched 200 on 2026-11-06)https://docs.litellm.ai/docs/simple_proxy
docsLiteLLM · Deploy (image, Docker / Helm / Terraform, Postgres, health check, direct-fetched 200 on 2026-11-06)https://docs.litellm.ai/docs/proxy/deploy
docsLiteLLM · Virtual keys (/key/generate, budgets / rate limits / teams, rotation as Enterprise, direct-fetched 200 on 2026-11-06)https://docs.litellm.ai/docs/proxy/virtual_keys
docsLiteLLM · Guardrails quick start (recorded integration list, config.yaml fields, block versus mask, Enterprise boundary, direct-fetched 200 on 2026-11-06)https://docs.litellm.ai/docs/proxy/guardrails/quick_start
docsLiteLLM · MCP (gateway positioning, transports and authentication, key / team / org authorisation, direct-fetched 200 on 2026-11-06)https://docs.litellm.ai/docs/mcp
changelogLiteLLM · Release notes (v1.108.0 entries dated 2026-11-04, direct-fetched 200 on 2026-11-06)https://docs.litellm.ai/release_notes
changelogLiteLLM · PyPI (MIT licence, 1.108.1 dated 2026-11-05, Python range, direct-fetched 200 on 2026-11-06)https://pypi.org/project/litellm/
docsLiteLLM · official site (open-source gateway, self-host versus cloud, Enterprise feature framing, direct-fetched 200 on 2026-11-06)https://www.litellm.ai/

Test notes

This site has not completed measured runs; nothing here covers routing success rates, latency, guardrail block rates or accounting error.

Suggested measurements (three):

  • Whether per-key spend accounting stays accurate for failed requests, batches and Bedrock inference profiles
  • The real visibility of one MCP tool across key / team / organization layers
  • Latency and blocking behaviour of pre_call versus post_call rails

Capability boundaries

What it governs is on record: model access, budgets and rate limits, team membership, which MCP tools a principal can see, and where external rails attach. What it does not claim: any training-use promise about content safety, or published numbers for how well anything blocks. Per-key rail control and dynamic parameters sit in the Enterprise framing, so the open-source / Enterprise split has to be checked line by line against the official pages.

Change record

Two official streams carry change history: the release_notes page inside the docs and the PyPI release record. Recorded on the verification day: release notes latest v1.108.0 (2026-11-04), PyPI latest 1.108.1 (2026-11-05). Recent entries also show security-relevant actions, such as the 2026-10-24 image-signing key change and trust-bundle adjustment, plus repeated spend-logging fixes - spend accuracy needs measurement, not a changelog headline.

Related entries

  • NeMo GuardrailsSame line: NeMo Guardrails (in gateway and access control); this entry states only what its own official sources support.
  • Amazon Bedrock GuardrailsSame line: Azure AI Content Safety (in gateway and access control); this entry states only what its own official sources support.
  • Azure AI Content SafetySame line: Amazon Bedrock Guardrails (in gateway and access control); this entry states only what its own official sources support.
  • Vercel AI SDK 7Other layer · Frameworks & runtimes

Same-category peers

Look at these three before reading further

Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.

ObjectWhereLicenceEvidence / statusWhat it is for
InspectLocal / self-hostedOpen licence8 questions checked
Active
Inspect is an open evaluation framework from the UK AI Security Institut
Arize PhoenixLocal / self-hostedCommercial terms8 questions checked
Active
Phoenix is an open-licensed observability and evaluation platform that r
LangfuseLocal + cloudOpen licence8 questions checked
Active
Langfuse is an open-source observability and evaluation platform. Its co

This page is generated from the ai-handbook data layer (CC BY 4.0). For the judging criteria and method notes, see METHODOLOGY.md.