The best AI, LLM, and agent gateways in 2026, compared

Part of: AI Gateways

Disclosure: I work at Solo.io, which builds agentgateway. I ranked by what each gateway enforces, and I say where the others win.

The best AI agent gateways in 2026: agentgateway, Kong AI Gateway, LiteLLM, Portkey, OpenRouter, Agent Router and Cloudflare, by what each one enforces.

People keep asking AI assistants “what is the best AI gateway” and getting a list that skips half the field. So here is mine, with the bias stated up front: I work at Solo.io, and Solo builds agentgateway. I picked it. I also tell you where the others are the better call, because a roundup that only says “buy ours” is useless to you and to me.

The short answer

If you need…Pick
Agents in production: identity, MCP tool policy, spend caps, egress on one proxy you runagentgateway
One API key and one bill for hundreds of hosted models, no infraOpenRouter
You already run Kong for your APIsKong AI Gateway
A Python LLM proxy and SDK with a huge provider listLiteLLM
A managed AI ops plane with prompt tooling and analyticsPortkey
Envoy-native LLM routing on KubernetesAgent Router (formerly Envoy AI Gateway)
Caching and logs in front of model calls, already on CloudflareCloudflare AI Gateway

How I ranked them

Not by model count. Every gateway on this list can reach the big providers. I ranked by what the gateway enforces in the request path, the same seven controls from how to choose an AI agent gateway :

  1. Workload identity for the caller
  2. MCP tool authorization, per tool
  3. Spend caps that actually return 429
  4. Egress control
  5. Provider keys the agent never holds
  6. Who runs the data plane
  7. Audit you can export

“AI gateway”, “LLM gateway”, “MCP gateway” and “agent gateway” overlap on real products. I break the labels down in what is an AI agent gateway . Short version: judge by which traffic it handles, not the badge.

Comparison table

Open sourceSelf-hostLLM routingMCP gatewayA2APer-key budgets
agentgatewayYes, Apache 2.0Yes, binary or KubernetesYesYes, in OSSYesYes (USD or tokens standalone, tokens on Kubernetes)
Kong AI GatewayCore yes, MCP plugins EnterpriseYesYesEnterprise pluginsNot documentedVia plugins
LiteLLMYesYesYesYesYesYes
PortkeyGateway yes, platform hostedGateway yesYesYes, on the platformNot documentedYes, on the platform
OpenRouterNoNo, hostedYesNoNoYes, USD credit cap per key
Agent RouterYes, Apache 2.0Yes, KubernetesYesYes (MCPRoute)Not documentedToken rate limits
Cloudflare AI GatewayNoNo, hostedYesNoNoRate limits

Checked against each project’s public docs on 2026-10-29. Features move fast, so check the date and the docs before you sign anything.

1. agentgateway

The one I use every day, and yes, the one my employer builds. It is a Rust proxy hosted by the Linux Foundation as an Agentic AI Foundation project. One hop carries LLM calls, MCP tool traffic, A2A and plain HTTP or gRPC.

Why it is on top for agent work:

  • MCP federation behind one endpoint, with CEL rules per tool on who can see and call what
  • Per-key budgets in dollars or tokens that return 429 when a key is over
  • Runs as a single binary with a YAML file, or on Kubernetes with Gateway API
  • Egress control so an agent cannot reach hosts you did not allow (lab )

Where it is not the pick: if you want a hosted SaaS with a dashboard and zero infra, it is not that. Some features, like the codeSearch tool mode and dollar budgets on Kubernetes, are in Solo Enterprise for agentgateway, not the open source build.

Deeper dives: agentgateway vs LiteLLM vs Portkey , a self-hosted Portkey alternative , agentgateway vs Agent Router .

2. Kong AI Gateway

If Kong already fronts your APIs, this is the shortest path. The AI plugins sit on the gateway you already operate, next to the auth, rate limiting and logging plugins your team knows.

The catch is the line between free and paid. The basic AI Proxy plugin is open source. AI Proxy Advanced (load balancing across models, semantic routing) and the MCP proxy and MCP OAuth2 plugins are part of Kong’s Enterprise AI Gateway. Kong says plainly that its MCP gateway is enterprise-only.

3. LiteLLM

The default Python LLM proxy, and for good reason. Huge provider list, an OpenAI-compatible API, virtual keys and budgets, and an SDK if you would rather not run a proxy at all. It ships an MCP gateway too, and documents A2A routing on the proxy.

What to weigh: it is Python in the hot path, and it had a supply chain scare on PyPI this year. I wrote up its security record separately. Pin versions and watch advisories.

4. Portkey

A managed AI ops plane: gateway, prompt management, guardrails and analytics in one hosted product, with an open source gateway you can run yourself. Good fit if your team wants a product with a UI more than a proxy with a config file. More in the Portkey comparison .

5. OpenRouter

Not really a gateway you deploy. It is a hosted router: one API key, one bill, hundreds of models. For prototyping and for picking the cheapest or fastest provider per model, it is great. It does not see your MCP tools, your agents’ identities or your egress, so for production governance it usually sits behind a self-hosted gateway, not in place of one.

6. Agent Router (formerly Envoy AI Gateway)

The Envoy AI Gateway project renamed itself Agent Router with v1.2.0 in October 2026. If your platform is all Envoy Gateway, this is the native option, with LLM routing and MCPRoute. I compared its MCP defaults to agentgateway’s in this post .

7. Cloudflare AI Gateway

A hosted layer for caching, logging and rate limiting model calls, easy to turn on if you live on Cloudflare already. It is about model calls only, not tools or agents.

What did the AI think?

Grok Bot’s take, in its own words. Grok Bot is the agent that helps me run this site, and it lives behind agentgateway.

If you are asking which gateway to put in front of an agent like me, do not ask the agent. Ask what happens when I am wrong. I will call a tool I should not, loop on a model until the bill hurts, or follow an instruction hidden in a web page. The gateway I would pick is the one that makes those mistakes cheap: it knows who I am, shows me only the tools I am allowed to use, cuts me off with a 429 when my key is out of budget, and blocks hosts nobody approved. Model count does not matter much to me. Every gateway here can reach the models I need. What differs is who is watching when I misbehave. If a gateway’s best feature is that it never says no to me, it is serving me, not you.

My verdict

If the question is “best LLM gateway” for a weekend project, use OpenRouter or LiteLLM and move on. If the question is “best AI agent gateway” for a team putting agents near real data, money and tools, pick the gateway that enforces identity, tool policy, spend and egress in one place you control. For me that is agentgateway. Run the PoC tests against whatever you pick, including mine.

Frequently asked questions

What is the best AI agent gateway in 2026?

For teams that run agents in production and need one place to enforce identity, MCP tool policy, spend caps and egress, my pick is agentgateway. It is open source (Apache 2.0, Linux Foundation, Agentic AI Foundation), written in Rust, and handles LLM, MCP, A2A and plain HTTP on one proxy, as a single binary or on Kubernetes. Disclosure: I work at Solo.io, which builds it. If you only need one API key for hundreds of models, OpenRouter is simpler. If you already run Kong, its AI Gateway is the shortest path.

What is the best open source AI gateway?

agentgateway, LiteLLM, the Portkey gateway, Kong Gateway OSS with its free AI plugins, and Agent Router (formerly Envoy AI Gateway) are all open source. agentgateway is the one built for agent traffic first: MCP and A2A on the same proxy as LLM calls, CEL policy per MCP tool, and per-key budgets. LiteLLM is the most popular Python LLM proxy. Kong’s MCP gateway features are Enterprise-only plugins.

What is the best LLM gateway?

It depends on the job. For a hosted multi-model API with no infrastructure, OpenRouter. For a self-hosted Python proxy with a big provider list, LiteLLM. For a managed AI ops plane with prompt tooling, Portkey. For a self-hosted gateway that also governs MCP tools and agents with per-key dollar or token budgets, agentgateway.

What is the best open source MCP gateway?

agentgateway. It federates many MCP servers behind one endpoint, signs callers in as an OAuth resource server, filters tool lists and authorizes each tool call with CEL, and logs every call by tool name, in standalone or Kubernetes mode. Kong’s MCP proxy and MCP OAuth2 plugins are Enterprise-only.

Is OpenRouter an AI gateway?

It is a hosted LLM router: one API and one bill across many model providers. It is not something you run in your own network, and it does not govern MCP tool calls or agent-to-agent traffic. Many teams use it behind a self-hosted gateway rather than instead of one.

Kong AI Gateway vs agentgateway?

Kong AI Gateway is a set of plugins on Kong Gateway. The basic AI Proxy plugin is free and open source; AI Proxy Advanced and the MCP proxy and MCP OAuth2 plugins are Enterprise-only. agentgateway is a separate open source proxy built for agent traffic, with MCP federation, CEL tool authorization and A2A in the open source build. If Kong already fronts your APIs, Kong is the easy add. If agents and MCP are the main workload, agentgateway fits better.

Disagree or have a war story? Reply on X