Skip to content

LiteLLM alternatives: 6 gateways compared for 2026

The best LiteLLM alternatives for teams that run the SDK or the proxy today: six gateways compared on overhead, footprint, licensing, and migration effort.

Published
Reading time
17 min read

In short

  • LiteLLM is an open-source Python SDK and proxy that calls 100+ LLM providers in the OpenAI format. Teams leave it for four reasons: proxy overhead under load, a Postgres and Redis footprint, features behind an enterprise license, and two incidents in 2026 in which malicious releases were published.
  • LiteLLM's own November 2026 benchmark measured its Python proxy at 79.3 ms of median overhead with production features on, and the project is moving its hot path to Rust with a December 1, 2026 milestone. If overhead is the only complaint, waiting is a defensible choice.
  • Bifrost is the strongest LiteLLM alternative for teams that keep self-hosting: a Go gateway with a tool that migrates models, teams, budgets, and virtual keys from a running LiteLLM proxy, and a /litellm endpoint that keeps the Python SDK working.
  • Migrate in stages: pin LiteLLM, dry-run the state migration, move one service, reissue virtual keys team by team, and keep the old proxy as the rollback path for a full billing period.

The best LiteLLM alternatives are Bifrost, for teams that want to keep running their own gateway with less overhead, and agentgateway, Agent Router, or Kong AI Gateway, for teams standardized on Kubernetes, Envoy, or Kong. Cloudflare AI Gateway and Vercel AI Gateway replace the proxy with a hosted service. Which one fits depends on which part of LiteLLM you run today (the Python SDK, the proxy, or both) and on why you want to leave.

LiteLLM is a capable project, and for one of the reasons below the right move may be to stay. This comparison is for a team that already runs it. For self-hosted gateways compared on license and scope, see open-source AI gateways.

What LiteLLM is and what it does well

LiteLLM is an open-source project in two parts: a Python SDK that calls more than 100 LLM providers through one OpenAI-format function, and a proxy server that puts the same translation behind an HTTP endpoint. The project now calls the proxy the LiteLLM AI Gateway.

Most teams meet the SDK first. litellm.completion() takes an OpenAI-format request and a model string with a provider prefix, so changing providers is a one-line edit. The proxy adds what a shared service needs: virtual keys, spend tracking, budgets and rate limits, load balancing, fallbacks, guardrails, an admin dashboard, an MCP gateway, and an A2A agent gateway.

Its strengths are specific. The provider table in the README runs past 100 entries, where Bifrost, the first pick below, lists 25+. The same model strings work in application code and behind the proxy. Code outside the litellm/enterprise/ directory is MIT-licensed and free to self-host, and the repository has more than 63,000 GitHub stars as of November 2026.

Why teams look for LiteLLM alternatives

Teams leave LiteLLM for four reasons, and each one can be checked on LiteLLM's own pages: the overhead of the Python proxy under load, the infrastructure the proxy needs, the features behind an enterprise license, and two incidents in 2026 in which malicious releases were published.

ReasonWhat LiteLLM's own pages say, as of November 2026What to look for instead
Proxy overhead under load79.3 ms of median overhead for the Python proxy in LiteLLM's November 13 benchmark, with production features onA compiled gateway, measured at your own concurrency
Infrastructure footprintPostgreSQL for virtual keys, Redis 7.0+ beyond one instance, and 1 vCPU with 4 GiB of memory per workerFewer moving parts, or a hosted service
Enterprise licenseSSO beyond five users, SCIM, JWT auth, audit logs, tag-based budgets, and secret managersThe features you need in an open core, or a contract you can compare
Release integrityMalicious packages published on March 24 and October 21, 2026Pinned versions, signed artifacts, and a release process you have read

Overhead. LiteLLM's November 13, 2026 benchmark ran one replica on 4 cores and 16 GiB with 1,000 virtual keys, budgets, rate limits, Prometheus metrics, and S3 logs on, against requests carrying 10,000 to 50,000 tokens of context. At 50 requests per second the Python proxy added 79.3 ms at the median and 1,587.8 ms at p99, and at 100 requests per second it served 29.3% of requests. The benchmarks page in its docs shows the other end of the range: four instances handling short prompts added 2 ms at the median at 1,170 requests per second. The cost shows up in agent loops, embeddings, and other high-rate traffic.

Footprint. Virtual keys require a PostgreSQL database, and the production guide adds Redis once you run more than one instance and sets the per-worker floor.

License. The enterprise page lists everything behind the license key. This reason only moves you if the feature you need is free elsewhere, and most gateways below also sell SSO and audit logs.

Release integrity. On March 24, 2026, litellm versions 1.82.7 and 1.82.8 were published to PyPI with a credential-stealing payload, which LiteLLM's incident report traces to a compromised Trivy dependency in its CI. On October 21, 2026, litellm==1.107.0 was published to PyPI and stayed live for about two hours, and four Docker tags, including latest, pointed at a compromised image from 11:46 to 14:20 UTC. The follow-up report traces that one to a leaked key for an internal service, which led to a GitHub organization owner's token. Both reports are detailed, and the second lists 25 commitments with their status.

The cost of waiting is a bet on a migration in progress. The migration tracker put the work at 39% of its catalog of major APIs as of v1.110.0-rc.1, and says that figure counts released components, not the share of traffic Rust serves. Budget checks, most chat completions providers, and routing strategies other than simple shuffle stay on Python until the fast path covers them.

What to check before replacing LiteLLM

Replacing LiteLLM is two separate moves: application calls are pointed at a new endpoint, and the proxy's state is migrated once. Check each alternative against both.

TODAYREPLACEMENTUPSTREAMNEW BASE URLMIGRATE STATEKEPT FOR ROLLBACKYour appLITELLM SDK CALLSLiteLLM proxyCONFIG.YAML · POSTGRESKEYS · TEAMS · BUDGETSNew gatewayOPENAI-COMPATIBLE APIProviders and modelsProvider keysTeams and budgetsVirtual keys, reissuedProvidersSAME ACCOUNTSThe old proxy stays up as the rollback path until the new gateway has carried real traffic
Replacing LiteLLM is two moves. SDK calls get a new base URL, and the proxy's models, keys, teams, and budgets are migrated once. The old proxy stays up as the rollback path.
  • SDK or proxy. Services that call the proxy over HTTP only need a new base URL. Services that import the SDK can keep it, because LiteLLM calls any OpenAI-compatible endpoint when the model name has an openai/ prefix and api_base points at the gateway.
  • Provider coverage. Compare every model entry in your config.yaml with the new gateway's provider list.
  • State. Models, credentials, teams, virtual keys, and budgets live in LiteLLM's config and database. Ask whether the new gateway imports them, and assume every virtual key will be reissued.
  • Custom code. Python callbacks, custom guardrails, and logging hooks do not port to a gateway written in another language.
  • Failure behavior. Compare what a caller receives when a budget runs out or a rate limit trips, and confirm that streaming and tool calls pass through unchanged.

LiteLLM alternatives at a glance

The six options are four gateways you run and two hosted services. The table lists where each one runs, how it is licensed or priced, and what the path off LiteLLM looks like, as documented by each vendor in November 2026.

OptionWhere it runsLicense and pricing modelPath off LiteLLM
BifrostYour infrastructureApache 2.0 core; Enterprise by contractMigration tool for proxy state; /litellm endpoint for the SDK
agentgatewayYour infrastructure, standalone or on KubernetesApache 2.0; Linux Foundation projectOpenAI-compatible API; state recreated by hand
Agent RouterKubernetes with Envoy Gateway, or standaloneApache 2.0; Agentic AI Foundation projectOpenAI-compatible API; config becomes Kubernetes resources
Kong AI GatewayYour data planes, or Kong's cloudCommercial; multi-provider routing needs an AI licenseAI entities in Konnect, or plugins on Kong Gateway
Cloudflare AI GatewayCloudflare's networkCore features free; 5% fee on Unified Billing creditsBase URL change; nothing to operate
Vercel AI GatewayVercel's hosted APINo markup on provider token pricesBase URL change; LiteLLM SDK is a listed integration

1. Bifrost

Bifrost, an open-source AI gateway by Maxim AI, is a Go gateway with an OpenAI-compatible API to 10,000+ models across 25+ providers. It is the first pick for a team leaving LiteLLM because it documents both halves of the move: a tool that migrates proxy state, and an endpoint that keeps the LiteLLM SDK working.

The LiteLLM migration tool reads a running proxy through its management API, its config.yaml, and optionally its Postgres database, then recreates the entities in Bifrost: providers and provider keys, customers, teams, users, and virtual keys with their budgets and rate limits. It only reads from LiteLLM, and a dry run prints the plan and a report of what it cannot carry over.

export LITELLM_URL="http://localhost:4000"
export LITELLM_MASTER_KEY="sk-1234"
export LITELLM_CONFIG="/path/to/litellm/config.yaml"
export BIFROST_URL="http://localhost:8080"
export BIFROST_API_KEY="your-bifrost-api-key"
 
DRY_RUN=1 npx @maximhq/bifrost-migration-cli   # plan and report, no writes
npx @maximhq/bifrost-migration-cli             # run the migration

Virtual key values are not copied, so every caller gets a new sk-bf-* key. Partial wildcard models such as openai/gpt-4* are skipped, and a custom api_base is carried over only for OpenAI, Anthropic, Gemini, and Bedrock base providers.

Application code has two options. Services on the OpenAI or Anthropic SDK change their base URL to the drop-in endpoints at /openai or /anthropic. Services on the LiteLLM SDK keep it and point at the /litellm endpoint:

from litellm import completion
 
response = completion(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}],
    base_url="http://localhost:8080/litellm",
    extra_headers={"x-bf-vk": "<YOUR-BIFROST-VIRTUAL-KEY>"},
)

A compatibility plugin reproduces LiteLLM behaviors such as dropping parameters a model does not support. Governance keeps the same shape: virtual keys are deny-by-default for providers, budgets nest under teams and customers, and an exhausted budget returns a 402 with budget_exceeded, which retry loops can tell apart from a 429.

Two vendor benchmarks cover this pair. In Maxim AI's published benchmarks, at 500 concurrent users on a t3.medium instance, Bifrost sustained 424 requests per second against LiteLLM's 44.84, with a p99 latency of 1.68 seconds against 90.72 seconds. The same page reports 11 microseconds of overhead per request at 5,000 requests per second on a t3.xlarge. LiteLLM's November benchmark also measured Bifrost at 1.2 ms of median overhead against 79.3 ms for its Python proxy. Both vendors place Bifrost far below the Python proxy.

Comparisons with LiteLLM's Rust gateway are contested, so treat them as unsettled. LiteLLM's first Rust benchmark, run in July 2026, claimed roughly 7 times lower overhead and 9 times less memory than Bifrost. Maxim AI's review of the published result files found that the Bifrost arm ran with its default request logging and log store on while LiteLLM's arms ran without logging, that each cell was a single run with no hardware disclosed, and that the 7x figure came from one row the concurrency sweep does not reproduce. In that sweep the two compiled gateways added p99 latency within about half a millisecond of each other up to 16 concurrent requests, with Bifrost lower at 1 and 64, and their throughput differed by under 1%. LiteLLM's November rerun published its hardware and enabled budgets and logging on every arm, but it is also a single vendor-run pass, and it marks several Bifrost features as partial or unsupported in its mapping. Neither vendor's head-to-head has been reproduced independently, so measure both on your own route and feature set.

The costs are specific. Bifrost lists 25+ providers against LiteLLM's 100+, and the /litellm endpoint only works for providers both projects support. Custom logic is written as Go plugins, which on the open-source build need a dynamically linked binary, so Python callbacks are rewritten, not ported. The Enterprise tier, priced by contract, holds clustering, identity-provider access, role-based access control, guardrails, and audit logs, so the license reason does not disappear.

For teams leaving over the 2026 incidents, Bifrost documents its release controls: GitHub Actions pinned to commit SHAs and npm packages published with SLSA provenance attestations.

Best for: teams that run the LiteLLM proxy as shared infrastructure and want lower overhead, the same virtual-key and budget model, and a migration that starts from their existing configuration, inside their own network.

2. agentgateway

agentgateway is a Linux Foundation project, licensed Apache 2.0, that proxies model, MCP, and A2A traffic. Its LLM gateway routes to OpenAI, Anthropic, Gemini, Bedrock, and other providers through an OpenAI-compatible API, with load balancing and failover.

For a LiteLLM user the relevant part is cost control. Its cost controls include virtual keys that keep provider credentials away from callers, budgets per API key in dollars or tokens, a model cost catalog, and a built-in cost dashboard. Policies are written as CEL expressions, and it runs standalone from a YAML file or on Kubernetes through the Gateway API.

What it lacks is a path from LiteLLM. Its docs list no importer as of November 2026, so models, keys, and budgets are recreated by hand, and budgets are documented per API key where LiteLLM also sets them per team and user.

Best for: Kubernetes platform teams whose LiteLLM proxy mostly fronts agents and MCP servers, and who want an open-source project under foundation governance.

3. Agent Router, formerly Envoy AI Gateway

Agent Router is the project formerly called Envoy AI Gateway, now an Agentic AI Foundation project under the Apache 2.0 license. It is a control plane with Envoy as the data plane: applications get one OpenAI-compatible API, and platform teams keep credentials, routing, quotas, and failover in one place.

The 1.2 docs list provider fallback, token-based quota policies, usage-based rate limiting, an MCP gateway, and A2A routing in preview. aigw run starts a standalone router on a laptop, and production deployments run on Kubernetes with Envoy Gateway.

The shift for a LiteLLM team is the operating model. Configuration moves from one config.yaml to Kubernetes resources such as AIGatewayRoute and AIServiceBackend, and limits are expressed as token quotas. That is natural for a team that already runs Envoy Gateway and a learning curve for one that does not.

Best for: teams already on Envoy or Envoy Gateway that want model and MCP traffic in the same data plane as the rest of their ingress.

4. Kong AI Gateway

Kong AI Gateway governs LLM, MCP, and A2A traffic from Kong's platform. Version 2.x introduced a dedicated control plane in Kong Konnect with first-class entities: AI Model Providers hold credentials, AI Models define routing and load balancing across targets, and AI Consumer Groups scope model access and token budgets by team.

Policies attach to those entities and cover semantic caching, token- and cost-based rate limiting, prompt guards, and PII sanitizing. Data planes run in your infrastructure or on Kong's Dedicated Cloud Gateways, and teams on self-managed Kong Gateway 3.x get the same behavior from plugins.

Kong is a commercial platform. The quickstart needs a Konnect token, and the AI Proxy Advanced plugin that load balances across providers is available only as part of the AI Gateway Enterprise offering. As a replacement for a free LiteLLM proxy it is a larger purchase than the problem requires. As a way to fold AI traffic into an existing Kong estate it is a strong fit.

Best for: organizations that already run Kong or Konnect and want AI traffic under the same control plane and audit trail as their APIs.

5. Cloudflare AI Gateway

Cloudflare AI Gateway is a hosted gateway on Cloudflare's network. It adds analytics, request logs, caching, rate limiting, retries, and model fallback in front of your provider accounts, and its core features are free on all plans.

Two features map to what the LiteLLM proxy does. Stored keys keep provider credentials in Cloudflare's Secrets Store, so applications never hold a provider key. Dynamic routing builds flows from conditional, percentage-split, rate-limit, and budget-limit nodes, with a fallback when a limit is reached.

What changes is who runs it. There is no proxy, database, or cache to operate, and prompts pass through Cloudflare on the way to the provider. If LiteLLM sits inside your network because policy requires it, a hosted gateway is not a replacement.

Best for: teams that want out of operating a proxy fleet and are comfortable with Cloudflare in the data path.

6. Vercel AI Gateway

Vercel AI Gateway is a hosted API at ai-gateway.vercel.sh that works from any cloud, with or without a Vercel deployment. It accepts OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages requests, and Vercel lists LiteLLM among its framework integrations, so SDK code can stay while the proxy goes.

Of the two hosted options, its governance is closer to LiteLLM's. Budgets apply to a team, project, API key, or team member, a request over budget is rejected with a 402, and requests fail over across providers and models in a configured order. Vercel states that it adds no markup to provider token prices, including when you bring your own keys.

Read the bring-your-own-key rules before committing. BYOK requires purchased credits, spend on your own keys does not count toward budgets, and a failed request on your key can fall back to Vercel's provider keys, billed to your credits.

Best for: product teams that want budgets and failover as a service and prefer a vendor's bill to a database of their own.

When a cloud model platform or an aggregator is enough

A single cloud's model platform replaces LiteLLM without any gateway when all your models live in that cloud. Amazon Bedrock offers 100+ foundation models and supports the OpenAI Chat Completions API alongside its own Converse API. Microsoft Foundry and Google's Gemini Enterprise Agent Platform, formerly Vertex AI, play the same role on their clouds. Cloud IAM takes over from virtual keys, and failover across clouds is yours to build.

A hosted aggregator such as OpenRouter is the other shortcut, and OpenRouter alternatives covers where it stops working.

Which alternative fits which reason

Match the option to the reason you are leaving, because no option fixes all four.

If you are leaving because ofPickWhat you give up
Proxy overhead and memoryBifrostA shorter provider list than LiteLLM's
Running Postgres, Redis, and a proxy fleetCloudflare or Vercel AI GatewayPrompts cross a third party
Agents and MCP on Kubernetesagentgateway or Agent RouterA hand migration of keys and budgets
AI traffic split from your API gatewayKong AI GatewayFree software; multi-provider routing is licensed
Overhead only, and you can waitStay, and test LiteLLM's Rust pathA bet on a migration still in progress

No row solves release integrity, because it depends on how you consume any gateway. Pin exact versions or image digests, verify signatures where the project publishes them, and never deploy a floating tag such as latest. What an LLM gateway does lists the failure cases to load-test on the finalists.

How to migrate from LiteLLM without an outage

Run both gateways side by side and move one service at a time, with the LiteLLM proxy kept as the rollback path until the new gateway has carried real traffic. Both sides speak the OpenAI format, so the risk is in state and in behavior you did not know you depended on.

  1. Pin LiteLLM first. Freeze the proxy at an exact version or image digest you have verified.
  2. Take inventory. From LiteLLM's spend logs, list the models, keys, and teams that carry traffic, plus every callback, guardrail, and setting such as drop_params that changes requests in flight.
  3. Stand up the new gateway next to the proxy. Recreate providers and budgets, or import them. With Bifrost, run the migration tool with DRY_RUN=1, resolve the report, then run it for real.
  4. Move one low-risk service. Change its base URL, or api_base for SDK callers, and compare outputs, latency, token counts, and computed cost against LiteLLM's records, with both gateways' request logs in one place.
  5. Reissue virtual keys team by team. Old keys keep working on the old proxy while each team switches to its new key and base URL together.
  6. Test the failure paths. Exhaust a budget, trigger a 429, take a provider away to exercise the fallback chain, and stream a long response with tool calls.
  7. Decommission after a full billing period. Keep the proxy until spend in the new gateway reconciles with provider invoices. Until then, rollback is a base URL change.

Frequently asked questions

What is the best LiteLLM alternative?

For teams that keep self-hosting, Bifrost: a Go gateway with virtual keys and budgets, a tool that migrates models, teams, and keys from a running LiteLLM proxy, and an endpoint that keeps the LiteLLM SDK working. For a hosted service, Vercel AI Gateway or Cloudflare AI Gateway. Teams on Envoy or Kong should start with Agent Router or Kong AI Gateway.

Is Bifrost faster than LiteLLM?

Against LiteLLM's Python proxy, yes, in both vendors' benchmarks. Maxim AI's published benchmark reports 424 requests per second for Bifrost against 44.84 for LiteLLM at 500 concurrent users, and LiteLLM's own November 2026 benchmark measured Bifrost at 1.2 ms of median overhead against 79.3 ms for its Python proxy. Against LiteLLM's new Rust gateway, the vendors' benchmarks disagree and none has been reproduced independently, so test both on your own traffic.

Can you keep the LiteLLM SDK and replace only the proxy?

Yes. The LiteLLM SDK calls any OpenAI-compatible endpoint when the model name carries an openai/ prefix and api_base points at the gateway. Bifrost also exposes a /litellm endpoint that accepts SDK calls for providers both projects support.

How do you migrate from LiteLLM to Bifrost?

Run npx @maximhq/bifrost-migration-cli with DRY_RUN=1, review the report, then run it without the flag. The tool recreates model deployments, organizations, teams, users, and virtual keys with their budgets and rate limits. Virtual key values are not copied, so callers receive new sk-bf-* keys.

Was LiteLLM compromised in 2026?

Malicious LiteLLM releases were published twice. On March 24, 2026, PyPI versions 1.82.7 and 1.82.8 carried a credential stealer, and on October 21, 2026, version 1.107.0 and four Docker tags were compromised for under three hours. LiteLLM published incident reports for both and removed the artifacts. Anyone who installed those versions should follow the credential rotation steps in the reports.

Is LiteLLM being rewritten in Rust?

In stages. LiteLLM's migration tracker put the work at 39% of its major APIs as of v1.110.0-rc.1, with parts of the router, including retries, fallbacks, and cooldowns, now in Rust. The project targets December 1, 2026 for serving the common /v1/messages path end to end in Rust at about 1.5 ms of overhead. Budget checks, most chat completions providers, and other routing strategies stay on Python until the fast path expands.

Sources

  1. 01LiteLLMGitHub
  2. 02Better BenchmarksLiteLLM blog
  3. 03Production Best PracticesLiteLLM docs
  4. 04EnterpriseLiteLLM docs
  5. 05LiteLLM Rust MigrationLiteLLM docs
  6. 06Security Update: Suspected Supply Chain IncidentLiteLLM blog
  7. 07What we are changing after October 21LiteLLM blog
  8. 08Migrating from LiteLLMBifrost docs
  9. 09LiteLLM SDKBifrost docs
  10. 10Bifrost benchmarksMaxim AI
  11. 11Cost controlsagentgateway docs
  12. 12AI Gateway 2.x conceptsKong docs