Home / Home / Tutorials / Set Up Category Rules

Set Up Category Rules

Category rules give each spend type its own budget. Here's the setup in three steps.

Step 1 — Define your categories

Map your ledger to categories: compute, data, SaaS, ads, payments, inference.

Step 2 — Set per-category limits

For each category: allow, cap, or block. E.g. data allowed up to $200/day, compute blocked.

Step 3 — Test with a flagged run

Send a few test transactions through the playground and confirm the decisions.

Example

{
  "category_rule": {
    "data": {"action": "allow", "daily_max": 200},
    "compute": {"action": "block"},
    "ads": {"action": "flag", "over": 100}
  }
}

Categories become decisions.

FAQ

What if a category isn't in the rule?

Set a default: unspecified categories can default to allow, block, or flag.

Do categories affect the audit log?

Yes — every decision records the category.

Related

Stop the next $12,400 night.

One API call (or MCP tool) in front of every agent transaction — APPROVED, BLOCKED, or FLAGGED, deterministic, ~5 ms, fully logged.

See plans — from $99/mo Try a live check