Happy Dussehra! May good always win. Merry Christmas! Warm wishes from Vizag. Happy New Year! Here’s to a great year ahead.

DevOps · CNCF daily

agentgateway: One Secure Door for LLM Calls, MCP Tools and Agent Traffic

NON CNCF, listed in the CNCF Landscape as a next-generation agentic proxy for AI agents and MCP servers. It sits in front of models and tools to authenticate callers, apply limits, route traffic and keep an audit trail, on top of the Kubernetes Gateway API.

13 min read

NON CNCF

  • agentgateway
  • Kubernetes
  • Gateway API
  • MCP
  • A2A
  • Helm
CNCF Landscape page

An AI agent makes two kinds of calls: it asks a model to think, and it asks a tool to act. Without a control point, each agent carries provider keys, talks to tool servers directly, and nobody can say who asked a model for what, or which agent deleted which record. agentgateway is that control point. It is a proxy that sits between agents and everything they call. It checks who is calling, applies limits, routes the call to a model or a tool server, and records what happened. The CNCF Landscape lists it under AI Native Infra › Gateway as “Next Generation Agentic Proxy for AI Agents and MCP servers”. It is a NON CNCF tool. The project describes itself as an open source gateway control plane and proxy data plane hosted as part of the Linux Foundation.

CNCF daily · Sprint 6, post 21 of 26 · AI Native Infra (Gateway) · NON CNCF

At a glance

Category AI Native Infra › Gateway (Landscape)
CNCF status NON CNCF, listed in the CNCF Landscape
Repository github.com/agentgateway/agentgateway; docs at agentgateway.dev
Traffic it handles LLM calls through an OpenAI-compatible interface, MCP tool servers, A2A agent traffic, and ordinary HTTP and gRPC APIs
Kubernetes mode A control plane that turns Gateway API resources and its own AgentgatewayPolicy and AgentgatewayBackend resources into proxy configuration
Standalone mode A single Deployment from a standalone Helm chart, configured through Helm values
Install Gateway API CRDs, then the agentgateway-crds and agentgateway Helm charts from oci://cr.agentgateway.dev/charts
Versions The docs site shows versioned pages from 1.0.x to 2.2.x plus a development build; I did not confirm the newest release, so pin one
Relation to kgateway The earlier kgateway brief notes that the AI and agent features moved into agentgateway from kgateway 2.3.0

The problem agentgateway solves

Question Agents calling providers and tools directly With agentgateway
Where do provider keys live? In every agent In the gateway only
Who called the model? Unknown Authenticated identity in the audit log
Spend control After the invoice Per-tenant limits and budgets at the gateway
Which tools may an agent use? Anything it can reach Policy decides which tools are visible
Switch model provider Change every agent Change the route
Observability Different in each service One place for traces and token counts
AI and normal API traffic Two separate gateways The same proxy can front ordinary APIs too

Key concepts

Term Meaning
MCP Model Context Protocol: a standard way for an agent to discover and call tools
A2A Agent-to-agent protocol for agents that talk to other agents
Gateway API The Kubernetes standard for describing gateways and routes
Control plane Watches Kubernetes resources and writes proxy configuration
Data plane The proxy that carries the actual traffic
AgentgatewayBackend A resource that describes an LLM provider or tool backend
AgentgatewayPolicy A resource that attaches rules such as authentication or limits
Token budget A limit on how many model tokens a caller can use
Tool federation Presenting several MCP servers to an agent as one

Architecture

agentgateway architecture: an identity provider issues tokens to the copilot agent, which calls agentgateway. The gateway authenticates the call, applies limits and routing, sends model requests to a self-hosted vLLM server, sends tool calls to MCP tool servers, and records audit logs and traces of who called what and how many tokens were used.

Blue is identity, the agent and audit, grey is the model and tool backends and teal is the gateway. Open the zoomable diagram, or download it as SVG or PNG.

Component Responsibility
Identity provider Issues tokens for users and agents.
Copilot agent Sends model and tool calls to the gateway, never directly to backends.
agentgateway Authenticates, applies policy, routes and records.
vLLM server The self-hosted model. See the vLLM brief.
MCP tool servers The tools the agent may call, such as ERP queries or document search.
Audit and traces Who called what, which tenant, how many tokens.

One agent call

agentgateway call flow in five steps: an agent sends a model or tool request with a token; the gateway authenticates the token and tenant; policy applies rate limits, budgets and allowed tools; the request is routed to vLLM or an MCP server; the backend answers and the response returns the same way; and an audit record keeps the caller, tenant, tool and token counts.

  1. Token. The agent sends a call with its token.
  2. Identity. The gateway checks the token and tenant.
  3. Allowed. Policy applies limits, budgets and tool rules.
  4. Forward. The call goes to vLLM or an MCP server.
  5. Record. The response returns and an audit record is kept.

Open the zoomable flow diagram, or download it as SVG or PNG.

Real world: the agent that called the wrong tool

An ERP agent is given a tool that can update vendor bank details. A prompt-injection attempt in an uploaded invoice tells it to use that tool. With direct access, the update would run. Behind the gateway, the policy for that agent allows only read tools, so the call is refused at the gateway, and the audit record shows the agent, the tenant and the blocked tool. The security team sees the attempt in one place instead of reading logs from five services.

Install agentgateway on Kubernetes

These steps follow the agentgateway Kubernetes installation guides. I did not run them for this post. The docs show different Gateway API versions and chart versions on different pages, so check the guide for the version you choose.

# 1. Gateway API CRDs (the quickstart for 2.2.x shows standard-install.yaml from v1.5.0)
kubectl apply --server-side --force-conflicts -f \
  https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.5.0/standard-install.yaml

# 2. agentgateway CRDs
helm upgrade -i agentgateway-crds oci://cr.agentgateway.dev/charts/agentgateway-crds \
  --create-namespace --namespace agentgateway-system \
  --version <version>

# 3. agentgateway control plane
helm upgrade -i agentgateway oci://cr.agentgateway.dev/charts/agentgateway \
  --namespace agentgateway-system \
  --version <version> \
  --wait

kubectl get pods -n agentgateway-system

The quickstart then creates a Gateway named agentgateway-proxy in agentgateway-system; the docs say an address can take a few minutes to be assigned, and the proxy pod runs one container, agent-gateway.

kubectl get gateway agentgateway-proxy -n agentgateway-system

The 0.0.0-latest-dev version shown in some pages is a development build; use a released version for anything real.

A second option is the standalone Helm chart (agentgateway-standalone), which installs one unmanaged Deployment and is configured through Helm values. The docs say it has no database by default, so features such as LLM analytics, logs and API key budgets need one added. Use the Kubernetes control plane mode if you want Gateway API resources and managed proxies.

Try it

The exact resource fields differ by version, so the safe path is the docs’ LLM and MCP guides for your version. The shape of the work is:

# Sketch only: take the real field names from the docs for your version
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: llm
  namespace: agentgateway-system
spec:
  parentRefs:
  - name: agentgateway-proxy
  rules:
  - backendRefs:
    - group: agentgateway.dev           # an AgentgatewayBackend for the vLLM service (name and group: verify)
      kind: AgentgatewayBackend
      name: vllm

Then point the agent’s OpenAI base URL at the gateway address, and attach an AgentgatewayPolicy for authentication and limits. I did not run this sketch.

Production reference design

  1. Gateway is the only path. Network policy allows model servers and tool servers to be reached only from the gateway.
  2. Authenticate every caller. Use tokens from your identity provider, and carry the tenant in a claim.
  3. Keys stay in the gateway. Provider keys live in gateway secrets, never in agents.
  4. Limits per tenant. Rate limits and token budgets per tenant, so one tenant cannot use all the GPU.
  5. Tool allow-lists. Each agent sees only the tools its policy allows, and write tools need stricter rules.
  6. Audit everything. Send logs and traces to your tracing tool and keep them for your retention period.
  7. Pin versions. Pin the CRD and control-plane chart versions, and the Gateway API version.
  8. Run replicas. More than one proxy replica, with disruption budgets.
  9. Test failure modes. Test what agents do when the gateway returns a limit or policy error.
  10. Plan the Gateway API stack. Decide whether agentgateway or another gateway owns the edge; see the caveat below.

Security

  • The gateway is a high-value target. It holds provider keys and sees prompts; restrict who can change its policies.
  • Policy changes are production changes. Review AgentgatewayPolicy edits in Git like code.
  • Tool poisoning. A malicious tool description or tool result can steer an agent; limit which MCP servers are reachable and review their tools.
  • Prompt injection. The gateway can restrict tools, but it cannot judge every prompt; pair it with input and output guardrails.
  • Prompt logging. Audit logs may contain sensitive prompts; control access and retention.
  • Multi-tenancy. Test that one tenant cannot see another tenant’s traffic or budgets.
  • Supply chain. Pull charts and images from a mirror, pin versions and scan them.

Troubleshooting

This table is built from the installation guides and common Gateway API failures. I did not install agentgateway for this post, so check each entry on your cluster.

Symptom Likely cause How to check Fix
Helm cannot pull the chart Wrong registry path or version The helm upgrade error Use oci://cr.agentgateway.dev/charts/... with a version that exists
CRD errors on apply Gateway API version outside the supported range kubectl get crd | grep gateway Install a Gateway API version the guide lists
Control plane pod not Running Missing CRDs or wrong namespace kubectl get pods -n agentgateway-system, logs Install the CRDs chart first, then the control plane
Gateway has no address No load balancer yet kubectl get gateway agentgateway-proxy -n agentgateway-system Wait a few minutes, or check your cloud load balancer support
Route not accepted Wrong parentRefs or namespace kubectl describe httproute Match the Gateway name and namespace, and allow the route
401 or 403 from the gateway Token or policy rejects the caller Gateway logs Check the token claims and the policy that applies
Model call times out Backend unreachable or slow Gateway logs, the backend’s own logs Check the Service name and port, and the model server’s readiness
Tool list is empty MCP backend not reachable or filtered by policy Backend status and policy Fix the backend address, and allow the tools
Standalone chart has no analytics No database configured Chart docs say the default has none Add a database, or use the control plane mode
Resource fields rejected Docs for another version Compare chart version and docs version Use the docs page for your installed version

Usage cases

  • LLM gateway. One OpenAI-compatible address in front of self-hosted and hosted models.
  • MCP gateway. One secured address for many tool servers, with per-agent tool visibility.
  • Cost control. Token budgets and rate limits per tenant or team.
  • Agent security. Authenticate agents, restrict tools and keep an audit trail.
  • Normal API traffic. The docs say the same proxy can front regular APIs, so you do not need two gateways.
  • In the Sprint 6 project. Every copilot call to vLLM and to the ERP MCP tools goes through it, with tenant limits and an audit record.

Operational considerations

  • Version and docs drift. The docs have separate pages for many versions, and some pages show development builds; always match the docs to the installed version.
  • Gateway ownership. The ERP design already has an edge gateway; decide whether agentgateway sits behind it for agent traffic or takes over that role, and test the combination.
  • Latency. Each hop adds some time; measure it against your model latency.
  • Failure handling. Agents must handle rate-limit and policy errors gracefully.
  • Policy sprawl. Keep policies few and named by purpose, with owners.
  • Not CNCF. It is a Linux Foundation hosted project outside the CNCF; follow its releases and roadmap.

Adoption

The project’s own documentation says it is hosted as part of the Linux Foundation. I did not verify named end users for this post, so none are listed.

Alternatives

Solution Model Best suited to
Envoy AI Gateway AI gateway built on Envoy Gateway, listed in the same Landscape group Teams already standardised on Envoy Gateway
kgateway Envoy-based Gateway API gateway, CNCF Sandbox; see the kgateway brief The general ingress and API edge, with AI features now in agentgateway
LiteLLM proxy A proxy that unifies many model providers behind one API Teams that mainly need provider switching and key management
Cloud AI gateways Managed gateways from cloud providers Teams that prefer a managed service
Istio or Envoy with custom filters Build the controls yourself Teams with strong proxy expertise
No gateway Agents call backends directly A prototype with one agent and no sensitive data

Strengths and limitations

Strengths Limitations
One place for LLM, MCP and A2A traffic Not a CNCF project
Built on the Kubernetes Gateway API Versioned docs and development builds can confuse
Central keys, limits, policy and audit Adds a hop and a component to operate
Can also front normal APIs Features like analytics need a database in standalone mode
Standalone and Kubernetes modes Overlap with other gateways needs a clear ownership decision
Hosted by the Linux Foundation Fast-moving, so pin versions and test upgrades

Recommendation

Adopt for agent and model traffic that must be authenticated, limited and audited. For the ERP project, run agentgateway as the only path from the copilot to vLLM and to the MCP tool servers, with tokens from your identity provider, per-tenant limits, read-only tool policies by default and audit records sent to tracing. Install a released version through Helm, pin the Gateway API and chart versions, and test how it sits behind the existing edge gateway. For a single prototype agent with no sensitive data, a direct call is simpler.

References: agentgateway documentation · Quickstart: install the control plane · Helm installation (1.6.x) · Standalone Helm chart · Kubernetes docs overview (1.2.x) · agentgateway repository · CNCF Landscape

Spotted something wrong or out of date?Suggest a correction. I review every suggestion before changing the page.

EmailRSS