> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/deploy/guardrails.md).

# 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*.

{% hint style="info" %}
**Beta.** Guardrails is a Beta feature — controls and labels may change.
{% endhint %}

### Configure guardrails

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

* [PII masking](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/deploy/guardrails/pii-masking.md) — choose a detection provider, entity rules, and tokenization coverage.
* [Tool execution approval](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/deploy/guardrails/tool-execution.md) — require a user’s approval before selected skills run.
* [Credit usage](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/deploy/guardrails/credit-usage.md) — 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](https://docs.uptiq.ai/ai-workbench-qore/control-center/ai-gateway.md) — 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](https://docs.uptiq.ai/ai-workbench-qore/control-center/ai-gateway.md) 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

<details>

<summary>UI inventory — the Guardrails page</summary>

| 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          |

</details>

## 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.

## Related

{% content-ref url="/pages/zH9Bsg8FxRdLqitlHI8J" %}
[Runtime & Versioning](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/build/runtime-and-versioning.md)
{% endcontent-ref %}

{% content-ref url="/pages/rGXmqmGrFNaJnqEn7wCA" %}
[Monitor](https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/monitor.md)
{% endcontent-ref %}

{% content-ref url="/pages/I59HzEvpXa0tjAaqrtTo" %}
[Glossary](https://docs.uptiq.ai/ai-workbench-qore/start-here/glossary.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/ai-workbench-qore/console/agent-builder/deploy/guardrails.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
