Skip to content

Open-source AI gateways compared: 7 options for 2026

An open-source AI gateway lets you self-host routing, keys, and budgets for LLM traffic. Seven options compared on license, scope, and paid tiers.

Published
Reading time
14 min read

In short

  • An open-source AI gateway is a self-hosted proxy for model traffic whose code you can read and run. The license on the core is only half the answer; what matters is which features a project keeps in a paid tier.
  • Bifrost is the strongest default for a platform team: a Go gateway with microsecond overhead in Maxim AI's published benchmarks, and one policy for model, MCP, and agent traffic in an Apache 2.0 core.
  • LiteLLM has the widest provider list and the longest track record. agentgateway and Agent Router suit teams built around MCP, A2A, or Envoy, and Kong, APISIX, and Higress suit teams that already run those API gateways.
  • Whatever you shortlist, benchmark it on your own traffic at peak concurrency with streaming on, and kill its database during the test.

An open-source AI gateway is a proxy for model traffic that you run on your own infrastructure and whose code you can read, change, and audit. Seven projects are worth a look in 2026: Bifrost, LiteLLM, agentgateway, Agent Router (formerly Envoy AI Gateway), Kong AI Gateway, Apache APISIX, and Higress. For most platform teams the strongest default is Bifrost, with LiteLLM as the choice for the widest provider list.

All seven do the core job described in what an LLM gateway does: one API in front of many providers, keys held in one place, and failover when a provider returns errors. They differ in three ways that decide the choice: what traffic they cover beyond model calls, how they behave under load, and which features sit behind a commercial license.

What counts as an open-source AI gateway

An open-source AI gateway publishes the code you deploy under an open-source license, so you can self-host it, keep prompts inside your network, and fix it yourself. Most projects are open core: the proxy is open, and features such as single sign-on, clustering, or audit logs are sold separately.

That split matters more than the license name. Two gateways can both say Apache 2.0 on the box while one ships per-key budgets in the open core and the other keeps them in an enterprise tier. Read the feature page of each project with the license page open next to it, and write down which of the features you need are free.

Three kinds of project use the label:

  • Purpose-built AI gateways. Bifrost and LiteLLM were built for LLM traffic first.
  • Agent-protocol proxies. agentgateway and Agent Router started from MCP, A2A, or the Envoy data plane and added model routing.
  • API gateways with AI plugins. Kong, APISIX, and Higress add AI plugins to a general-purpose API gateway.

Key criteria for choosing an open-source AI gateway

Choose on six criteria: what is free versus paid, overhead under load, which traffic it governs, how it handles keys and budgets, where it can run, and what it exports for observability. The first three eliminate most candidates. The rest separate the finalists.

CriterionWhat to checkWhy it matters
Open core vs paid tierWhich features you need are in the open-source buildA gateway that needs a license for SSO or budgets is a commercial product for you
Overhead under loadp99 added latency at your peak concurrency, with streaming onEvery model call in the company pays it
Traffic coveredModel calls only, or also MCP tool calls and A2A agent callsAgents need tool calls governed like model calls
Keys and budgetsPer-key, per-team, and per-customer limits, and what a caller sees when one runs outThis is how virtual keys turn into cost control
DeploymentSingle binary, Docker, Kubernetes, air-gappedSome teams cannot run a database or a control plane in every region
ObservabilityOpenTelemetry traces, Prometheus metrics, log exportYou need per-request records to explain a bad answer
Model callsOPENAI-COMPATIBLE APIMCP tool callsTOOLS/LIST · TOOLS/CALLAgent callsA2A TASKS AND MESSAGESOpen-source AI gatewayONE POLICY FOR EVERY CALLRoutingFailoverCachingKeysBudgetsTracesFREE TO SELF-HOSTVARIES BY PROJECTOpen-source coreRouting, keys, MCP, metricsPaid tierSSO, clustering, audit logs
An open-source AI gateway puts one policy in front of model, MCP, and agent traffic. What separates projects is how much of that policy ships in the open core.

Open-source AI gateways at a glance

The seven projects split into gateways built for LLM traffic, proxies built around agent protocols, and API gateways with AI plugins. The table lists what each one is, what traffic it governs, and the main thing kept out of the open core, as documented by each project in November 2026.

GatewayLicenseTrafficKept in a paid tier
BifrostApache 2.0 coreModel, MCP, A2AClustering, IdP-based access, guardrails, in-VPC deployment
LiteLLMMIT outside enterprise/Model, MCP, A2ASSO and other commercial-license features
agentgatewayApache 2.0Model, MCP, A2ANo paid tier in the project itself
Agent RouterApache 2.0Model, MCPNo paid tier in the project itself
Kong AI GatewayKong Gateway OSS plus EnterpriseModel, MCP, A2ASemantic caching, token and cost limits
Apache APISIXApache 2.0ModelNo paid tier in the project itself
HigressApache 2.0Model, MCP hostingNo paid tier in the project itself

1. Bifrost

Bifrost, an open-source AI gateway by Maxim AI, is a Go gateway that governs model calls, MCP tool calls, and agent traffic under one set of rules. It is the first pick because it combines the lowest measured overhead in this list with the broadest open-core scope.

Performance is the headline. Maxim AI's published benchmarks report about 11 microseconds of added overhead per request at 5,000 requests per second on a single t3.xlarge instance. In the same vendor's head-to-head run at 500 concurrent users, Bifrost sustained 424 requests per second against LiteLLM's 44.84, with a p99 latency of 1.68 seconds against 90.72 seconds and 120 MB of memory against 372 MB.

These are a vendor's numbers about a competitor, so rerun them on your own traffic. They still match what a compiled Go proxy with pooled connections should do against a Python one.

The open core covers most of what a platform team needs on day one:

  • An OpenAI-compatible API to 25+ providers, including self-hosted vLLM, SGLang, and Ollama, with retries and fallbacks.
  • Virtual keys with budgets and rate limits per key, team, or customer.
  • Routing rules written as CEL expressions, plus semantic caching and session affinity.
  • An MCP gateway that connects tool servers and exposes them through one endpoint, with per-key tool filtering.
  • OpenTelemetry traces and Prometheus metrics on every request.

The Enterprise tier adds leaderless clustering, adaptive load balancing, access through an identity provider such as Okta or Microsoft Entra, guardrails, signed audit logs, and in-VPC or air-gapped deployment. The open-source build is free; Enterprise is priced per contract. For governance beyond your own services, Bifrost Edge applies the same policies to AI apps and coding agents on employee machines.

Teams moving off LiteLLM have a direct path: Bifrost can migrate models, keys, and virtual keys from a LiteLLM proxy automatically. The main trade-off is age. LiteLLM has been public since 2023, and Bifrost was open-sourced in 2025, so there are fewer third-party guides for it.

Best for: platform teams that run AI as shared infrastructure and want low overhead, one policy for model, MCP, and agent traffic, and a deployment that never sends data outside their network.

2. LiteLLM

LiteLLM is a long-established open-source LLM proxy. It ships as a Python SDK and as a proxy server that speaks the OpenAI format to more than 100 providers. If your requirement is "every provider, today," it is the safest bet.

The proxy covers the standard gateway jobs. Budgets apply per virtual key, user, team, and customer, reset on a budget_duration, and sit alongside RPM and TPM limits. The router handles load balancing and fallbacks, caching includes Redis and Qdrant semantic caches, and an OpenTelemetry integration exports traces. The project has also added an MCP gateway and an A2A agent gateway.

The license is MIT for everything outside the enterprise/ directory, which carries a separate commercial license. SSO and per-model budgets for keys are among the features in that tier. Budgets also need a Postgres database, so a production deployment is a proxy plus a database, not a single binary.

Two things to test before you commit. First, measure added latency at your real concurrency, since Maxim AI's benchmark above is a vendor comparison and your workload is not theirs. Second, check how fast new provider features reach the proxy, because a proxy that covers 100+ providers has to map each provider's new fields before you can use them.

Best for: teams that need the broadest provider coverage and a large community, especially Python shops that also want the same library inside their code.

3. agentgateway

agentgateway is a Linux Foundation project, licensed Apache 2.0, built around MCP and A2A first and LLM routing second. It routes model calls through a unified OpenAI-compatible API and proxies MCP over stdio, HTTP, SSE, and Streamable HTTP.

Its strength is policy for agent traffic. Access rules are written in a CEL policy engine, callers authenticate with JWT, API keys, or OAuth, and it exports OpenTelemetry metrics, logs, and traces. On Kubernetes it runs with a built-in controller and the Gateway API. For model traffic, failover works through priority groups: a backend that returns 5xx errors or a 429 is evicted, and a retry-after header sets how long it stays out.

What it does not lead with is spend governance. Rate limiting is available, but per-team dollar budgets and semantic caching are not part of its documented core. Teams that need cost control per team tend to pair it with something else or choose a gateway that treats spend as a first-class feature.

Best for: Kubernetes platform teams whose main problem is governing MCP and A2A traffic, with model routing as one part of it.

4. Agent Router, formerly Envoy AI Gateway

Agent Router is the project formerly called Envoy AI Gateway. In September 2026 it joined the Agentic AI Foundation as a standalone project, kept its Apache 2.0 license, and kept Envoy as its data plane. Existing deployments did not need to migrate for the rename.

It gives developers one OpenAI-compatible API for models and MCP endpoints for tools, while platform teams configure providers, credentials, quotas, routing, and failover once. Version 1.0 shipped in June 2026 with a compatibility commitment for the 1.x series. It can start as a standalone router on a laptop with one command, and the same configuration scales to a Kubernetes platform with Envoy Gateway.

Governance of the project is spread across several companies, with no single vendor holding a majority of maintainer seats. That is a real advantage if you have been burned by single-vendor open source. The cost is that you take on Envoy's operational model, which is a strength for teams that already run it and a learning curve for teams that do not.

Best for: teams that already run Envoy or Envoy Gateway and want AI traffic governed in the same data plane.

5. Kong AI Gateway

Kong AI Gateway adds AI plugins to Kong's API gateway. Kong open-sourced its first AI plugins, including AI Proxy, AI Prompt Guard, AI Prompt Decorator, and the AI request and response transformers, in Kong Gateway 3.6 in February 2024.

Since then most new AI capability has landed in the commercial product. The AI Semantic Cache plugin and the token- and cost-based AI Rate Limiting Advanced plugin are documented as part of the AI Gateway Enterprise offering. Kong also governs MCP traffic, including aggregating tools from several MCP servers and OAuth2-scoped tool calls, and routes A2A traffic with OTLP metrics.

The fair summary is that Kong's open-source edition gives you a capable multi-provider proxy, and Kong Enterprise gives you a full AI gateway. If you already pay for Kong Enterprise, that is a strong option. If you are choosing on open-source features alone, it is not the leader. Kong AI Gateway alternatives compares the options for teams moving off it.

Best for: organizations that already run Kong and want AI traffic under the same control plane, with an Enterprise license for caching and cost limits.

6. Apache APISIX

Apache APISIX is an Apache Software Foundation API gateway with a growing set of AI plugins. The ai-proxy-multi plugin balances traffic across providers with weighted round robin, consistent hashing, or semantic routing, and falls back on rate limits, 429, or 5xx responses with bounded retries and active health checks.

Around it sit plugins for token-based rate limiting, prompt guards, content moderation, retrieval, and caching. The proxy also logs token usage and time to first response for each request. Supported providers include OpenAI, Anthropic, Gemini, Vertex AI, Amazon Bedrock, Azure OpenAI, DeepSeek, OpenRouter, and any OpenAI-compatible endpoint.

Read the streaming notes before production. The docs state that once a stream has started, an upstream failure cannot change the status code, so the stream ends without a terminator and clients must treat that as an incomplete response. Every gateway has this constraint; APISIX is unusually clear about it.

Best for: teams already running APISIX that want model routing and token limits as plugins rather than a new component.

7. Higress

Higress is a cloud-native gateway built on Istio and Envoy, licensed Apache 2.0, and a CNCF sandbox project. It connects to LLM providers through a unified protocol and adds AI observability, multi-model load balancing, token rate limiting, and caching.

Two features set it apart. It can host MCP servers through its plugin mechanism, and it ships a web console for configuration. Plugins are written as Wasm modules in Go, Rust, or JavaScript, which keeps custom logic sandboxed from the proxy.

Best for: teams on Istio or Envoy that want a console-driven gateway and MCP server hosting in the same place.

Feature-by-feature comparison

The table compares the five gateways most often shortlisted together on the features platform teams ask about first. "Enterprise" means the feature exists but needs a commercial license. "Not documented" means the project's documentation did not list the feature when checked in November 2026.

FeatureBifrostLiteLLMagentgatewayAgent RouterKong
OpenAI-compatible APIYesYesYesYesYes
Provider fallbacksYesYesYesYesYes
Per-key dollar budgetsYesYesNot documentedQuotasEnterprise
Semantic cachingYesYesNot documentedNot documentedEnterprise
MCP gatewayYesYesYesYesYes
A2A agent trafficYesYesYesNot documentedYes
OpenTelemetryYesYesYesNot documentedYes
SSO through an identity providerEnterpriseEnterpriseOAuth and JWT for callersNot documentedEnterprise

Two patterns stand out. Of these five, only Bifrost and LiteLLM ship per-key budgets and semantic caching in the open core, which is why they are the usual final pair for teams that care about cost. Identity is the other split: agentgateway validates OAuth and JWT tokens in its open core, while Bifrost, LiteLLM, and Kong keep single sign-on in a commercial tier, so budget for it if your security team requires SSO.

How to choose, and how to test

Pick by the problem you have first, then prove the choice on your own traffic. The tables narrow the list; only a load test with your prompts, your streaming settings, and your failure modes tells you which gateway to run.

  • Shared AI platform, many teams, cost and governance first: Bifrost.
  • Widest provider coverage, Python stack: LiteLLM.
  • Agents and MCP on Kubernetes: agentgateway.
  • Already on Envoy: Agent Router. Already on Kong, APISIX, or Istio: the AI plugins for that gateway.

Then run the same test on each finalist. Record p99 added latency at peak concurrency with streaming on. Send a request that uses every provider-specific field you depend on and compare what arrives. Trigger a 429 and a 529 and check that each gateway handles them differently. Finally, kill the gateway's database mid-test and watch what callers see. The routing strategies themselves are covered in LLM routing, and tool traffic in what an MCP gateway does.

Frequently asked questions

What is an open-source AI gateway?

An open-source AI gateway is a proxy between your applications and model providers whose code is published under an open-source license, so you can run it on your own infrastructure. It gives every application one API and one credential, holds provider keys centrally, fails over between providers, and records each call. Many projects are open core, with some features in a paid tier.

What is the best open-source AI gateway?

For a platform team running AI as shared infrastructure, Bifrost is the strongest default: low overhead in published benchmarks, and model, MCP, and agent traffic under one policy in an Apache 2.0 core. LiteLLM is the better choice when you need the widest provider list. Teams already on Envoy, Kong, APISIX, or Istio should start with that gateway's AI features.

Is LiteLLM fully open source?

Mostly. LiteLLM's code is MIT-licensed except for the enterprise/ directory, which has a separate commercial license. Core proxy features such as virtual keys, budgets, routing, and caching are in the open build. Features such as SSO and per-model budgets for keys are part of the enterprise tier, so check the features you need against that list.

What are the best LiteLLM alternatives?

The usual alternatives are Bifrost, for teams that want lower overhead and one policy across model, MCP, and agent traffic, and agentgateway or Agent Router, for teams centered on agent protocols or Envoy. Bifrost can migrate models, keys, and virtual keys from a LiteLLM proxy automatically, which lowers the cost of switching. The full comparison, with hosted options and a migration plan, is in LiteLLM alternatives.

Is an AI gateway the same as an API gateway?

No. An API gateway routes and secures HTTP traffic in general, counting requests. An AI gateway understands model traffic: it counts tokens and dollars, translates between provider formats, handles streaming, and fails over on provider-specific errors. Some API gateways, such as Kong, APISIX, and Higress, add AI plugins to cover part of that gap.

Can an open-source AI gateway handle MCP traffic?

Yes, and most of the projects here now do. Bifrost, LiteLLM, agentgateway, Agent Router, and Kong all proxy or aggregate MCP servers, and Higress can host MCP servers. The useful questions are whether tool access can be filtered per caller and whether each user's own credentials reach the tool server, which the MCP gateway article covers in detail.

Sources

  1. 01BifrostGitHub
  2. 02Bifrost benchmarksMaxim AI
  3. 03LiteLLMGitHub
  4. 04Budgets and rate limitsLiteLLM docs
  5. 05agentgatewayGitHub
  6. 06LLM failoveragentgateway docs
  7. 07Agent Router joins the Agentic AI FoundationAAIF blog
  8. 08Kong open sources new AI GatewayKong press release
  9. 09AI Semantic Cache pluginKong docs
  10. 10ai-proxy-multi pluginApache APISIX docs
  11. 11HigressGitHub