Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
Beta

Guardrails

Protect agent runs with PII masking, tool approval, and model policies.

Guardrails are the safety controls that protect your agent at every stage of a run — masking sensitive data before it reaches the model, pausing risky tool calls for human approval, holding the agent to an approved set of language models, and capping how much the agent can use. Find them at Agent Config → Guardrails, under Cognition & Control.

Beta. Guardrails is a Beta feature — controls and labels may change.

Configure guardrails

Use these pages to configure the guardrails that you manage per agent:

  • PII masking — choose a detection provider, entity rules, and tokenization coverage.

  • Tool execution approval — require a user’s approval before selected skills run.

  • Credit usage — cap how much the agent can use: credits, tokens, or dollars, per day, week, month, or conversation.

How guardrails work

Open the page from Agent Config → Guardrails. You'll see a single list of guardrails, each with a Name, a Type, and a Status.

A banner reads: "Click a row to configure what a guardrail covers, or use its menu to activate or deactivate it. Model policies are enforced by the AI Gateway." The page subtitle reads "Tool permissions, PII masking and credit limits protect your agent at every stage of execution."

The Status column shows one of:

  • Active — the guardrail is on for this agent.

  • Inactive — the guardrail is off for this agent.

  • Always enforced — the guardrail is locked on and can't be changed here. Allowed LLM Families and Allowed LLM Providers work this way; they're enforced centrally by the AI Gateway — the platform layer every model request passes through — and set by your organization, not per agent. These rows have no menu.

Select a row to configure the guardrail. It opens in a modal: Credit Usage, Edit Tool Permission or PII Masking & Tokenization. Nothing is saved until you save in the modal.

Use a row's ⋯ menu to turn a guardrail on or off. It offers Configure, and Activate for an inactive guardrail or Deactivate for an active one.

On an agent with no guardrails, the tab reads No guardrails found with an Import default guardrails button.

Guardrail
Type
Configurable here?

Sensitive Data Masking

Pii Masking

Yes — select the row; activate or deactivate in its menu

Tool Execution Approval

Tool Permission

Yes — select the row; activate or deactivate in its menu

Allowed LLM Families

Model Policy

No — always enforced by the AI Gateway

Allowed LLM Providers

Model Policy

No — always enforced by the AI Gateway

Credit Usage Limit

Credit Usage

Yes — select the row; activate or deactivate in its menu

Model policy guardrails

Allowed LLM Families and Allowed LLM Providers are both Model Policy guardrails. They show as Always enforced — locked on and applied by the AI Gateway to every model request, so they can't be toggled off per agent. The approved sets are configured by your organization in the AI Gateway, not on this page.

Allowed LLM Families

Restricts the agent to an approved set of model families — a family is a group of related models (for example, GPT or Claude). The agent can only use models from families your organization has approved.

Allowed LLM Providers

Restricts the agent to an approved set of providers — the vendors that host the models (for example, OpenAI, Anthropic, AWS Bedrock, or Azure OpenAI). The agent can only route requests to providers your organization has approved.

Guardrails page controls

UI inventory — the Guardrails page
Element
Description
When to use it

Name column

The guardrail's name

Identify the guardrail

Type column

The guardrail's category — Pii Masking, Tool Permission, or Model Policy

Tells you what the guardrail acts on

Status column

Active, Inactive or Always enforced

Check whether a guardrail is on

Always enforced badge

Marks a guardrail that is locked on by the AI Gateway

Signals a Model Policy guardrail you can't change here

Row menu (⋯)

Configure, Activate or Deactivate

Turn a guardrail on or off, or open its modal

Why this matters

  • Guardrails catch problems at the earliest point they're detectable — before the model sees data, before a tool runs, before a disallowed model is used.

  • Masking, tool approval, model policy, and credit limits each protect a different stage of a run. Credit limits protect the budget: they stop one agent from using more than you intended.

  • The safe defaults (mask common PII, no forced approval, org-approved models) fit almost every agent.

Runtime & VersioningMonitorGlossary

Last updated

Was this helpful?