What is Agent Router (formerly Envoy AI Gateway)?
Agent Router (formerly Envoy AI Gateway) is Route, authenticate, and rate-limit AI and agent traffic on Kubernetes with Envoy Gateway. It sits in the Gateways & Routing category of the Evaluation & Production Ops tools and is open-source, written in Go and licensed Apache-2.0. To get started: or try it on your laptop first.
Overview
Agent Router is an open-source control plane for AI and agent traffic that uses Envoy and Envoy Gateway to handle requests from application clients to generative AI services. It sits between your apps and the LLM providers and MCP servers they call, so you manage that traffic with the same Envoy and Kubernetes tooling you already run for the rest of your platform. The project was called Envoy AI Gateway until September 9, 2026, when it was renamed and moved under the Agentic AI Foundation.
It is built for platform and infrastructure teams who serve AI traffic from a Kubernetes cluster. It uses a two-tier pattern: a Tier One Gateway acts as a central entry point for authentication, top-level routing, and global rate limiting, while a Tier Two Gateway gives finer control over self-hosted model serving, including an endpoint picker for LLM inference optimization.
As an LLM gateway, it connects to many providers behind one entry point, including OpenAI, Azure OpenAI, Google Gemini, Vertex AI, AWS Bedrock, Anthropic, Mistral, Cohere, Groq, Together AI, and others, so clients can reach different backends without each app handling provider-specific setup.
What it does
- Routes client traffic to many GenAI providers, including OpenAI, Azure OpenAI, Google Gemini, Vertex AI, AWS Bedrock, Anthropic, Mistral, Cohere, and Groq
- Two-tier gateway pattern: a Tier One entry point for auth and global rate limiting, a Tier Two gateway for self-hosted model serving
- Handles authentication, top-level routing, and global rate limiting at a central point
- Endpoint picker support in the Tier Two gateway for LLM inference optimization
- Builds on Envoy Gateway, so it runs as native Kubernetes resources managed with kubectl and Helm
- Installed via Helm charts published as OCI artifacts, with CRDs and controller as separate releases
Getting started
Agent Router runs on Kubernetes as an extension to Envoy Gateway. The rename did not change what you deploy: the `aigw` CLI, the `envoy-ai-gateway-system` namespace, the `aigateway.envoyproxy.io` CRDs and the `docker.io/envoyproxy/ai-gateway-*` images all keep their old names. Install the Helm charts, apply a basic route, then send an OpenAI-style chat completions request through the gateway.
Or try it on your laptop first
The `aigw` CLI runs Agent Router standalone as an OpenAI-compatible router, with no Kubernetes involved. Point any OpenAI-compatible client at the local endpoint afterwards.
OPENAI_API_KEY=sk-your-key aigw run
# then point a client at http://localhost:1975/v1Install the CRDs and gateway
Install the Custom Resource Definitions, then the AI Gateway controller and resources, using the published OCI Helm charts. Wait for the controller to become available.
helm upgrade -i aieg-crd oci://docker.io/envoyproxy/ai-gateway-crds-helm \
--version v0.0.0-latest \
--namespace envoy-ai-gateway-system \
--create-namespace
helm upgrade -i aieg oci://docker.io/envoyproxy/ai-gateway-helm \
--version v0.0.0-latest \
--namespace envoy-ai-gateway-system \
--create-namespace
kubectl wait --timeout=2m -n envoy-ai-gateway-system deployment/ai-gateway-controller --for=condition=AvailableApply a basic route
Apply the basic example manifest to create a working gateway and route configuration.
kubectl apply -f https://raw.githubusercontent.com/envoyproxy/ai-gateway/main/examples/basic/basic.yamlPort-forward the gateway
Find the Envoy service created for the gateway and forward a local port to it.
export ENVOY_SERVICE=$(kubectl get svc -n envoy-gateway-system \
--selector=gateway.envoyproxy.io/owning-gateway-namespace=default,gateway.envoyproxy.io/owning-gateway-name=envoy-ai-gateway-basic \
-o jsonpath='{.items[0].metadata.name}')
kubectl port-forward -n envoy-gateway-system svc/$ENVOY_SERVICE 8080:80Send a chat completions request
Call the OpenAI-style chat completions endpoint through the gateway to confirm traffic is routed.
curl -H "Content-Type: application/json" \
-d '{
"model": "some-cool-self-hosted-model",
"messages": [
{
"role": "system",
"content": "Hi."
}
]
}' \
$GATEWAY_URL/v1/chat/completionsCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Give applications one entry point that routes to multiple LLM providers such as OpenAI, Bedrock, and Gemini without per-app provider setup
- Apply central authentication and global rate limiting to all GenAI traffic leaving a Kubernetes cluster
- Serve self-hosted models with fine-grained access control and endpoint-picker routing through the Tier Two gateway
- Standardize LLM access on existing Envoy and Kubernetes infrastructure instead of running a separate proxy stack
How Agent Router (formerly Envoy AI Gateway) compares
Agent Router (formerly Envoy AI Gateway) alongside other open-source gateways & routing tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| OmniRoute | ★ 91.4k | A local-first AI gateway that fronts hundreds of model providers with one OpenAI-compatible endpoint, quota-aware auto-fallback, many routing strategies and prompt compression. |
| Free Claude Code | ★ 74.7k | A local proxy that points Claude Code, Codex, Pi, OpenCode, Cline and other agent CLIs at 50 free, paid, subscription or local model providers, with automatic failover and an admin UI. |
| LiteLLM | ★ 64.2k | A Python SDK and proxy server that gives one OpenAI-compatible API to 100+ LLM providers, with cost tracking, budgets, fallbacks, rate limiting, and an admin UI. |
| Kong Gateway | ★ 44.4k | A Lua/NGINX API gateway whose AI Gateway plugins put one universal endpoint in front of OpenAI, Anthropic, Gemini, Bedrock and other providers, with semantic routing, caching and MCP traffic governance. |
| magpie | ★ 43.7k | Menu bar app and local gateway that lets Claude Code, Codex, Gemini CLI and dozens of other coding agents run on any provider's model, with routing groups that fail over across accounts when a quota runs out. |
| 9Router | ★ 33k | Local OpenAI-compatible router for coding CLIs that tracks per-provider quota, falls back from subscription to cheap to free models, and compresses tool results to cut tokens. |
| Experiential | ★ 20.1k | An open-source gateway that puts hosted, BYOK, local and custom models behind one OpenAI-compatible API, with per-identity model and spend limits and routers fitted from your own traces. |
| Agent Router (formerly Envoy AI Gateway) | ★ 2.5k | Route, authenticate, and rate-limit AI and agent traffic on Kubernetes with Envoy Gateway |

