Documentation

QuetraAI is a governance middleware for AI agent spending. It defines what agents can spend, on what, and when — enforced via cryptographically signed mandates with real-time policy evaluation.

Core Concepts

Understanding these concepts will help you get the most out of QuetraAI:

  • Mandates — Cryptographically signed spending policies attached to a single agent. Defines budget, rules, and expiration.
  • Rules — 7 rule types (category, vendor, max amount, rate limit, time window, geo, custom). All rules use AND logic — every rule must pass.
  • Budget periods — Daily, weekly, or monthly budgets with automatic inline reset. Atomic decrement prevents race conditions.
  • 1:1 model — Each agent has at most one active mandate. One agent per task, one mandate per agent.
  • Protocols — x402 (HTTP payment), Stripe ACP (Agent Commerce Protocol), Stripe CC (credit card governance).