Skip to main content
PromptQuorum
Home/Power Local LLM/LiteLLM Review 2026: One Gateway for 100+ LLM Provider APIs
Overview & Reference

LiteLLM Review 2026: One Gateway for 100+ LLM Provider APIs

Β·12 min readΒ·By Hans Kuepper Β· Founder of PromptQuorum, multi-model AI dispatch tool Β· PromptQuorum

LiteLLM (github.com/BerriAI/litellm) is an open-source gateway that lets your code call 100+ LLM provider APIs through one OpenAI-compatible interface, instead of writing separate integration code per provider. It ships as a Python SDK (pip install litellm) for direct use inside an application, and as a self-hosted proxy server with a virtual-key admin dashboard for teams that want centralized routing, cost tracking, and rate limiting across multiple apps and users. The core repository is MIT-licensed per its own LICENSE file, with a separate enterprise-license carve-out that applies only to the enterprise/ subdirectory β€” verified directly against the repository's LICENSE file for this review. As of this review, GitHub reports roughly 58,663 stars and 11,415 forks.

LiteLLM (github.com/BerriAI/litellm, docs at docs.litellm.ai) is an open-source LLM gateway that gives your code one OpenAI-compatible interface for calling 100+ different provider APIs β€” OpenAI, Anthropic, Google Gemini, AWS Bedrock, Azure, Ollama, and many others β€” instead of writing separate integration code for each. It ships two ways: an importable Python SDK (pip install litellm) and a self-hosted proxy server with an admin dashboard, deployable via Docker, Helm, AWS ECS Fargate, or Google Cloud Run. This review covers what LiteLLM actually does, how to install and run both modes, its licensing (which is not simply "MIT" across the whole repository), and where it fits next to vLLM, LocalAI, and hosted routing services like OpenRouter.

LiteLLM Review 2026: One Gateway for 100+ LLM Provider APIs

Key Takeaways

  • Open source on GitHub (BerriAI/litellm); roughly 58,663 stars and 11,415 forks as of this review
  • Core repository is MIT-licensed per its own LICENSE file; a separate license applies only to the enterprise/ subdirectory, verified directly against the LICENSE file for this review
  • Two products: the litellm Python SDK (pip install litellm) for calling providers directly from code, and the LiteLLM Proxy Server (`pip install 'litellm[proxy]'`, or Docker) for a self-hosted gateway with an admin dashboard
  • Unifies 100+ provider APIs (OpenAI, Anthropic, Google Gemini, AWS Bedrock, Azure OpenAI, Ollama, and more) behind one request/response format, per the project's own README
  • Features documented in the README and docs site: load balancing, routing, fallback/failover, per-key and per-user budgets, rate limiting, request caching, and spend logging
  • No GPU requirement β€” LiteLLM forwards requests rather than running model weights; the proxy's production deployment needs PostgreSQL (keys, spend data) and Redis (cross-instance rate limiting), not a GPU
  • Deployable via Docker (docker.litellm.ai/berriai/litellm), Helm charts, an official AWS ECS Fargate Terraform module, an official Google Cloud Run Terraform module, or one-click Render/Railway buttons
  • A separate commercial Enterprise tier exists at litellm.ai/enterprise, covering SSO, prioritized feature requests, and dedicated support β€” the open-source SDK and proxy remain fully usable without it

πŸ“ In One Sentence

LiteLLM is an open-source gateway that lets applications call 100+ LLM provider APIs through one OpenAI-compatible interface, available as a Python SDK or a self-hosted proxy server with routing, fallback, cost tracking, and rate limiting.

πŸ’¬ In Plain Terms

If your app needs to talk to OpenAI today and Anthropic or a local Ollama model tomorrow, normally you'd rewrite the integration code for each one. LiteLLM sits in between and translates every provider's API into the same OpenAI-style format, so your code only has to learn one format, and a proxy version adds a dashboard for tracking who's spending what.

πŸ“ŒNote: This review is the deep-dive companion to LiteLLM's entry in the Local LLM Software Directory β€” see that page for how LiteLLM compares at a glance to dozens of other local AI tools.

What Is LiteLLM?

LiteLLM is a gateway that translates one OpenAI-compatible request format into calls against 100+ different LLM provider APIs. Its own GitHub README describes it as "the fastest, litest AI Gateway," built with a Rust core and a Python SDK on top β€” a change from the pure-Python implementation the project shipped in its earlier years. Instead of writing separate client code for OpenAI's API, Anthropic's API, and a local Ollama server, an application calls LiteLLM once, and LiteLLM forwards the request to whichever provider is configured for that model name.

  • Core function: accept a request in OpenAI's chat/completions format (or the target provider's native format), forward it to the configured provider, and return a normalized response
  • Two access modes: the litellm Python SDK, imported directly into an application's code, and the LiteLLM Proxy Server, a standalone service other applications call over HTTP
  • Developer: BerriAI, the organization behind the github.com/BerriAI/litellm repository
  • Not a model runtime: LiteLLM does not load model weights or perform inference itself β€” it routes requests to providers that do, including cloud APIs and local servers like Ollama or vLLM
  • Production-grade proxy features per the docs: virtual API keys, per-key and per-user spend budgets, rate limiting, load balancing across multiple deployments of the same model, and automatic fallback when a provider errors out

What Can You Do With LiteLLM?

LiteLLM's feature set spans request routing, cost control, and reliability β€” the parts of running an LLM-backed application that get harder as you add more providers and more users, per LiteLLM's own documentation.

  • Unified API surface β€” send an OpenAI-format request; LiteLLM translates it to whichever provider's native format the target model requires, and normalizes the response back
  • Routing and load balancing β€” spread traffic across multiple deployments of the same model (for example, several Azure OpenAI regions) to avoid a single point of failure or rate-limit ceiling
  • Fallback and retry logic β€” automatically retry a failed request against a different provider or model deployment instead of surfacing the error to the end user
  • Cost tracking and budgets β€” log spend per API key, per user, or per team, and set hard budget limits that block further requests once exceeded
  • Rate limiting β€” cap requests per minute/token per key or user, enforced across multiple proxy instances via Redis
  • Guardrails and logging β€” hooks for content moderation and observability integrations, plus structured request/response logging for auditing
  • Admin dashboard β€” a web UI (served at /ui on the proxy) for managing virtual keys, viewing spend, and configuring models without editing the config file directly
  • Works with local runtimes too β€” the same routing layer that calls OpenAI or Anthropic can equally point at a local Ollama or vLLM endpoint, letting one gateway mix cloud and local models

Usage Examples: Two Ways to Use LiteLLM

These are concrete workflows built from LiteLLM's documented install paths above β€” not hypothetical use cases.

Install LiteLLM: SDK, Proxy, and Docker

LiteLLM is a framework and self-hosted gateway, not a downloadable end-user app β€” there is no installer to "get" from an app store. Below are the actual install and quickstart commands, per LiteLLM's own documentation and Docker quickstart; always check the docs directly before deploying, since exact flags and image tags can change between releases.

Python SDK

Command:
pip install litellm (or uv add litellm)

Proxy Server (pip)

Command:
`pip install 'litellm[proxy]' then litellm --model gpt-4o`

Proxy Server (Docker)

Command:
docker run -v $(pwd)/config.yaml:/app/config.yaml -e OPENAI_API_KEY=<key> -e LITELLM_MASTER_KEY=sk-1234 -p 4000:4000 docker.litellm.ai/berriai/litellm:latest --config /app/config.yaml

Helm (Kubernetes)

Command:
helm install litellm oci://ghcr.io/berriai/litellm-helm -f values.yaml

AWS ECS Fargate

Command:
Official Terraform module BerriAI/litellm/aws (provisions VPC, Aurora PostgreSQL, ElastiCache Redis, ALB, ECS)

Google Cloud Run

Command:
Official Terraform module BerriAI/litellm/google (provisions Cloud SQL, Memorystore Redis, GCS, HTTPS load balancer)

The proxy defaults to port 4000, with the admin dashboard at http://localhost:4000/ui (default login: username admin, password equal to your LITELLM_MASTER_KEY). A minimal config.yaml needs a model_list array mapping a model_name to litellm_params (the real provider model string plus its API key) β€” see the proxy quick start for a full example. Render and Railway also offer one-click deploy buttons for the proxy, per LiteLLM's deployment docs.

LiteLLM Pricing: Is LiteLLM Really Free?

The open-source SDK and Proxy Server are free β€” you pay only for the underlying provider API calls you route through LiteLLM, plus your own hosting costs. LiteLLM itself does not charge per request or per token for the open-source path. A separate, paid LiteLLM Enterprise tier exists at litellm.ai/enterprise, covering SSO, prioritized feature requests, and dedicated support, per the project's own site β€” this review did not find published Enterprise pricing and recommends contacting LiteLLM directly for a quote.

  • Open-source SDK and Proxy Server: no license fee, MIT-licensed core repository (see the licensing note below)
  • You still pay the provider you route to β€” LiteLLM does not reduce OpenAI, Anthropic, or Bedrock API pricing, it only unifies and tracks it
  • Self-hosting the proxy has its own infrastructure cost: a server or container host, plus PostgreSQL and Redis for production use
  • LiteLLM Enterprise adds SSO, prioritized support, and other business features on top of the same open-source core, per litellm.ai/enterprise β€” pricing is not published and requires contacting the company

LiteLLM vs. vLLM vs. LocalAI

LiteLLM, vLLM, and LocalAI solve different problems that are easy to confuse because all three expose an OpenAI-compatible API. LiteLLM routes requests to models running elsewhere; vLLM and LocalAI actually run the model weights themselves.

Aspect
LiteLLM
vLLM
LocalAI
What it doesRoutes requests to providersServes models itselfServes models itself
Runs model weightsNoYesYes
LicenseMIT (+ enterprise carve-out)Apache-2.0MIT
GPU neededNo (router only)Yes, for real-time servingDepends on model
Best forMulti-provider routing & spend trackingHigh-throughput self-hosted servingSingle self-hosted OpenAI-compatible API

These tools are commonly used together rather than as substitutes: LiteLLM can sit in front of a vLLM or LocalAI deployment as the routing and cost-tracking layer, while vLLM or LocalAI does the actual model inference. See the dedicated vLLM explainer and LocalAI explainer for details on those two.

Who Should Use LiteLLM?

Whether LiteLLM fits depends on whether your application already calls, or plans to call, more than one LLM provider β€” a single-provider app gets less benefit from a routing layer.

LiteLLM vs. Other Gateways and Frameworks

As of this review, LiteLLM is the first router/gateway-category tool covered with its own dedicated review in PromptQuorum's Local LLM Software Directory β€” there is no second same-segment (router/gateway) FeatureAppPost to compare it against directly yet. The closest useful comparisons instead come from adjacent tools in the same "Run & Serve" part of the directory, plus one widely known hosted alternative outside the directory.

  • vLLM β€” a self-hosted inference engine that actually serves model weights (GPU required); commonly paired with LiteLLM rather than competing with it, with LiteLLM as the routing layer in front of one or more vLLM deployments.
  • LocalAI β€” a self-hosted, OpenAI-compatible API server for running open models locally; solves a different problem than LiteLLM (serving vs. routing) but exposes a similar OpenAI-format API, which is a common source of confusion between the two.
  • LangChain β€” an application framework for building LLM-powered apps (chains, agents, memory); it can call LiteLLM (or any provider directly) as its model-access layer rather than replacing what LiteLLM does.
  • OpenRouter (external, not in PromptQuorum's directory) β€” a hosted, managed routing service covering a similar multi-provider use case as LiteLLM's proxy, but as a third-party service you call rather than infrastructure you self-host; worth comparing directly if you want zero-ops routing instead of running your own proxy.

Common Mistakes When Evaluating LiteLLM

Most confusion about LiteLLM comes from conflating it with a model-serving engine, or from oversimplifying its license.

Frequently Asked Questions

What is LiteLLM?

LiteLLM (github.com/BerriAI/litellm) is an open-source gateway that lets applications call 100+ LLM provider APIs through one OpenAI-compatible interface, available as a Python SDK or a self-hosted proxy server with routing, cost tracking, and rate limiting.

Is LiteLLM free?

The open-source SDK and Proxy Server are free β€” you pay only for the underlying provider API calls and your own hosting. A separate paid LiteLLM Enterprise tier adds SSO and dedicated support; its pricing is not published and requires contacting LiteLLM directly.

What license does LiteLLM use?

The core repository is MIT-licensed, per its own LICENSE file. A separate license applies only to the enterprise/ subdirectory, under enterprise/LICENSE β€” verified directly against the repository's LICENSE file for this review.

Does LiteLLM need a GPU?

No. LiteLLM is a request router, not a model-inference engine β€” it forwards calls to providers (cloud APIs or local runtimes like Ollama) rather than running model weights itself, so it runs fine on CPU-only hardware.

How do I install LiteLLM?

For the Python SDK: pip install litellm. For the self-hosted proxy: `pip install 'litellm[proxy]' then litellm --model gpt-4o, or run the Docker image docker.litellm.ai/berriai/litellm:latest with a mounted config.yaml`. See the install table above for Helm, AWS ECS Fargate, and Google Cloud Run options.

Does the LiteLLM proxy require a database?

For production use, yes β€” PostgreSQL persists virtual keys and spend data, and Redis keeps rate limiting consistent across multiple proxy instances, per LiteLLM's own deployment documentation. A quick local test can run without either, but loses those features.

Can LiteLLM route to a locally hosted model?

Yes. The same config.yaml model_list that points at OpenAI or Anthropic can equally point at a local Ollama or vLLM endpoint, letting one gateway mix cloud and local models.

How does LiteLLM compare to OpenRouter?

Both unify multiple LLM providers behind one interface. LiteLLM is self-hosted infrastructure you run yourself (open-source proxy or SDK); OpenRouter is a third-party hosted routing service you call instead of running your own. Choose based on whether you want zero-ops (OpenRouter) or full control and no per-request markup from a router provider (self-hosted LiteLLM).

Who develops LiteLLM?

BerriAI, the organization behind the github.com/BerriAI/litellm repository, which reports roughly 58,663 stars and 11,415 forks as of this review.

Sources

← Back to Power Local LLM