> ## Documentation Index
> Fetch the complete documentation index at: https://portkey-docs-add-third-party-integration-issues-fixes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Gateway

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

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

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/product/agent-gateway/quickstart">
    Skip to the quickstart
  </Card>

  <Card title="Advanced code snippets and examples" icon="code" href="/product/agent-gateway/advanced-code-snippets-and-examples">
    Advanced code snippets and examples for the Agent Gateway
  </Card>
</CardGroup>

## 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](/product/agent-gateway/registry): A centralised registry of all agents in your organization with access control and observability.
* [Agent Servers](/product/agent-gateway/servers): 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={null}
flowchart TD
  subgraph client["Client Layer"]
    A["Client (API Consumer)"]
  end

  subgraph gateway["Agent Gateway"]
    B["Portkey 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 -- "Portkey 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
```
