Agent Gateway

Secure access

Control which callers can reach a surface and on what terms. Caller authentication and identity derivation determine who gets in. Field-level reference for Secrets and API Keys is in the Reference section.

GuideWhat you will achieve
Restrict surface access with API key authenticationAdd a Caller Context element and Rate Limit to a surface so only callers with a valid API key can reach your managed agent.
Limit surface access by agent identityDerive a stable DID for each agent on a surface and gate requests using an OPA policy that checks agent identity.
Validate bearer tokens on a surfaceCreate a JWT verification strategy and attach it to a surface so the gateway validates bearer tokens from callers.
Accept JWTs and API keys on one surfaceAdd an API key method beside JWT Bearer so internal callers with a token from your identity provider and partner agents with an API key both reach the same surface.
Enable authorization server discovery for MCP clientsTurn on authorization server discovery for an MCP surface so MCP clients sign users in at your identity provider and call the surface with a token issued for it.
Authenticate callers on a Transit PointLet an agent that can’t carry the transit token, such as a cloud-hosted agent, call a Transit Point with an API key or a JWT of its own.
Exchange an agent’s token for scoped downstream accessRegister an STS client and exchange a token your agent already holds for a short-lived token scoped to one downstream surface.