Skip to content
litellm

litellm

Pypi • November 23, 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 or opencode ), 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 . Releases are signed with the key introduced in commit e82a3c6 .

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 published 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]

Release files for litellm-core 1.108.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .

Source distribution (sdist)

Built distributions (wheels)

Total release size: 226.7 MB

Release files / litellm_core-1.108.16.tar.gz

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Release files / litellm_core-1.108.16-cp310-abi3-win_amd64.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Release files / litellm_core-1.108.16-cp310-abi3-musllinux_1_2_x86_64.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Release files / litellm_core-1.108.16-cp310-abi3-musllinux_1_2_aarch64.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Release files / litellm_core-1.108.16-cp310-abi3-manylinux_2_28_x86_64.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Release files / litellm_core-1.108.16-cp310-abi3-manylinux_2_28_aarch64.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Release files / litellm_core-1.108.16-cp310-abi3-macosx_11_0_arm64.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Release files / litellm_core-1.108.16-cp310-abi3-macosx_10_12_x86_64.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Security for litellm-core 1.108.16

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

All 8 files in this release have been uploaded with provenance metadata.

Attestation for litellm_core-1.108.16.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Attestation for litellm_core-1.108.16-cp310-abi3-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Attestation for litellm_core-1.108.16-cp310-abi3-musllinux_1_2_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Attestation for litellm_core-1.108.16-cp310-abi3-musllinux_1_2_aarch64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Attestation for litellm_core-1.108.16-cp310-abi3-manylinux_2_28_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Attestation for litellm_core-1.108.16-cp310-abi3-manylinux_2_28_aarch64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Attestation for litellm_core-1.108.16-cp310-abi3-macosx_11_0_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Attestation for litellm_core-1.108.16-cp310-abi3-macosx_10_12_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

Nov 21, 2026 8 release files Full provenance

Nov 20, 2026 8 release files Full provenance

Nov 20, 2026 8 release files Full provenance

Nov 19, 2026 8 release files Full provenance

Nov 18, 2026 8 release files Full provenance

Nov 15, 2026 8 release files Full provenance

Nov 15, 2026 8 release files Full provenance

Nov 13, 2026 8 release files No provenance

Nov 13, 2026 8 release files No provenance

Nov 20, 2026 8 release files Full provenance

Nov 19, 2026 8 release files Full provenance

Nov 18, 2026 8 release files Full provenance

Nov 15, 2026 8 release files No provenance

Nov 12, 2026 8 release files No provenance

Nov 10, 2026 8 release files No provenance

Nov 8, 2026 8 release files No provenance

Nov 7, 2026 8 release files No provenance

Nov 20, 2026 8 release files Full provenance

Nov 19, 2026 8 release files Full provenance

Nov 12, 2026 8 release files No provenance

Nov 11, 2026 8 release files No provenance

Nov 4, 2026 8 release files No provenance

Oct 30, 2026 8 release files No provenance

Oct 28, 2026 8 release files No provenance

1.108.16 This release

Nov 23, 2026 8 release files Full provenance

Nov 21, 2026 8 release files Full provenance

Nov 20, 2026 8 release files Full provenance

Nov 20, 2026 8 release files Full provenance

Nov 19, 2026 8 release files Full provenance

Nov 17, 2026 8 release files Full provenance

Nov 16, 2026 8 release files Full provenance

Nov 14, 2026 8 release files No provenance

Nov 13, 2026 8 release files No provenance

Nov 12, 2026 8 release files No provenance

Nov 12, 2026 8 release files No provenance

Nov 10, 2026 8 release files No provenance

Nov 9, 2026 8 release files No provenance

Nov 7, 2026 8 release files No provenance

Nov 6, 2026 8 release files No provenance

Nov 5, 2026 8 release files No provenance

Nov 4, 2026 8 release files No provenance

Oct 29, 2026 8 release files No provenance

Oct 21, 2026 8 release files No provenance

Nov 14, 2026 8 release files No provenance

Nov 5, 2026 8 release files No provenance

Oct 20, 2026 8 release files No provenance

Oct 18, 2026 8 release files No provenance

Oct 16, 2026 8 release files No provenance

Oct 15, 2026 8 release files No provenance

Oct 14, 2026 8 release files No provenance

Nov 20, 2026 8 release files Full provenance

Nov 19, 2026 8 release files Full provenance

Nov 14, 2026 8 release files No provenance

Nov 12, 2026 8 release files No provenance

Nov 11, 2026 8 release files No provenance

Nov 4, 2026 8 release files No provenance

Oct 28, 2026 8 release files No provenance

Oct 27, 2026 8 release files No provenance

Oct 25, 2026 8 release files No provenance

Oct 24, 2026 8 release files No provenance

Oct 21, 2026 8 release files No provenance

Oct 20, 2026 8 release files No provenance

Oct 18, 2026 8 release files No provenance

Oct 15, 2026 8 release files No provenance

Oct 14, 2026 8 release files No provenance

Oct 13, 2026 8 release files No provenance

Oct 11, 2026 8 release files No provenance

Oct 9, 2026 8 release files No provenance

Extracted Entities