← Back to all projects

agentgateway

Proxy that puts auth, policy and tracing in front of MCP, A2A and LLM traffic

OfficialApache-2.0
Stars
5.8k
Forks
1k
Open issues
309
Last commit
30 Oct 2026

What is agentgateway?

A Rust data plane that sits between agents and everything they call — model providers, MCP servers, other agents — so authentication, RBAC, rate limits and OpenTelemetry export are configured once instead of reimplemented in every agent. Solo.io donated it to the Linux Foundation in August 2025 and it moved under the Agentic AI Foundation in June 2026, alongside MCP and goose. It is young for something that sits in the request path: per-user identity onto downstream MCP servers is still an open issue, so confirm the authentication model you need before putting it in front of production traffic.

What can you do with agentgateway?

  • Put several MCP servers behind one port — One mcp backend takes a list of named targets — the repository's multiplex example launches mcp-server-time with uvx and server-everything with npx — and exposes them together on a single bind. stdio, SSE and streamable HTTP all terminate at the gateway, so the client sees one endpoint.
  • Authorise individual tool calls with CEL — mcpAuthorization rules are CEL expressions over the verified JWT and the call itself: mcp.tool.name == "echo" leaves one tool open to anyone while jwt.sub == "test-user" && mcp.tool.name == "get-sum" restricts another to a single subject. Tool-level policy is what the MCP specification explicitly declines to enforce itself.
  • Route by cost rather than by model name — A virtual model dispatches to real backends through conditional rules — the cost-routing example sends requests whose max_tokens is 1024 or less to gpt-4o-mini and larger ones up the tiers — with the last target acting as the required fallback. Budget and spend controls, prompt enrichment and failover sit on the same OpenAI-compatible surface.
  • Run it standalone or as a Gateway API controller — A single binary reading flat YAML covers local and non-Kubernetes deployments; the built-in controller implements Gateway API plus the Inference Gateway extensions, routing to self-hosted models on GPU utilisation, KV cache state, LoRA adapters and queue depth. Guardrails hook into regex filters, OpenAI moderation, Bedrock Guardrails, Model Armor or a custom webhook.
  • Check the identity story before committing — Enterprise SSO with per-user credentials to downstream MCP services, OAuth Identity Assertion for cross-app access and custom OAuth scopes are all still open issues, and another reports that the current versioning scheme breaks automated patch updates. The proxy is production-shaped; the delegated-identity half of it is not finished.

Star history

16 Aug to 30 Oct · +1.4k

4.4k5.8k

Frequently asked questions

Is agentgateway free for commercial use?

agentgateway is released under the Apache-2.0 licence — OSI-approved open source, which permits commercial use.

How can agentgateway be deployed?

agentgateway is available as Self-hosted / Runs locally.