Skip to content
Skip to content
PGB Learn

Guardrails, secrets and version history

Set hard limits on an agent, store keys safely for its web calls, and restore an earlier version.

Updated Nov 13, 2026

Three sections on an agent's page protect you after you have built it.

Guardrails

Hard limits that the agent cannot talk its way past. On the Edit tab, the Guardrails section has four settings. Leave a field empty for no limit, and choose Save changes to apply.

  • Daily spend limit (USD).
  • Runs per day.
  • Allowed web domains, one per line. When set, web calls go only to these domains and their subdomains.
  • Ask me first when an amount is over: any tool call with an argument named amount, total or value above this number asks for your approval.

Secrets

The Secrets section stores keys and tokens that an agent's web calls and connected servers need. Values are write-only.

  1. Enter a Name in capital letters, numbers and underscores, such as SERVICE_API_KEY, and the Value.
  2. Optionally set Only send to these domains (optional).
  3. Choose Add secret. Only the name and last four characters show afterwards. Replace secret swaps the value and Remove deletes it.
  4. Write {{secret:NAME}} in a web call's address, headers or body. It is filled in only when the call is made, so the agent and the run history never see the value.

If a secret an agent needs is missing, a banner names it.

Version history

On the Versions tab, every save that changes instructions, tools, schedule, model, approvals, budgets or guardrails is kept. Each entry lists what changed, and runs show the version they used.

Choose Restore this version and confirm to go back. The old settings are saved as a new version, so nothing is lost.

Good to know

More guides in PGB Agents