Skip to main content
Local Inference & ServingProduction

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.

63.6k stars 13444 forks Python Language MIT + Enterprise License Last push 2026-11-20

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

  1. Route two providers through one virtual key.
  2. Set a budget and a rate limit, then test both.
  3. 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.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.