litellm 1.89.2
pip install litellm
Released:
Library to easily interface with LLM API providers
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
-
License Expression: MIT
SPDX License Expression - Author: BerriAI
- Requires: Python <3.14, >=3.10
-
Provides-Extra:
caching,extra-proxy,google,grpc,mlflow,proxy,proxy-runtime,semantic-router,stt-nvidia-riva,utils
Project description
๐ LiteLLM
LiteLLM AI Gateway
Open Source AI Gateway for 100+ LLMs. Self-hosted. Enterprise-ready. Call any LLM in OpenAI format.
๐ Deploy to Render
๐ Deploy on Railway
LiteLLM Proxy Server (AI Gateway) | Hosted Proxy | Enterprise Tier | Website
๐ PyPI Version
๐ GitHub Stars
๐ Y Combinator W23
๐ Whatsapp
๐ Discord
๐ Slack
๐ CodSpeed
๐ LiteLLM AI GatewayWhat is LiteLLM
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
Why LiteLLM
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)
OSS Adopters
| ๐ Stripe |
๐ image |
๐ Google ADK |
๐ Greptile |
๐ OpenHands |
Netflix |
๐ OpenAI Agents SDK |
Features
Supported Providers (Website Supported Models | Docs)
Get Started
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:
| LiteLLM AI Gateway | LiteLLM Python SDK | |
|---|---|---|
| Use Case | Central service (LLM Gateway) to access multiple LLMs | Use LiteLLM directly in your Python code |
| Who Uses It? | Gen AI Enablement / ML Platform Teams | Developers building LLM projects |
| Key Features | Centralized API gateway with authentication and authorization, multi-tenant cost tracking and spend management per project/user, per-project customization (logging, guardrails, caching), virtual keys for secure access control, admin dashboard UI for monitoring and management | Direct Python library integration in your codebase, Router with retry/fallback logic across multiple deployments (e.g. Azure/OpenAI) - Router, application-level load balancing and cost tracking, exception handling with OpenAI-compatible errors, observability callbacks (Lunary, MLflow, Langfuse, etc.) |
Stable Release: Use docker images with the -stable tag. These have undergone 12 hour load tests, before being published. More information about the release cycle here
Support for more providers. Missing a provider or LLM Platform, raise a feature request.
Run in Developer Mode
Services
- Setup .env file in root
- Run dependent services
docker-compose up db prometheus
Backend
- (In root) create virtual environment
python -m venv .venv - Activate virtual environment
source .venv/bin/activate - Install dependencies
uv sync --all-extras --group proxy-dev uv run prisma generateprisma generate- Start proxy backend
python litellm/proxy/proxy_cli.py
Frontend
- Navigate to
ui/litellm-dashboard - Install dependencies
npm install - Run
npm run devto start the dashboard
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:
cosignverify\ --keyhttps://raw.githubusercontent.com/BerriAI/litellm/0112e53046018d726492c814b3644b7d376029d0/cosign.pub\ ghcr.io/berriai/litellm:<release-tag>
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:
cosignverify\ --keyhttps://raw.githubusercontent.com/BerriAI/litellm/<release-tag>/cosign.pub\ ghcr.io/berriai/litellm:<release-tag>
Replace <release-tag> with the version you are deploying (e.g. v1.83.0-stable).
Enterprise
For companies that need better security, user management and professional support
Get an Enterprise License Talk to founders
This covers:
- โ Features under the LiteLLM Commercial License:
- โ Feature Prioritization
- โ Custom Integrations
- โ Professional Support - Dedicated discord + slack
- โ Custom SLAs
- โ Secure access with Single Sign-On
Contributing
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.
gitclonehttps://github.com/BerriAI/litellm.git cdlitellm makeinstall-dev# Install development dependencies makeformat# Format your code makelint# Run all linting checks maketest-unit# Run unit tests makeformat-check# Check formatting only
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.
Code Quality / Linting
LiteLLM follows the Google Python Style Guide.
Our automated checks include:
- Black for code formatting
- Ruff for linting and code quality
- MyPy for type checking
- Circular import detection
- Import safety checks
All these checks must pass before your PR can be merged.
Support / talk with founders
- Schedule Demo ๐
- Community Discord ๐ญ
- Community Slack ๐ญ
- Our emails โ๏ธ ishaan@berri.ai / krrish@berri.ai
Contributors
๐ ImageProject details
Unverified details
These details have not been verified by PyPIProject links
Meta
-
License Expression: MIT
SPDX License Expression - Author: BerriAI
- Requires: Python <3.14, >=3.10
-
Provides-Extra:
caching,extra-proxy,google,grpc,mlflow,proxy,proxy-runtime,semantic-router,stt-nvidia-riva,utils
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file litellm-1.89.2.tar.gz.
File metadata
- Download URL: litellm-1.89.2.tar.gz
- Upload date:
- Size: 14.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2534d69568eed026310f4e006407db2d46494eb629bd1e71eb9603ec146540d
|
|
| MD5 |
944188d1adf07a26183032ba2d230c8f
|
|
| BLAKE2b-256 |
c129865d38325f9c424daf0bcc7ab61908cf51a87862b3a0dfebd059b60dac97
|
File details
Details for the file litellm-1.89.2-py3-none-any.whl.
File metadata
- Download URL: litellm-1.89.2-py3-none-any.whl
- Upload date:
- Size: 15.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07e8e43b1a70fe919021376742897d18ffe7577ccfbb84632c949670f9abdc03
|
|
| MD5 |
02b02cd14a5aea0d46af41b4cb90c4b9
|
|
| BLAKE2b-256 |
32c851c93e8d017e7af02600171b5b6cc3805b07507acb2b94de7235ce764015
|
