BerriAI/litellm

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing,...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 1 hour ago
Added to GitGenius on April 29th, 2026
Created on July 27th, 2023
Open Issues & Pull Requests: 4,971 (-2)
Number of forks: 10,764
Total Stargazers: 56,870 (+2)
Total Subscribers: 225 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 16.7 hours
Mean response time: 14.0 days
90th percentile: 41.3 days
Tracked items: 6,739

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Almost all tracked open issues have seen activity in the last three months. Only 7% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1,690
New in 7 days: 193
Closed in 7 days: 148
Avg open age: 31 days
Stale 30+ days: 825
Stale 90+ days: 17

Recent activity

Opened in 7 days: 175
Closed in 7 days: 131
Comments in 7 days: 253
Events in 7 days: 784

Top labels

  • bug (4,763)
  • stale (3,294)
  • llm translation (2,516)
  • enhancement (1,754)
  • proxy (1,380)
  • mlops user request (655)
  • SDK (364)
  • ui-dashboard (219)

Detailed Description

LiteLLM is an open source AI Gateway written in Python that provides a unified interface for calling over 100 different large language model providers through a single standardized API format compatible with OpenAI. The project is maintained by BerriAI, a Y Combinator W23 company, and serves as both a Python SDK for direct library integration and a deployable proxy server for centralized LLM access across organizations.

The core problem LiteLLM solves is the fragmentation in the LLM ecosystem. Different providers like OpenAI, Anthropic, Bedrock, Azure, Vertex AI, Cohere, and others each have their own SDKs, authentication patterns, request formats, and error handling mechanisms. LiteLLM abstracts away these differences by presenting a unified OpenAI-compatible interface, allowing developers to swap between providers without rewriting application code. The gateway supports multiple deployment options including direct deployment to Render, Railway, AWS, and GCP through one-click deployment buttons.

As a proxy server and AI gateway, LiteLLM includes production-ready features for enterprise use. These encompass virtual key management, cost tracking and spend monitoring, guardrails for safety and compliance, load balancing across multiple models and providers, comprehensive logging, and an admin dashboard. The gateway achieves 8 milliseconds P95 latency at 1000 requests per second according to published benchmarks, making it suitable for high-throughput production environments.

Beyond basic LLM calls, LiteLLM supports multiple endpoint types including chat completions, embeddings, image generation, audio processing, batch operations, reranking, and agent-to-agent communication. The platform integrates with agent frameworks including LangGraph, Vertex AI Agent Engine, Azure AI Foundry, Bedrock AgentCore, and Pydantic AI through an A2A protocol. Additionally, LiteLLM functions as an MCP gateway, allowing Model Context Protocol servers to be connected to any LLM through the gateway's chat completions endpoint, with specific integration support for Cursor IDE.

The repository shows active development and community engagement.

The project has achieved notable adoption among major technology companies including Stripe, Google, Netflix, and OpenAI, indicating its viability as an enterprise-grade solution. LiteLLM is available on PyPI as a Python package and maintains comprehensive documentation at docs.litellm.ai, with additional resources including Discord and Slack communities for user support. The codebase overlaps with contributors from major projects including Microsoft's VSCode and TypeScript repositories, as well as the Rust language project, suggesting cross-pollination with the broader developer ecosystem.