agent-router is a free, open source api development & testing project written in Go and released under Apache-2.0. It has 2,116 GitHub stars, 379 forks and 300 open issues, and was last pushed 8 hours ago. On this registry it ranks #98 of 154 tracked projects in API Development & Testing, with 5 head-to-head comparisons available.

The open source control plane for AI and agent traffic, powered by Envoy.
An Agentic AI Foundation project. Formerly Envoy AI Gateway.

Documentation · Quickstart · Blog · Release Notes · Talks

Agent Router

Agent Router gives application teams one consistent, OpenAI-compatible API for every model and tool, from hosted providers to self-hosted inference and MCP servers. Platform teams keep credentials, routing, quotas, failover, and usage attribution in one place, enforced by Envoy and Envoy Gateway.

Agent Router controls. Envoy carries.

Formerly Envoy AI Gateway

Envoy AI Gateway is now Agent Router, an Agentic AI Foundation project. Same code, same maintainers, same release cadence and Apache 2.0 license. Nothing you deploy is renamed:

  • CRDs and API group are unchanged: AIGatewayRoute, AIServiceBackend, BackendSecurityPolicy, and the aigateway.envoyproxy.io API group stay as they are.
  • The CLI is still aigw, and the envoy-ai-gateway-system namespace is unchanged.
  • Container images, Helm charts, and the Go module path are unchanged (docker.io/envoyproxy/ai-gateway-*, github.com/envoyproxy/ai-gateway).
  • The repository moved to theagentrouter/agent-router; old envoyproxy/ai-gateway links redirect.
  • The website moved to theagentrouter.ai; every aigateway.envoyproxy.io link redirects to the same page.

Your manifests from yesterday apply tomorrow.

Quick start

Run Agent Router as a standalone, OpenAI-compatible router on your laptop with one command:

OPENAI_API_KEY=sk-your-key aigw run

Then point any OpenAI-compatible client at http://localhost:1975/v1. See the CLI guide for installation and provider auto-configuration, or the Getting Started guide to deploy on Kubernetes with Envoy Gateway.

Usage

When using Agent Router, we refer to a two-tier gateway pattern. The Tier One Gateway functions as a centralized entry point, and the Tier Two Gateway handles ingress traffic to a self-hosted model serving cluster.

  • The Tier One Gateway handles authentication, top-level routing, and global rate limiting
  • The Tier Two Gateway provides fine-grained control over self-hosted model access, with endpoint picker support for LLM inference optimization.

Supported AI Providers

Agent Router supports a wide range of AI providers, making it easy to integrate with your preferred LLM services:


OpenAI

Azure OpenAI

Google Gemini

Vertex AI

AWS Bedrock

Mistral

Cohere

Groq

Together AI

DeepInfra

DeepSeek

Hunyuan

SambaNova

Grok

Tetrate Agent Router Service

Anthropic

Documentation

Contact

  • Chat: join the Agent Router Discord to ask questions and collaborate with the community.
  • Weekly meeting: the maintainers and community meet every Monday. Register, add agenda points, and get involved via the public meeting document.

Get Involved

We follow the LF Projects Code of Conduct, as an Agentic AI Foundation project.

To contribute to the project via pull requests, please read the CONTRIBUTING.md file which includes information on how to build and test the project.

Background

The proposal of using Envoy Gateway as a Cloud Native LLM Gateway inspired the initiation of this project.


Agent Router is an Agentic AI Foundation project, powered by Envoy. Copyright © Agent Router a Series of LF Projects, LLC. For web site terms of use, trademark policy and other project policies please see .

Frequently asked questions

Is agent-router free to use?

agent-router is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does agent-router do?

Manages Unified Access to Generative AI Services built on Envoy Gateway

What is agent-router written in?

agent-router is primarily written in Go. Its source is publicly available at https://github.com/theagentrouter/agent-router, and it has 2,116 GitHub stars.