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.
Agent guardrails Token lifetimes and owner approval, per risk class.
Have an agent ask its owner What the agent and its owner see when approval is needed.
Capabilities
Section titled “Capabilities”Limit agents by risk
Section titled “Limit agents by risk”| Capability | What it gives you |
|---|---|
| Token lifetime by risk | The longest an agent’s access token may live, per risk class |
| Owner approval by risk | Scopes an agent gets only once its business owner approves |
| Wait for the owner | The token request is held until the owner answers, in place of a refusal |
Coming next
Section titled “Coming next”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.