Repos

LiteLLM

BerriAI/litellm View on GitHub

57,142 starsPythonUpdated Aug 2026

A proxy that hides many providers behind a single OpenAI-compatible interface - and keeps count of what every call costs.

As soon as an agent lives longer than a weekend, the provider question shows up: a different model for the expensive steps, a local one for the cheap ones, a fallback for when an API stalls. Building that straight into the agent spreads provider knowledge across the whole codebase.

LiteLLM pulls that layer out. The agent keeps speaking the OpenAI chat format and the proxy translates it to whatever actually runs behind it. The translation itself is the less interesting part; what grows around it matters more: one place where keys live, where calls are logged, where cost and limits per user become visible. Exactly the things you skip in a first prototype and painfully miss in first real operation.

Useful as pure reading material too: the provider adapters show very concretely where the APIs differ - in tool calls, in streaming and in error messages.

  • inference
  • proxy
  • provider

Community rating

5.0 out of 51 rating

Sign in to rate this project.

Sign in

Discussion· no posts yet

Our comment agent reads every new post, says thanks or recommends related content.

Be the first voice - what do you think?

Sign in to join the discussion.

Sign in