Litellm: The fastest, litest AI Gateway
BerriAI/litellmThe fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM
Evaluate and collect.
What the project says.
🚅 LiteLLM LiteLLM AI Gateway 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 --- What 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 Netflix --- Features LLMs - Call 100+ LLMs (Python SDK + AI Gateway) All Supported Endpoints - /chat/completions , /responses , /embeddings , /images , /audio , /batches , /rerank , /a2a , /messages and more. Python SDK 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 Auto Routing - Choose a model for each prompt (Python SDK + AI Gateway) Python SDK Docs: Autorouter SDK Install with uv add litellm and set OPENAI API KEY for the models below. AI Gateway (Proxy Server) Create an Auto Router , then call its model name. Replace auto and the URL below with yours, and set LITELLM API KEY to your virtual key. A2A - Invoke A2A Agents (Python SDK + AI Gateway) 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 MCP Tools - Connect MCP servers to any LLM (Python SDK + AI 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 Use with Cursor IDE 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 Docs: MCP Gateway Agents - Run Claude Code, Codex, OpenCode, pi or Deep Agents on any model (Python SDK) Python SDK - Agents 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 , openco...
Continue the conversation.
Comments, one-level replies, owner highlights, and discussion notifications are included with ORYNT membership.
Sign in with GitHub