This directory contains examples of how to use agentgateway. Each example covers a slightly different use-case, if you are unsure where to start, basic is the way to go. The examples increase in complexity, so we recommend following them in order.
The basic example is the simplest way to get started with agentgateway. This example exposes a single MCP server over Stdio.
The multiplex example shows how to use agentgateway to multiplex multiple targets on a single listener.
The authorization example shows how to use agentgateway to apply authorization policies to incoming requests. It uses JWT Authentication and authorizaton policies to authenticate and authorize incoming requests.
The tls example shows how to use agentgateway to terminate TLS connections.
The openapi example shows how to use agentgateway to serve an OpenAPI specification for a given target.
The a2a example shows how to use agentgateway to serve an A2A agent.
The http example shows how to use agentgateway to serve generic HTTP traffic.