MCPcopy Index your code
hub / github.com/agentgateway/agentgateway

github.com/agentgateway/agentgateway @v1.3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.1 ↗ · + Follow
14,753 symbols 49,766 edges 821 files 2,642 documented · 18% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img alt="agentgateway" src="https://raw.githubusercontent.com/agentgateway/agentgateway/refs/heads/main/img/banner-light.svg">






<a href="https://opensource.org/licenses/Apache-2.0">
  <img src="https://img.shields.io/badge/License-Apache2.0-brightgreen.svg?style=flat" alt="License: Apache 2.0">
</a>
<a href="https://github.com/agentgateway/agentgateway">
  <img src="https://img.shields.io/github/stars/agentgateway/agentgateway.svg?style=flat&logo=github&label=Stars" alt="Stars">
</a>
<a href="https://discord.gg/BdJpzaPjHv">
  <img src="https://img.shields.io/discord/1346225185166065826?style=flat&label=Join%20Discord&color=6D28D9" alt="Discord">
</a>
<a href="https://github.com/agentgateway/agentgateway/releases">
  <img src="https://img.shields.io/github/v/release/agentgateway/agentgateway?style=flat&label=Latest%20Release&color=6D28D9" alt="Latest Release">
</a>
<a href="https://deepwiki.com/agentgateway/agentgateway"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
<a href='https://codespaces.new/agentgateway/agentgateway'>
  <img src='https://github.com/codespaces/badge.svg' alt='Open in Github Codespaces' style='max-width: 100%;' height="20">
</a>






The <strong>first complete</strong> connectivity solution for Agentic AI.

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.

agentgateway UI

Intro to Agentgateway Video

Agentgateway Intro Video

Key Features

  • LLM Gateway

Route traffic to major LLM providers (OpenAI, Anthropic, Gemini, Bedrock, and more) through a unified OpenAI-compatible API with budget and spend controls, prompt enrichment, load balancing, and failover.

  • MCP Gateway

Connect LLMs to tools and external data sources via MCP with tool federation, stdio/HTTP/SSE/Streamable HTTP transports, OpenAPI integration, and OAuth authentication.

  • A2A Gateway

Enable secure agent-to-agent communication using A2A, with capability discovery, modality negotiation, and task collaboration.

  • Inference Routing

Intelligent routing to self-hosted models using Kubernetes Inference Gateway extensions, with decisions based on GPU utilization, KV cache, LoRA adapters, and queue depth.

  • Guardrails

Multi-layered content filtering with regex, OpenAI moderation, AWS Bedrock Guardrails, Google Model Armor, and custom webhooks.

  • Security & Observability

Auth (JWT, API keys, OAuth), fine-grained RBAC with CEL policy engine, rate limiting, TLS, and OpenTelemetry metrics/logs/tracing.

Getting Started

Documentation

Depending on your deployment environment, check out the following docs:

Agentgateway has a built-in UI for you to explore agentgateway connecting agent-to-agent or agent-to-tool:

agentgateway UI

Sponsors

Blacksmith

Thank you to our sponsors for helping to fund the development of agentgateway!

Contributing

For instructions on how to contribute to the agentgateway project, see the CONTRIBUTION.md file.

Community Meetings

To join a community meeting, add the agentgateway calendar to your Google account. Then, you can find event details on the calendar.

Recordings of the community meetings will be published on our google drive.

Roadmap

agentgateway is currently in active development. If you'd like a feature that's missing, open an issue in our GitHub repo.

Contributors

Thanks to all contributors who are helping to make agentgateway better.

Star History

Star history of agentgateway/agentgateway over time


<img src="https://github.com/agentgateway/agentgateway/raw/v1.3.1/img/lf-stacked-color.png" width="300" alt="Linux Foundation logo"/>

Agentgateway is a Linux Foundation project.

Extension points exported contracts — how you extend this code

DynamicFlatten (Interface)
Trait for types that can be flattened into a parent struct's map. This is automatically implemented by the DynamicType d [18 …
crates/cel-fork/cel/src/types/dynamic.rs
ResponseType (Interface)
ResponseType is an abstraction over provider/endpoint specific response formats that enables uniform policy enforcement [8 …
crates/agentgateway/src/llm/types/mod.rs
Connection (Interface)
Describes a type returned by a connector. [6 implementers]
crates/pool/src/connect/mod.rs
ConditionalPolicy (Interface)
+k8s:deepcopy-gen=false nolint: kubeapilinter [5 implementers]
controller/api/v1alpha1/agentgateway/agentgateway_policy_types.go
CredentialResolver (Interface)
CredentialResolver resolves same-namespace credential refs into data keyed by credential field name. Implementations sho [4 …
controller/pkg/utils/kubeutils/secrets.go
BufferedSplitter (Interface)
BufferedSplitter is a trait to expose splitting an IO object into a buffered reader and a writer [3 implementers]
crates/core/src/copy.rs
RawHandler (Interface)
ResponseHandler is responsible for handling a discovery response. Handlers can mutate state and return a list of rejecte [1 …
crates/xds/src/client.rs
TestingT (Interface)
TestingT is an interface that matches the subset of testing.T methods we need
controller/test/testutils/env.go

Core symbols most depended-on inside this repo

new
called by 4099
crates/core/src/strng.rs
clone
called by 1296
crates/agentgateway/src/store/policy.rs
default
called by 1285
crates/celx/src/general.rs
into
called by 1190
crates/agentgateway/src/http/apikey.rs
string
called by 542
crates/cel-fork/cel/src/functions.rs
clone
called by 470
crates/agentgateway/src/test_helpers/extmcpmock.rs
iter
called by 466
crates/agentgateway/src/types/agent.rs
make
called by 309
crates/xtask/src/schema.rs

Shape

Method 6,385
Function 5,639
Class 1,173
Struct 825
Enum 380
Interface 213
TypeAlias 119
FuncType 19

Languages

Rust53%
Go41%
TypeScript6%
Python1%

Modules by API surface

api/resource.pb.go2,225 symbols
api/resource_json.gen.go326 symbols
controller/api/v1alpha1/agentgateway/zz_generated.deepcopy.go325 symbols
crates/cel-fork/cel/src/parser/gen/celparser.rs254 symbols
crates/agentgateway/src/types/agent.rs217 symbols
crates/pool/src/pool.rs158 symbols
crates/agentgateway/src/proxy/gateway_test.rs139 symbols
crates/agentgateway/src/http/ext_proc_tests.rs137 symbols
crates/agentgateway/src/types/local.rs134 symbols
controller/api/v1alpha1/agentgateway/agentgateway_policy_types.go131 symbols
crates/agentgateway/src/store/binds.rs130 symbols
crates/agentgateway/src/mcp/mcp_tests.rs128 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add agentgateway \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact