LiteLLM Alternatives (2026): 8 AI Gateways Compared by Cost, Security & Self-Hosting

Last updated 2026-07-07 Β· Part of Awesome AI Gateway β€” the only AI-gateway list with a reproducible cost benchmark and a security-honest scorecard. ⭐ Star it.

πŸ“Š Key numbers Β· LiteLLM is the most-starred OSS gateway (⭐ 54.9k) but shipped two serious 2026 CVEs β€” a pre-auth SQL injection and an unauthenticated RCE on CISA's KEV list (both fixed in current stable; pin it and don't expose the admin panel) (security scorecard). On cost the model dominates, not the gateway: a 100K-token report ranges $0.03–$3.01 (a ~106Γ— spread, computed 2026-06). Whatever alternative you pick, configure fallback: rate limits alone caused ~β…“ of all LLM errors in production telemetry (Datadog, Mar 2026).

LiteLLM is the default self-hosted LLM gateway β€” one OpenAI-compatible proxy in front of 100+ providers, virtual keys, budgets, load balancing. It's popular for good reason. But people go looking for alternatives for three honest reasons:

  1. Security posture. LiteLLM had two serious 2026 CVEs β€” a pre-auth SQL injection (CVE-2026-42208) and an unauthenticated RCE that landed on CISA's Known-Exploited-Vulnerabilities list (CVE-2026-42271). Both are fixed in v1.83.7-stable β€” if you run LiteLLM, pin to current stable and never expose the admin panel β€” but the track record sends some teams looking.
  2. They don't want to run a server at all β†’ a hosted gateway.
  3. They want lower latency or a different governance model β†’ a Go/Rust-native proxy, or an enterprise guardrail platform.

Here's the honest, data-backed map. Scores are β˜…1–5 from the scorecard rubric (snapshot 2026-06).

TL;DR β€” pick by your actual constraint

AlternativeTypeMarkupSecurityReach for it when
BifrostSelf-hosted (Go)$0β˜…3.5 Β· no known CVEsYou want LiteLLM's job but faster and with a clean CVE record
Portkey Gateway (OSS)Self-hosted (MIT)$0β˜…4.0You want guardrails + circuit breakers + MCP OAuth built in
Kong AI GatewaySelf-hosted$0 coreβ˜…4.0You already run Kong (PII sanitization + RBAC need the Enterprise tier)
Envoy AI GatewaySelf-hosted (K8s)$0β˜…4.0You're Kubernetes/Istio-native and want a CNCF-aligned proxy
OpenRouterHosted~5.5%β˜…3.0You want zero ops and ~340 models in five minutes
Cloudflare AI GatewayHosted0%β˜…4.0You want a free, 0-markup hosted gateway with DLP/PII scanning
Vercel AI GatewayHosted0%β˜…3.5You're on Vercel and want true 0% markup incl. BYOK
new-api / one-apiSelf-hosted$0β˜…1.5–2.0You need a China-friendly relay panel β€” and will patch aggressively
Same task, the model behind the gateway can cost 100Γ— more ($0.03 vs $3.01 for one 100K-token report β€” a 106Γ— spread). Every alternative below lets you route cheap-by-default and escalate only when needed β€” that, not the gateway's own fee, is where the money is.

If you want to stay self-hosted (just better than LiteLLM)

If you'd rather not run a server (hosted alternatives)

If you need a China-friendly relay panel

So, should you actually leave LiteLLM?

Often, no. Patched to v1.83.7-stable and kept off the public internet, LiteLLM is a healthy project with weekly releases and the broadest provider coverage. Leave it when you have a specific reason:

Full scorecard (compliance / markup / security / stability for 20+ gateways) and the reproducible cost tables are in the evaluation set β†’. Browse all gateways by need in Awesome AI Gateway β†’.


Found this useful? ⭐ Star the list β€” it's how the next engineer choosing a gateway finds it. CC0, no signup, no tracking, no vendor money.