> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Gateway

> Centralized authentication, access control, and observability for your agents

> [!NOTE]
>
> Supported agent frameworks: [A2A
> agents](https://a2a-protocol.org/latest/topics/what-is-a2a/#understanding-the-agent-stack-a2a-mcp-agent-frameworks-and-models)

> **[Quickstart](https://docs.portkey.ai/docs/aigw/product/agent-gateway/quickstart.md)**
>
> Skip to the quickstart

> **[Advanced code snippets and examples](https://docs.portkey.ai/docs/aigw/product/agent-gateway/advanced-code-snippets-and-examples.md)**
>
> Advanced code snippets and examples for the Agent Gateway

## Introduction

Feel free to consume the documentation in any order you prefer, the quickstart is a good place to start to get going.

The Agent Gateway consists of 2 components:

* [Agent Registry](https://docs.portkey.ai/docs/aigw/product/agent-gateway/registry.md): A centralised registry of all agents in your organisation with access control and observability.
* [Agent Servers](https://docs.portkey.ai/docs/aigw/product/agent-gateway/servers.md): Agent servers that act as a client to the upstream agent server and as a server to the downstream agent clients.

The agent gateway acts as a centralised proxy for your agent servers. Sitting in between your agent clients and your agent servers.

Here is a broad architecture diagram:

```mermaid theme={"system"}
flowchart TD
  subgraph client["Client Layer"]
    A["Client (API Consumer)"]
  end

  subgraph gateway["Agent Gateway"]
    B["Agent Gateway"]
  end

  subgraph agentServer["Agent Server"]
    C["Agent Server"]
  end

  subgraph controlPlane["Control Plane"]
    D["Authentication, access control (skills, capabilities)"]
  end

  subgraph observability["Logging / Observability"]
    E[(Secure Logging)]
  end

  A -- "AI Gateway API key" --> B
  B -- "Authorization" --> C

  D -.-> B
  B -.-> D

  B --> E

  style D fill:#f2f6fd,stroke:#346df1,color:#346df1
  style E fill:#f8f9fa,stroke:#70a19f,color:#70a19f
```


## Related topics

- [Agent Servers](https://docs.portkey.ai/docs/aigw/product/agent-gateway/servers.md)
- [Agent Registry](https://docs.portkey.ai/docs/aigw/product/agent-gateway/registry.md)
- [Agent Catalog](https://docs.portkey.ai/docs/aigw/product/catalogs/agents.md)
- [Mastra Agents](https://docs.portkey.ai/docs/aigw/integrations/agents/mastra-agents.md)
- [Strands Agents](https://docs.portkey.ai/docs/aigw/integrations/agents/strands.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.