Skip to content
BerriAI/litellm

BerriAI/litellm

github.com • October 21, 2026

Open Source AI Gateway for 100+ LLMs. Self-hosted. Enterprise-ready. Call any LLM in OpenAI format.

LiteLLM Proxy Server (AI Gateway) | Hosted Proxy | Enterprise Tier | Website

LiteLLM is an open source AI Gateway that gives you a single, unified interface to call 100+ LLM providers — OpenAI, Anthropic, Gemini, Bedrock, Azure, and more — using the OpenAI format.

Use it as a Python SDK for direct library integration, or deploy the AI Gateway (Proxy Server) as a centralized service for your team or organization.

Jump to LiteLLM Proxy (LLM Gateway) Docs Jump to Supported LLM Providers

Managing LLM calls across providers gets complicated fast — different SDKs, auth patterns, request formats, and error types for every model. LiteLLM removes that friction:

Unified API — one interface for 100+ LLMs, no provider-specific SDK juggling

Drop-in OpenAI compatibility — swap providers without rewriting your code

Production-ready gateway — virtual keys, spend tracking, guardrails, load balancing, and an admin dashboard out of the box

8ms P95 latency at 1k RPS ( benchmarks )

All Supported Endpoints - /chat/completions , /responses , /embeddings , /images , /audio , /batches , /rerank , /a2a , /messages and more.

An independent litellm-core distribution provides the Python SDK with the same import litellm API and runtime dependencies. It has no optional extras, CLI entry points, or bundled dashboard. Install one SDK distribution per environment because litellm and litellm-core own overlapping Python files. Use litellm for the proxy, CLI, and optional extras

Build and install core from this checkout while its release integration is pending:

The builder requires Git, uv and the Rust build toolchain. It reads the release version from the root pyproject.toml , leaves source files unchanged, and produces a wheel and a self-contained sdist in dist/core . Run installation in a fresh environment without litellm

AI Gateway (Proxy Server)

Getting Started - E2E Tutorial - Setup virtual keys, make your first request

Supported Providers - LangGraph, Vertex AI Agent Engine, Azure AI Foundry, Bedrock AgentCore, Pydantic AI

Python SDK - A2A Protocol

AI Gateway (Proxy Server)

Step 1. Add your Agent to the AI Gateway — set protocolVersion to 1.0 or 0.3 per agent

Step 2. Call Agent via A2A SDK (requires a2a-sdk>=1.1.0 )

Docs: A2A Agent Gateway

Python SDK - MCP Bridge

AI Gateway - MCP Gateway

Step 1. Add your MCP Server to the AI Gateway

Step 2. Call MCP tools via /chat/completions

For MCP OAuth, an upstream may advertise dynamic client registration but refuse requests with HTTP 401 or 403. If the provider requires a pre-registered OAuth app, configure its credentials.client_id and, when required, credentials.client_secret on the MCP server. This skips dynamic registration in the gateway sign-in flow. The provider must approve the app for MCP access; reaching its authorization page does not establish that login or tool calls will succeed

Set LITELLM_PROXY_API_BASE and LITELLM_PROXY_API_KEY and every model call the agent makes goes through your AI Gateway, tagged harness,claude_code . Drop the litellm_proxy/ prefix to call a provider directly. Install starlette uvicorn plus the agent's CLI ( claude , codex , opencode or pi ), or deepagents langchain-litellm for Deep Agents.

Docs: Agent Harnesses

Supported Providers ( Website Supported Models | Docs )

You can use LiteLLM through either the Proxy Server or Python SDK. Both give you a unified interface to access multiple LLMs (100+ LLMs). Choose the option that best fits your needs:

Stable Release: Use docker images with the -stable tag. These have undergone 12 hour load tests, before being published. More information the release cycle here

Support for more providers. Missing a provider or LLM Platform, raise a feature request .

Deploy on AWS or GCP with Terraform

Run the LiteLLM proxy as a production-ready componentized stack (gateway, backend, UI on separate services; managed Postgres + Redis + object store) using the published Terraform modules. Both modules are on the public Terraform Registry — no auth needed.

AWS — ECS Fargate + Aurora + ElastiCache + ALB

— opens an in-browser shell, already authenticated to your AWS account. Once inside, run:

Or call the module from your own root config:

Provider API keys live in AWS Secrets Manager; reference ARNs via gateway_extra_secrets . Full input list and architecture diagram on the registry page .

GCP — Cloud Run + Cloud SQL + Memorystore + HTTPS LB

Real 1-click. Opens Cloud Shell, clones the terraform-google-litellm module mirror at the latest stable release (a small download instead of the full litellm repo), and walks you through terraform apply via a built-in DeployStack tutorial . Pick the project, the tutorial sets up the Artifact Registry remote repo, writes terraform.tfvars from your answers, and runs apply

To call the module from your own config instead, Cloud Run can't pull from ghcr.io directly, so first set up a one-time Artifact Registry remote repo backed by GHCR:

Provider API keys live in Secret Manager; reference resource IDs (e.g. projects/my-gcp-project/secrets/openai-api-key ) via gateway_extra_secrets . Full input list and architecture diagram on the registry page .

The full componentized split (gateway / backend / UI as independent services)

Managed Postgres (writer + reader) and Redis

Versioned object store for proxy state + file uploads

An auto-generated LITELLM_MASTER_KEY in your cloud's secret manager

A one-off migration job that runs prisma migrate deploy before the proxy starts

The same proxy_config surface as the Helm chart — pass YAML as a typed map

The Terraform modules live at terraform/litellm/aws/ and terraform/litellm/gcp/ in this repo; the registry entries are read-only mirrors updated on each release.

Run in Developer Mode

Setup .env file in root

Run dependent services docker-compose up db prometheus

Start proxy backend: uv run python litellm/proxy/proxy_cli.py

Navigate to ui/litellm-dashboard (dependencies were already installed w/ make bootstrap )

Start dashboard: npm run dev

Verify Docker Image Signatures

All LiteLLM Docker images published to GHCR are signed with cosign . Every release is signed with the same key introduced in commit 0112e53 .

Verify using the pinned commit hash (recommended):

A commit hash is cryptographically immutable, so this is the strongest way to ensure you are using the original signing key:

Verify using a release tag (convenience):

Tags are protected in this repository and resolve to the same key. This option is easier to read but relies on tag protection rules:

Replace with the version you are deploying (e.g. v1.83.0-stable ).

For companies that need better security, user management and professional support

Get an Enterprise License Talk to founders

✅ Features under the LiteLLM Commercial License :

✅ Feature Prioritization

✅ Custom Integrations

✅ Professional Support - Dedicated discord + slack

✅ Secure access with Single Sign-On

We welcome contributions to LiteLLM! Whether you're fixing bugs, adding features, or improving documentation, we appreciate your help.

Quick Start for Contributors

This requires uv to be installed.

For detailed contributing guidelines, see CONTRIBUTING.md .

📖 Contributing to documentation? The LiteLLM docs have moved to a separate repository: BerriAI/litellm-docs . Please open doc PRs there. Docs are served at docs.litellm.ai .

📖 Contributing to documentation? The LiteLLM docs have moved to a separate repository: BerriAI/litellm-docs . Please open doc PRs there. Docs are served at docs.litellm.ai .

Code Quality / Linting

LiteLLM follows the Google Python Style Guide .

Our automated checks include:

Ruff for formatting, linting, and code quality

basedpyright for type checking

Circular import detection

All these checks must pass before your PR can be merged.

Our emails ✉️ ishaan@berri.ai / [email protected]

Extracted Entities

Domains (2)