Skip to content

Policy builder ​

Build a policy without writing YAML by hand. Start from a preset, edit the rules, and paste the result into the dashboard (Policy). The YAML is checked by the same loader the server and the SDK use, and Try a call runs the real evaluator from @aithorized/core on a sample tool call. Nothing leaves your browser.

Defaults

matched

aithorized.policy.yaml

Valid
defaults:
  unmatched: OBSERVE
  ttlSeconds: 300
rules:
  - id: small-refunds
    match:
      tool: stripe.refund
      args:
        amount:
          lte: 10000
    effect: ALLOW
  - id: big-refunds
    match:
      tool: stripe.refund
      args:
        amount:
          gt: 10000
    effect: REQUIRE_APPROVAL
    riskLevel: HIGH
  - id: payouts
    match:
      tool: stripe.payouts.*
    effect: REQUIRE_APPROVAL
    riskLevel: CRITICAL
    approversRequired: 2
    ttlSeconds: 900

Ask AI

Describe what you want; get a prompt for your own AI assistant, paste its answer back.

Try a call

REQUIRE APPROVAL
Rule
big-refunds
Risk
HIGH
Approvers
1
Waits
300 s

A REQUIRE_APPROVAL rule matched: the call waits for a signed approval.

Ask AI ​

Not sure how to say it in YAML? Open Ask AI, describe what the agent should and shouldn't do, and pick your integration (tool names differ between them). Copy prompt gives you a prompt with the policy format, your current policy and your request; paste it into your own AI assistant. Then paste its whole reply back: the builder picks out the YAML, checks it with the real loader and loads it.

After loading, the builder lists every change against the policy you had and marks the ones that loosen it, such as a rule removed, a DENY turned into REQUIRE_APPROVAL, a lower risk level or fewer approvers. Check those, try a few calls, and Undo if it isn't what you meant. This page never calls a model: nothing leaves your browser unless you paste it somewhere yourself.

Reading the result ​

  • Rules are not first-match: a matching DENY always wins, then REQUIRE_APPROVAL, then OBSERVE. Order only decides between two rules with the same effect.
  • A call no rule matches follows defaults.unmatched. If that is REQUIRE_APPROVAL, the call is treated as HIGH risk.
  • Temporary auto-approvals, the kill switch and the circuit breaker are not simulated here; they apply on top of the policy. See Policies for every field.

The policy engine, MCP proxy, SDK and hook are MIT-licensed.