AgentGateway: One Data Plane to Govern Every AI Agent, Tool, and LLM
From the publisher’s feed, collected in the ZeroLabs newsroom.
Your agents are talking to everything. Nobody is watching the conversation. This is the open-source project that fixes that.By Ganesh Gurudu · A 12 minute read · June 2026In shortEvery team is racing to wire AI agents into real systems — agents that call tools, call models, and increasingly call each other. The wiring works. What’s missing is the part every other layer of your stack already has: a single place to secure, observe, and govern that traffic.AgentGateway is that place. It’s an open-source, AI-native proxy — one high-performance data plane that sits in front of three new kinds of traffic at once: agent-to-LLM, agent-to-tool (via MCP), and agent-to-agent (via A2A) — plus the ordinary HTTP and gRPC traffic you already run. It was built from scratch in Rust by Solo.io, donated to the Linux Foundation in August 2025, and already has contributors from AWS, Cisco, IBM, Microsoft, and Red Hat.This article is the full tour: what it is, why it had to exist, how it works under the hood, when you should reach for it, and how to integrate it into what you already run.The problem: your agents grew up, your plumbing didn’tPicture how AI got into your company. It started small — one app calling one model. Then someone gave that app a tool through MCP. Then another team built an agent. Then the agents started calling each other.Here’s what that looks like six months in:Every agent holds its own API keys. Every tool connection is hand-wired. Every team picks its own model provider, its own retry logic, its own logging — or none at all. There’s no single answer to the questions that matter:Which agent called which tool, when, and why?Who is allowed to use the payments tool — and who just quietly can?What did we spend on tokens last night, and which agent burned it?When OpenAI has a bad five minutes, does everything fall over?You’ve seen this movie before. It’s the exact mess microservices created a decade ago — sprawl with no front door — and we solved that with API gateways and service meshes. But here’s the catch: a normal API gateway can’t see agent traffic. It doesn’t understand MCP tool calls. It can’t read an A2A handshake. It has no idea what a token budget is. To your old gateway, an agent asking a tool to refund a customer looks like any other POST.That gap is the whole reason AgentGateway exists.AgentGateway is the first data plane built from the ground up for AI agents — one proxy that routes, secures, observes, and governs service traffic, LLM traffic, MCP tools, and agent-to-agent communication, without stitching together a pile of separate gateways.That’s the one-sentence version. Everything below unpacks it.The mental model: one data plane, four gatewaysThe cleanest way to hold AgentGateway in your head is this: it’s one proxy wearing four hats. Same engine, same config model, same security and observability — pointed at four different kinds of traffic.1. The LLM Gateway. One unified, OpenAI-compatible door to every model provider — OpenAI, Anthropic, Gemini, Bedrock, Azure, Vertex, Ollama, vLLM, and more. Your app speaks one API; AgentGateway handles the differences, the keys, the failover, and the bill. Load balancing, model aliasing, token budgets, cost tracking, prompt enrichment, and content-based routing all live here.2. The MCP Gateway. A secure front door to your Model Context Protocol tool servers. It can federate many MCP servers into one endpoint, enforce tool-level access control, add OAuth and JWT, rate-limit tool calls, and record every single one. More on this below — it’s the part most teams underestimate.3. The A2A Gateway. Safe agent-to-agent communication over the open Agent2Agent protocol — capability discovery, modality negotiation, and task collaboration, with the same auth and audit as everything else. This is the piece that becomes load-bearing as you go from one agent to a fleet of them.4. The Service Gateway. The boring, essential one. Plain HTTP, gRPC, and TCP with zero-config TLS and mTLS — so the same gateway that fronts your agents can front your regular microservices too. One stack, not two.The point of putting all four behind one engine isn’t tidiness. It’s that security, observability, and governance are written once and apply everywhere. A policy you write for a microservice works the same way for an MCP tool. That’s the unlock.How it works: control plane + data planeUnder the hood, AgentGateway splits into two halves — the same proven shape that runs the world’s service meshes.The data plane is the proxy itself: the thing in the request path, written in Rust for speed and safety, carrying actual traffic. It’s the part that leans on battle-tested code and ideas from Istio, so it isn’t a v0.1 experiment — it’s mature plumbing aimed at a new kind of payload.The control plane is the brain. On Kubernetes, it watches your configuration — the standard Gateway API plus AgentGateway’s own custom resources like AgentgatewayPolicy and AgentgatewayBackend — and translates all of it into live proxy config, pushed down over xDS (the same gRPC config protocol Istio and Envoy use). Change a policy, and the data plane updates without a restart.Everything you configure fits into four simple nouns:Listeners — how the gateway accepts traffic (a port, a protocol, HTTP/HTTPS/TCP, TLS settings).Routes — how it matches a request (by path, header, host, method, query) and where it sends it.Backends — where traffic actually goes: an LLM provider, an MCP server, an A2A agent, or a plain service.Policies — the rules layered on top: auth, rate limits, retries, timeouts, guardrails, transformations, observability.A request flows through in clear phases — match the route, run the security and traffic policies, transform as needed, forward to the backend, then process the response on the way back out. The same lifecycle whether the backend is a billing microservice or Claude.Because policy lives in this one layer, the things every platform team fights about become configuration instead of code scattered across a dozen apps:Security — JWT, API keys, OAuth, OIDC, mTLS, CORS, CSRF, and fine-grained RBAC driven by a CEL expression engine, so access rules can be as precise as you need.Resiliency — retries, per-try timeouts, keepalive, failover, locality-aware routing, traffic splitting for canaries.Observability — native OpenTelemetry metrics, logs, and traces, wired straight into Prometheus, Grafana, and Jaeger, plus LLM-specific tools like Langfuse and LangSmith.Guardrails — regex and PII filters, OpenAI moderation, AWS Bedrock Guardrails, Google Model Armor, or your own webhook, layered for defense in depth.The MCP deep dive: why one gateway for many tools changes everythingIf you only take one technical idea from this article, make it this one.MCP is a beautiful standard for connecting a model to a tool. But MCP by itself says nothing about the enterprise questions: who’s allowed to call this tool, how do we audit it, what happens at scale, how do we not leak data. Wire up ten MCP servers directly and you’ve got ten doors, ten auth schemes, and ten blind spots.AgentGateway’s MCP Gateway collapses that with federation — also called Virtual MCP. Many real MCP servers, behind one virtual endpoint.To the agent, it looks like one MCP server with a clean menu of tools. Behind the gateway, those tools can come from a dozen different servers — some local over stdio, some remote over streamable HTTP or SSE, some that are really just an OpenAPI REST API dressed up as MCP tools. The agent doesn’t know or care. And now you get, in one place:Tool-level access control — not “can this agent reach the server,” but “can this agent call this specific tool.” Read the database? Sure. Drop a table? No.One auth front door — OAuth 2.0 and JWT enforced at the gateway (Keycloak, Auth0, Okta all plug in), instead of per-server credentials sprayed everywhere.Rate limiting per tool, so a runaway agent can’t hammer a fragile backend.Full audit and metrics — every tool call, who made it, how long it took, whether it errored.Stateful sessions routed correctly, so multi-step tool interactions land on the right server.This is the difference between “we connected some MCP servers” and “we run MCP in production.” The gateway is where the second sentence becomes true.When should you actually use it?Not every project needs this on day one. Here’s the honest guide.Reach for AgentGateway when:You have more than one agent, model, or MCP server and the wiring is starting to sprawl.You need to answer for it — security review, audit, cost accountability, or compliance (data residency, access control) is now someone’s job.You’re multi-provider and want failover, load balancing, or the freedom to switch models without rewriting apps.You’re running MCP tools that touch real systems — payments, customer data, production infrastructure — and “any agent can call anything” is no longer acceptable.Agents are starting to call each other, and you need A2A traffic to be discoverable, governed, and observable.You want one stack for both your microservices and your AI traffic, not two parallel platforms to operate.You can probably wait if: you have a single prototype, one model, one tool, and no production or compliance pressure yet. A direct connection is fine — adopt the gateway when the second or third connection appears, which is usually sooner than you think.The rule of thumb: the moment “who can call what, and what did it cost” becomes a real question, you need the layer that can answer it.How to integrate itAgentGateway is deliberately easy to drop in, because it speaks standards you already use. There are two main shapes.Standalone (binary or Docker) — start here. For local development, a single service, or a quick proof of value, run it as a single binary or a Docker container with a JSON/YAML config file. Point your app’s OpenAI client at the gateway instead of at OpenAI, add a model backend, and you have failover and cost tracking in minutes. Add an MCP server as a backend and your agents reach tools through the governed door.Kubernetes (Helm) — run it for real. For production, AgentGateway is Kubernetes-native and built on the Gateway API. Install the control plane with Helm (GitOps via ArgoCD or FluxCD is fully supported), express your setup as standard Gateway API resources plus AgentGateway CRDs, and let the control plane turn that into live proxy config and manage the proxy lifecycle. TLS through cert-manager, DNS through External DNS, deployments through Argo Rollouts.It plugs into the tools you already have. AgentGateway is built to sit between things you’re already using, on both sides.LLM providers: OpenAI, Anthropic, Azure, Bedrock, Gemini, Vertex AI, xAI/Grok, Ollama, vLLM — behind one OpenAI-compatible API.Clients & IDEs: Claude Code, Claude Desktop, Cursor, Codex, Windsurf, VS Code Continue, GitHub Copilot, OpenAI SDK — point them at the gateway, no code changes.Identity: Keycloak, Auth0, Okta, OAuth2 Proxy, Tailscale.Observability: OpenTelemetry, Prometheus, Grafana, Jaeger, plus Langfuse, LangSmith, Arize Phoenix.Frameworks & UIs: LangChain, CrewAI, Goose, Kagent, LibreChat, Open WebUI, and custom runtimes over A2A.Because it’s all standard protocols — OpenAI-compatible HTTP, MCP, A2A, Gateway API — integration is mostly pointing things at the gateway, not rewriting them.Getting started in five steps1. Run it standalone first. Put one LLM provider behind it; point an existing OpenAI client at the gateway; confirm a chat completion flows through.2. Add failover and a budget. A second provider and a virtual key with a token budget — resiliency and cost control with zero app changes.3. Bring a tool in through MCP. Add an MCP server as a backend; turn on tool-level access control.4. Turn on observability. Wire OpenTelemetry to Prometheus and Grafana (and Langfuse for LLM traces). Watch calls, latencies, errors, and spend appear.5. Promote to Kubernetes. Install the control plane with Helm, move config to Gateway API resources, layer in OAuth, mTLS, and guardrails as policy.Each step is independently useful. You never have to boil the ocean to get value.The honest caveatsIt’s young — but not fragile. AgentGateway is a 2025 project, so the surface area is still growing and some tooling (the agctl CLI, certain tracing features) is marked experimental. But the core is Rust built on Istio's lineage and backed by serious companies, so the engine is far more mature than the project's age suggests. Pin versions and read the release notes.A gateway is a single point of leverage — and risk. Putting all agent traffic through one layer is powerful precisely because everything flows through it. Give it the discipline you’d give any privileged choke point: run it highly available, scope policies tightly, default to least privilege on tool access, and log everything.Standards are still moving. MCP and A2A are young protocols evolving fast. AgentGateway tracking them is a feature, but expect the spec — and your config — to shift over the next year. Building on the gateway actually insulates your apps from that churn, which is part of the point.Where this goes nextThe agent data plane becomes standard infrastructure. In two years, running agents without a governing gateway will feel like running microservices with no ingress — technically possible, obviously reckless. “Where’s your agent gateway?” becomes a normal security-review question.Governance moves from blocking to shaping. Soon the gateway’s guardrails, cost controls, and RBAC will actively shape agent behavior in real time — throttling a tool whose spend spiked, rerouting around a degraded model, rewriting a risky prompt before it lands.A2A becomes the busy lane. Agent-to-tool traffic is big today; agent-to-agent will dwarf it as fleets of specialized agents collaborate. The gateway that already speaks A2A is positioned for exactly that wave — and an “agent mesh” is the natural next layer up.The data plane and the model layer blur. GPU-aware inference routing and semantic routing are already showing up. The line between “the gateway” and “the serving stack” will keep thinning until smart routing of AI traffic is just something the data plane does.The throughline is simple. For a decade we learned that connectivity, not compute, is where distributed systems are won or lost. Agents are the most connected systems we’ve ever built. AgentGateway is the bet that they deserve a data plane of their own — and that bet looks more correct every month.Your starter checklistMap your sprawl: every agent, model provider, and MCP server, and how they connect today.Stand up AgentGateway standalone with one LLM provider behind it.Point an existing client (your app, or Claude Code / Cursor) at the gateway — confirm no code changes needed.Add a second provider + a token budget for failover and cost control.Bring one MCP server in and turn on tool-level access control.Federate multiple MCP servers behind one Virtual MCP endpoint.Wire OpenTelemetry → Prometheus/Grafana; add Langfuse for LLM traces.Add OAuth/JWT at the gateway via Keycloak/Auth0/Okta.Layer in guardrails (PII/regex + a moderation provider).Promote to Kubernetes with Helm + Gateway API when it’s earning its keep.Treat it like privileged infra: HA, least privilege, audit everything.The agents are already talking to everything you own. The only question is whether anyone is governing the conversation. AgentGateway is how you say yes.SourcesAgentGateway — official site & docsGitHub repository (Apache 2.0)Kubernetes docsSolo.io & Linux Foundation launch announcements (Aug 2025)Model Context ProtocolKubernetes Gateway APIWritten by Ganesh Gurudu. AgentGateway is an open-source project of the Linux Foundation; this is an independent explainer.Ganesh Gurudu is a Principal Platform & SRE Architect with 15+ years building large-scale, multi-tenant infrastructure across healthcare, telecom, and finance — focused on Kubernetes-native platforms, security/RBAC, and observability at scale.💬 Feedback and corrections welcome — connect on LinkedIn.AgentGateway: One Data Plane to Govern Every AI Agent, Tool, and LLM was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.