litellm
Call 100+ LLM APIs with one interface using LiteLLM — unified API proxy for OpenAI, Anthropic, Google, Mistral, Cohere, and self-hosted models. Use when someone asks to "switch between LLM providers", "LiteLLM", "unified LLM API", "LLM proxy", "call Claude and GPT with the same code", "LLM load balancing", or "multi-model AI gateway". Covers provider routing, fallbacks, rate limiting, spend tracking, and self-hosted proxy.
npx skills add majiayu000/claude-skill-registry --skill litellm-terminalskills-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LiteLLM ## Overview LiteLLM provides a single API to call 100+ LLM providers — OpenAI, Anthropic, Google Gemini, Mistral, Cohere, Azure, Bedrock, Ollama, and more. Write your code once using the OpenAI SDK format, then switch providers by changing a model string. As a proxy server, it adds load balancing, fallbacks, rate limiting, spend tracking, and API key management for teams. ## When to Use - Using multiple LLM providers and want a unified interface - Need automatic fallbacks (if Claude is down, use GPT) - Cost tracking across multiple providers and teams - Load balancing requests across multiple API keys or models - Self-hosted proxy to manage LLM access for a team ## Instructions ### Setup ```bash pip install litellm # Or run as proxy server pip install 'litellm[proxy]' ``` ### SDK Usage (Python) ```python # llm.py — Call any LLM with the same interface from litellm import completion # OpenAI response = completion( model="gpt-4o", messages=[{"role": "user", "content": "Hello!"}], ) # Anthropic — same interface, just change the model string response = completion( model="claude-sonnet-4-20250514", messages=[{"role": "user", "content": "Hello!"}], ) # Google Gemini response =
- Overview
- When to Use
- Instructions
- Setup
- SDK Usage (Python)
- Proxy Server
- Node.js via Proxy
- Spend Tracking
- Examples
- Example 1: Multi-provider AI application
- Example 2: Team LLM gateway with cost controls
- Guidelines
pip install litellm Or run as proxy server pip install 'litellm[proxy]' Start proxy litellm --config litellm_config.yaml --port 4000 Call via OpenAI SDK (any language!) curl http://localhost:4000/v1/chat/completions \
What does the litellm skill do?
Call 100+ LLM APIs with one interface using LiteLLM — unified API proxy for OpenAI, Anthropic, Google, Mistral, Cohere, and self-hosted models. Use when someone asks to "switch between LLM providers", "LiteLLM", "unified LLM API", "LLM proxy", "call Claude and GPT with the same code", "LLM load balancing", or "multi-model AI gateway". Covers provider routing, fallbacks, rate limiting, spend tracking, and self-hosted proxy.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill litellm-terminalskills-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
