LiteLLM
Unified library to interface with multiple LLM API providers.
Model SDKs PyPI
Website GitHub PyPI Its AgentGid profile Hosted service: prices
Used in agent projects
33
0.3% of 12,697 public repos built with AI coding agents
Rank in model sdks
#10 of 15
by use in those projects
Downloads
21.8M
PyPI, last 7 days, litellm
GitHub stars
60.9K
last push Oct 10, 2026
How LiteLLM is used
LiteLLM is a dependency in 33 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #10 of 15 in model sdks. The most used alternative there is OpenAI. Projects that use it most often also use Pydantic (78.8%), python-dotenv (78.8%), FastAPI (69.7%).
Often used with LiteLLM
| Pydantic | 78.8% of LiteLLM projects · 15.4× more than average |
|---|---|
| python-dotenv | 78.8% of LiteLLM projects · 12.1× more than average |
| FastAPI | 69.7% of LiteLLM projects · 16.5× more than average |
| Uvicorn | 63.6% of LiteLLM projects · 14.9× more than average |
| httpx | 42.4% of LiteLLM projects · 20.3× more than average |
| NumPy | 42.4% of LiteLLM projects · 11.1× more than average |
| OpenAI Python Library | 42.4% of LiteLLM projects · 22.1× more than average |
| Pydantic Settings | 42.4% of LiteLLM projects · 21.5× more than average |
By coding agent
| Claude Code | 0.6% of projects set up for it |
|---|---|
| Cursor | 0.7% of projects set up for it |
| GitHub Copilot | 0.4% of projects set up for it |
Share of public repos configured for each agent that list LiteLLM as a dependency.
Install
| Package | pip install litellm |
|---|---|
| Main stacks | Python (32), Other (1) |
| Example projects | dramaclaw/dramaclaw, Kaggle/kaggle-environments, ManojINaik/manimAnimationAgent, RobynAwesome/Introduction-to-MCP, seer-engg/seer |
Alternatives to LiteLLM
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| OpenAI npm Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings. |
362 (2.9%) | 43.2M | 11.2K | Apache-2.0 |
| AI SDK npm Vercel's unified SDK for building AI apps with OpenAI, Anthropic, Google and more. |
328 (2.6%) | 29.8M | 27.2K | Apache-2.0 |
| Google Generative AI npm Official SDK for Google Gemini API to build AI-powered applications. |
258 (2.0%) | 25.3M | 1,686 | Apache-2.0 |
| OpenAI Python Library pypi Official Python SDK to call OpenAI APIs including GPT models and embeddings. |
244 (1.9%) | 75.1M | 31.8K | — |
| Anthropic SDK npm Official TypeScript SDK for calling Claude API and building agent applications. |
211 (1.7%) | 46.5M | 2,136 | MIT |
| Anthropic Python SDK pypi Official Python library for calling Claude via the Anthropic API. |
115 (0.9%) | 40.9M | 3,954 | MIT |
| Google GenAI Python SDK pypi Official Python SDK for Google's generative AI models including Gemini. |
111 (0.9%) | 34.1M | 4,013 | — |
| Hugging Face Hub pypi Python client library for downloading and publishing models and datasets on Hugging Face. |
59 (0.5%) | 60M | 3,974 | Apache-2.0 |