LiteLLM
BerriAI / litellm
A gateway and SDK that normalises 100+ model APIs into an OpenAI-compatible format, with a Rust core, virtual keys, cost tracking, rate limits, load balancing, guardrails, logging and caching, self-hostable.
Why choose it
- One API shape across providers.
- Virtual keys, budgets and rate limits centralise control.
- Self-hosting keeps logs and keys in your infrastructure.
Not for
You use one provider and one key with no routing needs.
You cannot operate a gateway service.
The enterprise catalogue has separate licensing; do not treat the whole repository as pure MIT.
Minimum setup
- Route two providers through one virtual key.
- Set a budget and a rate limit, then test both.
- Check that logs redact prompts and keys as expected.
Dependencies and cost
Check runtime, model weights and external service dependencies in the README.
License and usage boundaries
Code is MIT + Enterprise; model weights, training data and generated content may have separate terms — check each before commercial use.
Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.
Alternatives and neighbors
- vLLM — Scale / performance,A high-throughput inference and serving engine with PagedAttention, continuous batching and multi-GPU support.
- Ollama — Start here,Pull and run local models with one command, with a built-in model library and an OpenAI-compatible API.
- LocalAI — Local-first,A local OpenAI-compatible API supporting text, image and speech backends.
Next steps
- Open GitHub and read the README, LICENSE, latest release and issues first.
- Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
- Run a small sample first, then decide on production; never start with production data.