LiteLLM
An open-source **model gateway** that abstracts the complexity of calling hundreds of different LLM endpoints behind a unified, OpenAI-compatible API. Provides load balancing, automatic failover, cost optimization, rate limiting, and — critically for S3-relevance — **semantic-cache backends targeting S3** (`type: s3` in the LiteLLM config schema). When a query hits the gateway with a high-confidence semantic match against a cached prompt, LiteLLM returns the cached response instantly, bypassing the upstream LLM provider and the associated per-token cost.
Definition
An open-source **model gateway** that abstracts the complexity of calling hundreds of different LLM endpoints behind a unified, OpenAI-compatible API. Provides load balancing, automatic failover, cost optimization, rate limiting, and — critically for S3-relevance — **semantic-cache backends targeting S3** (`type: s3` in the LiteLLM config schema). When a query hits the gateway with a high-confidence semantic match against a cached prompt, LiteLLM returns the cached response instantly, bypassing the upstream LLM provider and the associated per-token cost.
Production LLM deployments rarely commit to a single model vendor — costs shift, capability windows move, regional availability varies, and failover requirements force multi-provider strategies. LiteLLM provides a single API surface that hides the multi-vendor complexity, plus an S3-backed semantic cache that converts repetitive agentic queries into near-zero-cost lookups. The S3 cache layer is the operationally interesting piece: it survives across gateway restarts and is shared across all gateway instances behind a load balancer.
Multi-LLM-provider serving with unified API, S3-backed semantic prompt caching for cost optimization, automatic failover across model vendors, audit-log streaming to S3 for observability and compliance, gateway-as-rate-limiter for cost governance.
Recent developments
Latest release: v1.97.0 (stable, August 16, 2026), succeeding v1.96.0. 1.97.0 drops conflicting tool choices for Bedrock and improves transport backoff handling. LiteLLM dropped the
-stableversion suffix at v1.84.0 and now ships plain semver; the legacymain-stableDocker tag is deprecated (retired June 30, 2026). Per BerriAI/litellm releases.Supply-chain history to know: versions 1.82.7 and 1.82.8 were compromised on PyPI (March 2026). The TeamPCP supply-chain campaign published malicious LiteLLM releases via a compromised CI action — one of the highest-profile PyPI compromises of 2026 given LiteLLM's position in front of production LLM traffic. The 1.9x line is clean and the project remains highly active, but any environment that installed 1.82.7/1.82.8 during the exposure window should be treated as compromised and rotated. A concrete reminder that the LLM-router layer concentrates credentials for every provider behind it. Per Datadog Security Labs' TeamPCP analysis.
140+ providers, 2,500+ models behind a single OpenAI-compatible interface (March 2026). Covers OpenAI, Anthropic, Google Gemini, AWS Bedrock, Azure, Mistral, Ollama, vLLM, plus emerging providers like Nebius AI. The reference "one gateway to call them all" pattern for production LLM stacks. Per a2a-mcp — What Is LiteLLM? 140+ Providers 2026.
~40K GitHub stars, 1,300+ contributors. Among the most-actively maintained AI infrastructure projects in 2026; rapid model additions as new providers launch. Per GitHub — BerriAI/litellm.
Agent Hub, MCP support, sidecar architecture added. 2026 LiteLLM releases extended the proxy with an Agent Hub (cross-team agent registry), Model Context Protocol integration, and a sidecar architecture that reduces proxy overhead for high-QPS deployments. Per Nerd Level Tech — LiteLLM Proxy Production Tutorial 2026.
Production stack: Docker Compose + Postgres + virtual keys + per-team budgets + auto-failover. Standard 2026 deployment shape: LiteLLM proxy with Postgres for analytics/spend tracking, virtual API keys per team, and automatic fallback routing across Claude Sonnet 4.6 / GPT-5.4 / Gemini 2.5 Pro. Per Nerd Level Tech — LiteLLM Proxy Production Tutorial 2026.
Multi-tenant features: per-project logging/guardrails/caching, virtual keys, admin UI. Production-grade governance layer means LiteLLM is increasingly chosen at the platform-team level, not just by individual app developers. Per LiteLLM — AI Gateway docs.
Maxim 2026 LLM-router benchmark places LiteLLM in the top tier. Alongside Portkey, Helicone, and Vercel AI Gateway — LiteLLM wins on provider count and OSS extensibility; commercial gateways win on managed-service polish. Per Maxim — Top 5 LLM Router Solutions 2026.
The March compromise now has a CVE and a wider blast radius than "two bad releases." CVE-2026-33634 (CVSS 9.4): the TeamPCP campaign first poisoned Aqua Trivy's GitHub Actions, harvested publishing credentials from CI pipelines running the compromised scanner, propagated the CanisterWorm across npm, hijacked Checkmarx KICS and Docker Hub images, and published LiteLLM 1.82.7/1.82.8 to PyPI on March 24, 2026. The payload writes
litellm_init.pthinto site-packages — executing on every Python interpreter start — so uninstalling LiteLLM does not disinfect a host. Remediation consensus: destroy affected environments, rotate all cloud and AI-provider keys, pin CI dependencies to immutable SHAs. Per Averlon — CVE-2026-33634, Trend Micro — inside the LiteLLM compromise, and Unit 42 — TeamPCP.Final incident scope (September 2026 verification): 1,000+ enterprise SaaS environments affected; no new AI-toolchain compromises of this magnitude since late August. The blast radius traces to LiteLLM's position as a transitive dependency inside many AI gateways — the
.pthpersistence triggered an exponential fork loop (litellm_init.pth) on interpreter startup, driving RAM exhaustion and lateral-movement attempts across Kubernetes clusters (independent-methodology security analysis). The structural flaw stands regardless: poisoned CI/CD tooling can inject backdoors into AI-orchestration libraries that auto-execute at startup. Per Arctic Wolf — TeamPCP campaign scope and Cycode — LiteLLM supply-chain attack response. Sources: GitHub — BerriAI/litellm · LiteLLM — AI Gateway docs · a2a-mcp — What Is LiteLLM? 140+ Providers 2026 · Nerd Level Tech — LiteLLM Proxy Production Tutorial 2026 · Maxim — Top 5 LLM Router Solutions 2026
Connections10
Outbound7
scoped_to2implements1stores1acts_as1Inbound3
competes_with2related_to1