DEV Community

Cover image for 9 Best Agent Gateways
Anthony Max
Anthony Max Subscriber

Posted on

9 Best Agent Gateways

Compares self-hosted and cloud AI routing options

TL;DR

  • An agent gateway gives applications and agents one place to connect to model providers and tools. Depending on the project, it can also handle routing, retries, budgets, access controls, caching and request logs.
  • The nine gateways here take different approaches: Bifrost, Kong, Agent Router, Apache APISIX, LiteLLM, Amazon Bedrock AgentCore Gateway, Azure API Management AI gateway, Cloudflare AI Gateway and Vercel AI Gateway.
  • Bifrost is a strong option for teams that want a self-hosted gateway with model, MCP and agent traffic controls. Its commercial Edge product can also route AI traffic from employee devices.
  • Agent support varies. Check each gateway's tool and protocol support, deployment model and feature boundaries before adopting it.

A few years ago, many teams adopted gateways to centralize provider keys and billing. Those needs have not gone away, but teams now also have to think about model choice, reliability, usage limits and the growing number of tools connected to agents.

The projects in this list are not interchangeable. Some focus on model routing, while others build AI features on top of a broader API or service-mesh stack. This article compares nine agent gateways, looking at how they handle models, tools, deployment and operational controls.


What an agent gateway does

At a basic level, an agent gateway is a shared point for traffic between applications, agents, model providers and tools. It can handle provider-specific formats, routing and retries across services such as OpenAI, Anthropic, AWS Bedrock and Google Vertex AI. Some gateways also manage MCP servers, tool permissions or agent-to-agent traffic.

Some projects add budgets, access controls, audit trails and caching. Others focus on getting requests to the right model with low operational overhead. The right choice depends on which of those jobs you need the gateway to do.


How to choose an agent gateway

  • Provider coverage. Confirm the providers and API formats your application needs today, then check how new providers are added.
  • Reliability and latency. Look for retries, fallbacks and load balancing. Treat benchmark numbers as a starting point.
  • Deployment and license. Check whether the gateway is self-hosted, managed or both, and distinguish open-source components from paid hosting, support or enterprise features.
  • Operations. Consider how the project handles secrets, budgets, access controls, logs and upgrades. A gateway still needs someone to run it.
  • MCP and agent support. If your applications call tools, check whether the gateway routes or governs MCP traffic, and how identity and permissions work.

The nine gateways at a glance

Here is the short version. Bifrost, LiteLLM, Amazon Bedrock AgentCore Gateway, Azure API Management AI gateway, Cloudflare AI Gateway and Vercel AI Gateway focus on model traffic and related controls. Bifrost, Agent Router, Amazon Bedrock AgentCore Gateway and Azure API Management also offer options for agent and tool traffic. These nine gateways differ in agent support, deployment and feature boundaries.

Gateway Form factor Model coverage Routing and reliability Agent tooling Deployment A good fit when
Bifrost Standalone Go gateway 25+ providers, 10,000+ models Retries, fallbacks, load balancing Native MCP gateway and A2A Agent Gateway Self-hosted; Enterprise adds options You want one gateway for models and agents
Kong AI Gateway AI features in Kong Gateway Major hosted and self-hosted APIs Routing, load balancing, plugins AI MCP Proxy plugins Self-hosted or Konnect Kong already runs your APIs
Agent Router Envoy Gateway control plane and CLI Hosted and self-hosted providers Central routing, quotas and failover AI and MCP traffic Kubernetes or standalone CLI Your platform is built on Envoy
Apache APISIX API gateway with AI plugins OpenAI, Anthropic, Bedrock and more Multi-provider proxy, balancing and retries OpenAPI-to-MCP plugin Self-hosted You want an open-source API and AI gateway
LiteLLM Python SDK and proxy 100+ providers Routing, retries, fallbacks MCP gateway Self-hosted proxy Your stack is Python-first
Amazon Bedrock AgentCore Gateway Managed AI gateway Multiple model providers, APIs and tools Model-based routing and unified access MCP tools and A2A traffic AWS managed service You want a managed entry point for agents, tools and models
Azure API Management AI gateway AI features in API Management OpenAI, Anthropic, Vertex AI, Bedrock and more Load balancing, quotas and policies MCP servers and A2A agent APIs Azure API Management You want AI governance within Azure API Management
Cloudflare AI Gateway Managed gateway Multiple model providers Routing, retries and fallbacks Model gateway for agent applications Cloudflare You want managed routing and observability
Vercel AI Gateway Managed gateway Multiple model providers Routing and provider fallbacks Tool calls via supported models Hosted, usable from any cloud You want managed model access for apps and coding agents

The sections below look at what each project does well, where it fits and what to check before adopting it.


1. Bifrost: A gateway for models, MCP and agents

Bifrost is an open-source LLM gateway for enterprise AI, licensed under Apache 2.0 and written in Go. It provides one OpenAI-compatible interface to more than 10,000 models across 25+ providers. With its drop-in setup, an existing app can usually switch over by changing its base URL. Bifrost ships as a single binary and can run on a VM, in Kubernetes, in a private cloud or on a disconnected network.

Bifrost

Core capabilities

Performance is one of Bifrost's main selling points. Bifrost adds about 11 microseconds of overhead at 5,000 requests per second on a single t3.xlarge, with a 100% success rate. In an AWS EC2 comparison with 500 concurrent users over 60 seconds, Bifrost handled 424 requests per second while LiteLLM handled 44.84, with P99 latencies of 1.68 seconds and 90.72 seconds, respectively.

For governance, virtual keys let teams set budgets and rate limits by key, team, customer or model. The Enterprise tier connects to identity providers such as Okta, Microsoft Entra, Keycloak, Zitadel, Auth0 and Google Workspace, as well as other OIDC providers. It also adds SCIM 2.0 directory sync, detailed role-based access control, data access controls and reusable access profiles.

Routing supports weighted load balancing, retries with backoff and automatic fallbacks. Semantic caching, backed by Redis, Qdrant, Weaviate or Pinecone, can return stored answers for similar prompts.

The MCP gateway controls which MCP servers and tools agents can use. Access can be filtered at the client, request and virtual-key levels, with per-user OAuth so each person connects using their own account. Code Mode takes a different approach to large tool sets: instead of loading every tool definition into the model context, the model writes a short script to coordinate the tools it needs.

Code Mode reduces input token use by up to 92.8%. In a 508-tool test, Code Mode reduced costs from $377 to $29, with all tasks passing. The linked MCP gateway write-up has the full results.

Bifrost Edge extends those controls to AI tools running on employee devices. Available for macOS, Windows and Linux, it routes traffic from desktop chat apps, browser-based AI, terminal coding agents and their MCP servers through the Bifrost gateway after a one-time SSO sign-in. Edge routes AI traffic only and does not inspect other device activity.

Gateway virtual keys, budgets and guardrails can then apply to those tools, including content safety, PII and secret detection on requests and responses, as well as integrations with AWS Bedrock Guardrails, Azure Content Safety, Google Model Armor, CrowdStrike AIDR and Check Point Guard. Administrators can allow or block apps and MCP servers centrally. Rules are enforced on the device. Rollout can use existing device management tools such as Jamf, Intune, Kandji, Omnissa Workspace ONE or JumpCloud.

For regulated environments, the Enterprise tier adds clustering, adaptive load balancing with circuit breakers, signed audit logs, and integrations with AWS Secrets Manager, GCP Secret Manager and HashiCorp Vault. It also supports in-VPC, on-premises and air-gapped deployments, where prompts and responses can stay within your infrastructure. Bifrost is SOC 2 Type II, ISO 27001, HIPAA and GDPR compliant, and Fortune 500 companies run it in production across several industries.

Where it fits

Bifrost fits best when a team wants model, MCP and agent traffic controls in one gateway, especially in a self-hosted, VPC-isolated, on-premises or air-gapped environment.

Identity-based governance, clustering, adaptive load balancing, guardrail and vault integrations, and in-VPC deployment are part of the paid Enterprise tier, not the open-source core. Edge also requires an Enterprise gateway and is priced per endpoint.

A limited pilot can help validate the endpoint rollout before expanding it.

Best for: Teams that need to manage model, MCP and agent traffic from one gateway, especially when they have strict deployment or governance requirements. Bifrost supports self-hosted, VPC-isolated, on-premises and air-gapped environments.

๐Ÿ’Ž Check out the Bifrost repository โ˜†


2. Kong AI Gateway: AI features in an established API platform

Kong AI Gateway adds AI-specific features to Kong's established API gateway. If your APIs already run on Kong, you can use the same control plane, plugin model and operational setup for model traffic. The AI features include provider routing, token-based rate limits, prompt guard plugins, semantic caching and semantic routing across models.

Kong

Core capabilities

Kong added MCP support in Gateway 3.12 in October 2025, as noted in its Gateway changelog. Its AI MCP Proxy plugin can expose REST APIs as MCP tools or sit in front of an MCP server. Access controls apply both when clients discover tools and when they invoke them. A companion OAuth2 plugin handles authentication for MCP traffic.

Where it fits

The main trade-offs are licensing and operational scope. Kong's documentation lists the MCP plugins as part of its AI Gateway Enterprise offering, and labels the OAuth2 plugin as a tech preview. If Kong is not already in your stack, deploying the full API gateway platform just for model traffic may be more than you need.

Best for: Organizations that already use Kong and want to manage AI traffic through their existing control plane.


3. Agent Router: Envoy-based routing for Kubernetes

Agent Router, formerly Envoy AI Gateway, is an Apache 2.0 project for managing access to hosted models, self-hosted inference and MCP servers. It provides an OpenAI-compatible API and is built around Envoy Gateway. The repository has moved to theagentrouter, but project documentation says the API resources, API group, CLI name and image paths remain unchanged.

Agent Router

Core capabilities

The project describes a two-tier pattern: one gateway handles shared authentication, routing and global limits, while another can manage traffic to self-hosted inference. It also offers a standalone CLI for local use, which makes it possible to try the API before deploying the Kubernetes components.

Where it fits

The trade-off is its platform focus. Teams already operating Envoy Gateway and Kubernetes have a clear path to evaluate it. For a small application that just needs a lightweight proxy, a simpler gateway may involve less setup. Its documentation and release notes are the best places to check the current status of specific providers and features.

Best for: Platform teams using Envoy Gateway or Kubernetes that want an open-source control plane for model and tool traffic.


4. Apache APISIX: Open-source AI plugins in an API gateway

Core capabilities

Apache APISIX is an Apache Software Foundation project licensed under Apache 2.0. Its open-source API gateway includes AI plugins for connecting to model providers, routing requests across instances, balancing traffic, retrying failures and limiting usage by tokens. The ai-proxy plugin supports documented providers and OpenAI-compatible APIs, while ai-proxy-multi adds multi-instance load balancing and fallback behavior. The ai-rate-limiting plugin applies token quotas.

Apache APISIX

APISIX also has an openapi-to-mcp plugin that exposes operations from an OpenAPI document as MCP tools. This is a useful contrast with Kong: APISIX's AI plugins are part of its open-source project, while Kong documents its MCP Proxy plugins as Enterprise features.

Where it fits

Because APISIX is a full API gateway, teams adopting it for AI traffic also take on its broader gateway configuration and operations. Its plugin model suits teams that want to manage API and model traffic together, with the AI capabilities available in the open-source project.

Best for: Platform teams that want an open-source API and AI gateway with multi-provider routing, token limits and MCP support.


5. LiteLLM: Broad provider support and a Python-first workflow

Core capabilities

LiteLLM is a common starting point for teams building with language models. It combines an MIT-licensed Python SDK with a self-hosted proxy that supports more than 100 providers, virtual keys, budgets, routing, fallbacks, guardrails and an MCP gateway. Semantic caching supports Qdrant, Valkey and Redis.

LiteLLM recommends semantic caching for single-shot prompts rather than multi-turn agent traffic, as explained in its documentation.

A paid enterprise license adds SCIM, audit logs and some guardrail integrations. Admin UI SSO is free for up to five users.

LiteLLM

Trade-offs

Two considerations are worth a closer look. In an AWS EC2 test with 500 concurrent users over 60 seconds, Bifrost handled 424 requests per second with a P99 latency of 1.68 seconds, while LiteLLM handled 44.84 requests per second with a P99 latency of 90.72 seconds.

There was also a supply-chain incident. Malicious PyPI versions 1.82.7 and 1.82.8 were published on March 24, 2026. LiteLLM's security update says it believes the compromise originated from the Trivy dependency used in its CI/CD security-scanning workflow. The affected versions were removed. The incident involved a compromised package release rather than a vulnerability in LiteLLM's gateway code, and highlights the value of pinning dependencies and mirroring packages internally.

Best for: Python-focused teams with moderate traffic that value a broad provider ecosystem and can operate and secure a self-hosted service.


6. Amazon Bedrock AgentCore Gateway: Managed access for agents, tools and models

Amazon Bedrock AgentCore Gateway is a managed AI gateway that provides a single entry point for agent traffic to tools, other agents and models. It can turn APIs, Lambda functions and existing services into MCP-compatible tools, and route inference requests across model providers.

Amazon

Core capabilities

The gateway can combine APIs, functions, tools, agents and model providers behind one endpoint. It supports inbound and outbound authentication, credential exchange, semantic tool discovery and agent-to-agent traffic, with built-in observability and auditing.

Where it fits

As a fully managed AWS service, AgentCore Gateway may suit teams building on Amazon Bedrock that want to connect agents to existing tools without operating gateway infrastructure. Its AWS service scope and supported features should be checked against deployment and provider requirements.

Best for: Teams building on AWS that want managed access to agent tools, other agents and models through one gateway.


7. Azure API Management: AI gateway capabilities for models and agents

Azure API Management includes AI gateway capabilities for managing AI backends, models, agents and tools. It can manage language model APIs from Microsoft Foundry and other providers, remote MCP servers, A2A agent APIs, and self-hosted models.

Azure

Core capabilities

The AI gateway extends API Management's existing API gateway. It can authenticate and authorize access, load balance across AI endpoints, monitor and log interactions, manage token usage and quotas, expose REST APIs as MCP servers, and import A2A agent APIs. The unified model API is generally available in v2 tiers and available through early access for classic tiers via the AI Gateway Early release channel.

Where it fits

This option suits organizations already using Azure API Management that want to govern models, MCP servers and agent APIs through the same platform. Available capabilities vary by API Management tier, so check that the required features are included.

Best for: Teams that want to manage AI models, MCP servers and agent APIs through Azure API Management.


8. Cloudflare AI Gateway: Managed routing and observability

Cloudflare AI Gateway is a managed gateway for observing and controlling AI applications. It supports multiple model providers and provides analytics, request logging, caching, rate limiting, retries and model fallbacks.

Cloudflare AI Gateway

Core capabilities

Applications can send requests through the gateway to supported providers. Model aliases and routing rules can choose providers and fallback models, while analytics and logs provide visibility into requests, token use, cost and errors.

Where it fits

Cloudflare AI Gateway is a managed service, so teams do not need to operate a gateway themselves. Its documented focus is model traffic and application-level controls; teams that need gateway-managed MCP servers or agent-to-agent routing should check whether they need an additional component.

Best for: Teams that want managed model routing, observability and traffic controls without running a gateway.


9. Vercel AI Gateway: Managed model access for apps and coding agents

Vercel AI Gateway provides a hosted API for accessing models across providers. It centralizes credentials, request logs, cost tracking, budgets, prompt caching and provider failover. Applications can use it from any cloud or language, and the documentation includes support for coding agents.

Vercel

Core capabilities

The gateway can route requests across providers and fallback models, then record status, provider, latency, token usage, cost and routing attempts. It supports multiple modalities and tool calls when the selected model supports them.

Where it fits

Vercel AI Gateway can be used without running an application on Vercel, but teams need a Vercel account to create an API key and manage billing. Its documentation describes model access and tool calls, rather than a standalone MCP server gateway.

Best for: Teams that want hosted model access and provider failover for applications or coding agents.


Deployment and licensing compared

This table is a starting point, not a substitute for checking the current license and feature matrix. Some projects keep parts of their enterprise functionality outside the open-source gateway, while hosted gateways have their own service and usage terms.

Gateway License Where it runs Main trade-off
Bifrost Apache 2.0 core; Enterprise features are paid Self-hosted; private options in Enterprise Some governance and deployment features require Enterprise
Kong AI Gateway Apache 2.0 Kong Gateway; some AI plugins are paid Self-hosted, hybrid or Konnect Advanced AI features may require a license
Agent Router Apache 2.0 Kubernetes or standalone CLI Best suited to Envoy and Kubernetes stacks
Apache APISIX Apache 2.0 Self-hosted Broader API gateway to configure and operate
LiteLLM MIT core; some enterprise features are paid Self-hosted proxy Python-based operations and security upkeep
Amazon Bedrock AgentCore Gateway Managed AWS service AWS managed service AWS service scope and integrations
Azure API Management AI gateway Managed Azure service Azure API Management Capabilities vary by service tier
Cloudflare AI Gateway Managed service Cloudflare Managed service controls the data path
Vercel AI Gateway Managed service Hosted, usable from any cloud Requires a Vercel account for keys and billing

Which Agent Gateway Is Right for Your Team

If you are choosing a gateway for production, start with the constraints that matter most to your team. Bifrost provides multi-provider routing, agent workflows and private deployment options. Bifrost adds 11 ยตs of overhead at 5,000 RPS.

LiteLLM is a natural option for Python-centric teams. Kong fits organizations already running Kong, while Agent Router suits teams built around Envoy Gateway and Kubernetes. Apache APISIX adds AI capabilities to an open-source API gateway.

Amazon Bedrock AgentCore Gateway and Azure API Management provide managed gateway options for teams using AWS and Azure, while Cloudflare and Vercel offer managed gateways as well. The best choice is the one that fits your existing platform and the amount of gateway operations your team is ready to own.


Frequently asked questions

What is an agent gateway?

An agent gateway sits between applications or agents and the models and tools they use. Depending on the project, it can provide a shared API, route requests, retry failures, apply usage limits and log traffic. Some gateways also manage MCP tools or agent-to-agent communication. Check the feature list because hosted services or enterprise controls may be separate.

How is an agent gateway different from an API gateway?

A traditional API gateway focuses on routing and authentication for general API traffic. An agent gateway can add features for model requests and agent tools, such as provider routing, token-based limits, model fallbacks, MCP access controls and usage reporting. Some API gateways now offer AI plugins as well, so the distinction depends on the product.

Should we self-host or use a managed gateway?

Self-hosting gives your team more control over prompts, keys and logs, but also means operating the service. A managed gateway can be quicker to adopt, though traffic passes through the vendor's network. The right choice depends on your security requirements and the operational support available to your team.

Do LLM gateways support MCP?

MCP support varies. Bifrost has a native MCP gateway, Kong offers AI MCP Proxy plugins, Agent Router handles AI and MCP traffic, Apache APISIX provides an openapi-to-mcp plugin, LiteLLM includes MCP support in its proxy, Amazon Bedrock AgentCore Gateway connects agents to MCP-compatible tools, and Azure API Management can manage MCP servers. Compare authentication and tool-level permissions rather than treating support as a yes-or-no feature.

How much latency does an LLM gateway add?

The answer depends on the gateway, workload and enabled features. Bifrost adds about 11 microseconds of overhead at 5,000 requests per second on a single t3.xlarge. That is small next to the time many models take to respond, but added latency can matter when an agent makes a long sequence of calls.

Can we move off LiteLLM without rewriting code?

Often, yes. Both products expose OpenAI-compatible APIs, and Bifrost provides drop-in adapters for the LiteLLM SDK. Teams using the LiteLLM proxy can also migrate models, keys, teams and users. See the LiteLLM migration guide for the process and its details.

Can an LLM gateway govern employees using ChatGPT or Claude desktop apps?

Only when that traffic passes through the gateway. A standard gateway typically sees requests that developers have configured to use it. Bifrost Edge is designed to route traffic from desktop apps, browsers and coding agents through Bifrost so gateway policies can apply.

Is Bifrost open source, and what does the Enterprise tier add?

Bifrost's core is open source under Apache 2.0 and can be self-hosted for free. The Enterprise tier adds high availability, identity-based governance, guardrail and vault integrations, signed audit logs, and in-VPC or air-gapped deployment. It includes a 14-day free trial. Bifrost Edge requires an Enterprise gateway and is priced per endpoint.


Conclusion

There is no single gateway that is right for every stack. Choose based on the providers you use, how you plan to deploy, and whether you want a dedicated model proxy, agent and tool controls, or AI features inside an existing API platform. Check each gateway's feature boundaries, and test the options with your own workload before committing. If Bifrost is on your shortlist, its documentation and demo cover its deployment and Enterprise options.


Resources:

๐Ÿ’Ž Check out the Bifrost repository โ˜†

Top comments (2)

Collapse
 
anthonymax profile image
Anthony Max •

What do you think of this list?

Collapse
 
leee_rodgers1 profile image
Lee Rodgers1 •

Interesting list