LiteLLM
$ litellm Official Med RiskLiteLLM (litellm) launches an OpenAI-compatible AI gateway and proxy server across 100+ LLM providers (OpenAI, Anthropic, Bedrock, Vertex, Ollama). From the CLI you can bind a single model (litellm --model ...), load multi-model fallback routing (--config config.yaml), or inspect proxy flags (--help).
pip install litellm litellm acts as a local HTTP proxy daemon unifying 100+ provider SDKs behind a single OpenAI endpoint.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Headless YAML/flag proxy launcher (--config, --port, --detailed_debug), though running litellm blocks as a server daemon.
- Non-interactive
--configand--portflags; runs as a blocking Uvicorn daemon
Proxies live paid API keys and supports LITELLM_MASTER_KEY auth, though misconfigured --host 0.0.0.0 without master keys exposes upstream billing.
- Handles multiple upstream API keys; supports
LITELLM_MASTER_KEY
Cross-platform Python package (pip install 'litellm[proxy]' / litellm) on macOS, Linux, and Windows.
- Cross-platform PyPI distribution (
pip install litellm)
Rapidly exposes 100+ cloud and local models behind one OpenAI-compatible proxy with fallbacks and spend tracking.
- Unified OpenAI-compatible routing across 100+ LLM providers
Actively maintained by BerriAI (BerriAI/litellm) under MIT license for core proxy.
- Official
BerriAI/litellmrepository (MIT core)
Extensive proxy documentation at docs.litellm.ai and clear --help flags.
- Detailed CLI proxy docs at docs.litellm.ai/docs/simple_proxy
Security, Auth & Guardrails
Reads upstream provider keys (OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.) and optional proxy LITELLM_MASTER_KEY from env vars or config.yaml.
MIT open-source core proxy (optional LITELLM_LICENSE for enterprise modules); upstream provider API calls incur billing.
# LiteLLM CLI Agent Rules - Never run `litellm` synchronously in a blocking shell call—it starts a long-lived Uvicorn proxy server. - Bind `--host 127.0.0.1` and configure `LITELLM_MASTER_KEY` when proxying paid upstream API keys.
Agent-Ready Command Recipes
Safe Read-Only Queries
litellm --help
Prints supported --model, --config, --port, --num_workers, and debug flags without starting the server.
Controlled Writes & Previews
litellm --config config.yaml --host 127.0.0.1 --port 4000
Starts a localhost-bound OpenAI-compatible routing proxy using routes defined in config.yaml.
Strengths for Agents
- + One-command OpenAI-compatible gateway across 100+ cloud and local LLM backends.
- + Declarative
config.yamlsupports fallbacks, rate limits, and spend budgets.
Caveats & Pitfalls
- !
litellmblocks indefinitely as an HTTP proxy server. - ! Advanced enterprise RBAC/audit modules require a commercial
LITELLM_LICENSEkey.