Skip to content
Help guide the future of agentgateway — Take the survey

AI Gateway for
LLMs, MCPs & Agents

Agentgateway is an open source proxy built on AI-native protocols (MCP & A2A) that provides drop-in security, observability, and governance for agent-to-LLM, agent-to-tool, and agent-to-agent communication across any framework and environment.

$ curl -sL https://agentgateway.dev/install | bash
Agentic AI Foundation

The Only gateway for the open agentic stack.

agentgateway is hosted by the Agentic AI Foundation, part of the Linux Foundation, with vendor-neutral governance and native support for the foundation's MCP and A2A protocols.

agentgateway on AAIF

Built in the open by

AAIF
Solo.io
Microsoft
Alibaba
Adobe
AWS
Cisco
Salesforce
Huawei
Amdocs
iFlytek

This is the agentgateway UI, running on sample traffic in your browser. Click around: send a prompt through a guardrail, call an MCP tool, add a virtual key, and watch logs and spend update. Run it yourself →

Connect every model, tool, and agent.

Plug agentgateway in anywhere on the traffic path and reach LLM providers, MCP servers, and other agents through one endpoint. Open any card to see it in the agentgateway UI.

Read the documentation →

Drop it in anywhere on the traffic path

The same binary and the same policies wherever you need them. Pick a placement:

Runs on

From

Users & appsCoding agents
agentgateway Gateway API ingress authguardrailslimitstraces

To

Your servicesAgentsMCP servers

At the edge of your cluster, in front of the apps, agents, and MCP servers you expose.

Example: Publish a support agent and its MCP tools on api.acme.com, with JWT auth and rate limits applied before a request reaches the cluster.

Docs
POST /v1/chat/completions model:smart
claude-opus-5-5 70%
gpt-5.6 30%
anthropic · 529 overloaded → failover → bedrock-us-east-1 · 200 · 1.4s

One API, every model, automatic failover

Apps call a model name. Virtual models split traffic by weight, fail over when a provider is down, and route to self-hosted models on vLLM, TGI, or Ollama. Speaks chat completions, Messages, Responses, embeddings, rerank, audio, and OpenAI Realtime.

Docs
one endpointgateway.acme.dev/mcp
  • githubgithub_search_issues, …
  • kuberneteskubernetes_pods_list, …
  • figmafigma_get_file, …
  • context7context7_query_docs, …
support-agent ⇄ billing-agent A2A

Every MCP server and agent behind one endpoint

Federate remote and local MCP servers into one namespaced tool catalog, serve MCP Apps across them, and route agent-to-agent (A2A) calls, including to Bedrock AgentCore runtimes.

Docs

Secure and govern every call.

Guardrails, identity, and per-tool policy for LLM, MCP, and A2A traffic, enforced before a request reaches a model, a tool, or another agent.

Block prompt injection and jailbreaks
Mask emails, cards, and SSNs
Redact API keys before model calls
Allow only approved models per key
Stop agents deleting pods and repos
Plug in OpenAI moderation AWS Bedrock Guardrails Google Model Armor Azure AI Content Safety Custom webhook

Realtime guardrails

Request and response guards on every model and every MCP tool call. Stack regex and built-in PII detectors with OpenAI moderation, AWS Bedrock Guardrails, Google Model Armor, Azure AI Content Safety, or your own webhook.

Docs
Authorization: Bearer eyJhbGci…JWT ✓
{
  "iss": "https://acme.okta.com",
  "sub": "maria.chen",
  "team": "platform",
  "scope": "mcp:github llm:smart"
}
jwt.team == "platform" → allow

Identity at the edge

JWT, OIDC, API keys, and external authorization. Claims flow into routing, rate limits, and per-tool policy, and token exchange with Okta, Keycloak, or Google means agents never hold backend credentials.

Docs
tools/list · team platform
  • github_search_issuesallow
  • github_create_issueallow
  • kubernetes_pods_listallow
  • kubernetes_pods_logallow
  • kubernetes_pods_deletedeny

Tool access policies

Decide which tools on which MCP servers each caller can see and call. Everything else is filtered out of the tool list.

Docs

See every call and what it costs.

Traces, logs, analytics, and budgets come from the gateway itself, and plug into the observability stack you already run.

trace 01a22fd5 · claude-code · maria.chen
POST /v1/chat/completions 2.31s
└ auth · jwt 2ms
└ guardrail · regex mask 1ms
└ anthropic · claude-opus-5-5 · $0.0105 1.92s
└ tools/call · github_search_issues 340ms

Every call, traced end to end

See each step from prompt to policy to model to tool, with latency, tokens, cache hits, and the realized cost of every call. Debug live with the agctl CLI.

Docs
OpenTelemetry Grafana Prometheus Datadog Langfuse + OTLP

Plug into your stack

OpenTelemetry traces with GenAI semantics for Jaeger, Honeycomb, or Grafana Cloud, Prometheus metrics with Grafana dashboards, and access logs over OTLP or in a database.

group by spend · last 24h
claude-opus-5-5$4.29
smart$3.10
claude-sonnet-5-5$2.87
gpt-5.6$1.91
gpt-5.5$0.58

Spend and usage, sliced any way

Tokens, requests, and spend over time, grouped by model, user, team, key, provider, or the agent harness that sent the call. Carry caller identity into AWS and Google Cloud billing so spend shows up per team on the provider's own bill.

Docs
Customer support botdaily-tokens
762K of 2M tokens
Code review agentmonthly-spend
$168 of $400
Partner API sandboxdaily-tokens
50K of 50K · blocked

Budgets, keys, and rate limits

A virtual key per team or agent, with token and dollar caps and rate limits enforced in-line, so a runaway loop hits a 429 instead of your invoice.

Docs

Learn more

Getting started

Run agentgateway as a single binary or on Kubernetes, and route your first request in minutes.

View all docs

Quick start

Get started with agentgateway in less than 5 minutes — local-first.

MCP connectivity guide

Connect agentgateway to MCP servers with built-in discovery and auth.

Deployment options

Binary, Docker, or Kubernetes — pick what fits your stack.

Works with your stack.

Model providers, agent frameworks, coding tools, and the platforms you already run.

OpenAI
Anthropic
Gemini
Amazon Bedrock
Azure OpenAI
Mistral
Ollama
Hugging Face
LangChain
LangGraph
CrewAI
Google ADK
Claude Code
GitHub Copilot
MCP
A2A
Kubernetes
Istio
Grafana
Langfuse

Build it with us.

agentgateway is developed in the open. Join the community on Discord, star the repo, and come to the community meetings.

Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate ↵ select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.