# Agent Router (formerly Envoy AI Gateway)

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

- Category: Evaluation & Production Ops / Gateways & Routing
- Language: Go
- Licence: Apache-2.0
- Repository: https://github.com/theagentrouter/agent-router
- Website: https://theagentrouter.ai/
- Canonical page: https://ai-tldr.dev/tools/envoy-ai-gateway/
- Updated: 2026-09-09

## In short

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.

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

```bash
OPENAI_API_KEY=sk-your-key aigw run

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

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

```bash
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
```

3. Apply a basic route

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

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

4. Port-forward the gateway

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

```bash
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
```

5. Send a chat completions request

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

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

## 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

## Version history

- 2026-09-09: 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.
