LiteLLM

LiteLLM

High-speed open-source AI gateway and Python SDK for calling 100+ LLM APIs in OpenAI format with load balancing and cost tracking.

★ 64.1K

Unify 100+ Cloud and Local AI Models Behind One Gateway With LiteLLM

Every AI provider invents its own SDK, request schema, rate-limit header, and error format, turning multi-model engineering into a maintenance nightmare. LiteLLM removes that chaos by translating over 100 LLM providers—including OpenAI, Anthropic, Gemini, Bedrock, Azure, Vertex AI, and vLLM—into a single OpenAI-compatible interface. With 64.1K GitHub stars and 13,700 forks under the MIT license, it powers AI routing for startups and enterprises alike.

Why Engineering Teams Deploy LiteLLM

  • SDK or Self-Hosted AI Gateway: Import LiteLLM directly in Python or run the centralized proxy server with sub-10ms P95 gateway overhead.
  • Built-In Fallbacks and Auto-Routing: Automatically retry failed requests across backup providers or route prompts by complexity tier.
  • FinOps and Virtual Keys: Issue per-team or per-customer virtual API keys with real-time token spend tracking, hard budgets, and rate limits.
  • MCP and Agent Harness Support: Bridges MCP tool servers and routes coding agents like Claude Code, Codex, and OpenCode through your unified proxy.

Honest Caveats

While the core SDK and proxy are MIT-licensed, certain enterprise SSO and advanced compliance dashboard features live under the enterprise tier. Running the full multi-worker proxy in production also requires pairing it with PostgreSQL and Redis for state and caching.

Quick Takeaway

If your team uses more than one LLM provider and wants centralized cost control, automatic failover, and zero SDK lock-in, LiteLLM is the top open-source AI gateway.

Ready to try LiteLLM?

Experience the full capabilities on their official website.

Visit Official Website