█

AI/TLDR

Buy me a coffee
Buy me a coffee

Agent Router (formerly Envoy AI Gateway)

Route, authenticate, and rate-limit AI and agent traffic on Kubernetes with Envoy Gateway

Gateways & RoutingOpen source
Updated
9 Sep 2026
Language
Go
License
Apache-2.0

What's new

9 Sep 2026

Envoy AI Gateway was renamed Agent Router and moved under the Agentic AI Foundation, with the repository moving to theagentrouter/agent-router and the site to theagentrouter.ai. The code, maintainers, Apache-2.0 license, CRDs, `aigw` CLI, namespace and container images are unchanged, and the old repository and documentation links redirect.

IN SHORT

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.

Updated Markdown version ↗

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.

bashbash
OPENAI_API_KEY=sk-your-key aigw run

# then point a client at http://localhost:1975/v1

Install 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.

bashbash
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=Available

Apply a basic route

Apply the basic example manifest to create a working gateway and route configuration.

bashbash
kubectl apply -f https://raw.githubusercontent.com/envoyproxy/ai-gateway/main/examples/basic/basic.yaml

Port-forward the gateway

Find the Envoy service created for the gateway and forward a local port to it.

bashbash
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:80

Send a chat completions request

Call the OpenAI-style chat completions endpoint through the gateway to confirm traffic is routed.

bashbash
curl -H "Content-Type: application/json" \
  -d '{
        "model": "some-cool-self-hosted-model",
        "messages": [
            {
                "role": "system",
                "content": "Hi."
            }
        ]
    }' \
  $GATEWAY_URL/v1/chat/completions

Commands 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.

ToolStarsWhat it does
OmniRoute★ 91.4kA 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.7kA 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.2kA 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.4kA 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.7kMenu 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★ 33kLocal 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.1kAn 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.5kRoute, authenticate, and rate-limit AI and agent traffic on Kubernetes with Envoy Gateway