Two details from March are worth keeping in view. In 1.82.8 the payload sat in a .pth file, which Python executes at interpreter startup – no import litellm required. And LiteLLM reported that the packages were live for roughly 40 minutes before PyPI quarantined them, which was long enough to matter for any CI job that installed them during that window.
The pattern matters more than any single CVE. An LLM gateway proxy is a credential concentrator: it holds the OpenAI, Anthropic, and Azure OpenAI keys for the entire organization and sees every prompt and every chat completion in plaintext. A bug that would be rated medium severity in an internal microservice is critical here, because a compromise of the proxy server is a compromise of every model relationship behind it. That is why open source maintenance on a gateway is a security question, not a matter of taste.
The Gateway Maintenance Tax: five costs that never appear in the license
Self-hosting is free the way a puppy is free. We call the recurring engineering cost of running your own LLM gateway the Gateway Maintenance Tax, and it has five components:
1. The patch tax. Security fixes are not optional and not scheduled by you. When CISA sets a 14-day remediation clock, your upgrade window is 14 days. LiteLLM also ships fast: in the single week of 27 May – 4 June 2026 the project cut releases across five parallel version lines (1.84.x, 1.85.x, 1.86.x, 1.87.0, and a 1.88.0 release candidate). Someone on your side has to decide which line to track and re-test after every bump.
2. The provider drift tax. Providers change under you. Azure OpenAI addresses models by deployment name rather than model name, the Mistral AI API and Anthropic differ on system messages and tool schemas, and every new model ships a different context window and pricing shape. Keeping one honest chat completion surface across all of them is continuous work, not a one-time integration.
3. The reliability tax. A gateway sitting in front of every AI feature inherits the availability requirement of all of them: real failover, model fallback chains, retry budgets that do not amplify an outage, load testing at the concurrency your agents actually generate – plus the on-call rotation behind it.
4. The access-control tax. Virtual keys are easy to issue and hard to govern: rotation, per-team scoping, SSO/SAML, offboarding, and revocation at scale. Two of the 2026 LiteLLM CVEs were precisely access-control bugs, which is the normal failure mode for this layer, in any product.
5. The attribution tax. Raw token logs are not chargeback. Turning them into per-team, per-department, and per-agent cost lines that finance will accept is its own build – one we covered in LLM cost attribution.
None of these five appear on a pricing page, and all five recur every month.
LiteLLM alternatives 2026: the open-source and managed landscape
The field splits three ways: open source you run yourself, managed services someone else runs, and governance platforms that treat the gateway as one layer of a wider control plane.
| Gateway |
Type |
Licence |
Best fit |
| LiteLLM |
Self-hosted proxy + Python SDK |
MIT |
The widest provider catalog, for teams that can own operations |
| Bifrost |
Self-hosted (Go) |
Apache 2.0 |
Throughput-sensitive traffic, semantic caching, native MCP |
| Kong AI Gateway |
Self-hosted, open core |
Apache 2.0 core |
Organizations already running Kong for API management |
| Envoy AI Gateway |
Self-hosted, Kubernetes-native |
Apache 2.0 |
Istio and service-mesh stacks; still early at v0.x |
| Portkey |
Gateway core plus managed control plane |
MIT core |
Guardrails and observability with a hosted option |
| Helicone |
Self-hosted, observability-first |
Apache 2.0 |
Monitoring and tracing ahead of advanced routing |
| OpenRouter |
Managed router |
Closed source |
Fast access to many models with no infrastructure to run |
| Cloudflare / Vercel AI Gateway |
Managed, edge-attached |
Closed source |
Teams already standardized on that platform |
| OptScale AI |
Managed or on-premises governance platform |
Commercial |
Gateway, guardrails, cost attribution, and agent control in one place |