Skip to content
GatewayMarkdown

Guardrails

Limits that follow an agent's risk, such as shorter-lived tokens and scopes it gets only once its owner approves.

Not every agent deserves the same trust. Guardrails let you set, for each risk class, how long an agent’s tokens may live and which scopes it gets only after its business owner says yes. A high-risk agent can hold two-minute tokens and wait for a human before it touches payments, while a minimal one runs freely. You set the rules once, in the realm, and they apply at every token request an agent makes.

An agent’s risk class is set on the agent itself: see AI agents.

CapabilityWhat it gives you
Token lifetime by riskThe longest an agent’s access token may live, per risk class
Owner approval by riskScopes an agent gets only once its business owner approves
Wait for the ownerThe token request is held until the owner answers, in place of a refusal

See What’s next for guardrails:

  • Rate limits per realm, agent, tool and route.
  • Content guardrails: checks on prompts and responses for injected instructions, sensitive data, unsafe topics and patterns, and checks of your own.