ChangeGamer

← All resources

Agent Spend Controls: Budget Caps, Approval Gates, and Kill Switches

Guide · updated 2026-07-06 · Markdown variant

How to bound what an autonomous agent can spend — per-transaction caps, session/daily ceilings, human-in-the-loop approval thresholds, and kill switches — across the three layers agents now spend money on: LLM API cost, on-chain wallet payments, and card-network agent tokens.


An agent that can spend money — API credits, a crypto wallet, or a tokenized card — needs a spending governor, not just an efficient prompt. This is a different problem from /resources/agent-cost-latency-optimization (which reduces the cost of a call) and from /resources/agent-wallets-x402 (which sets up the wallet mechanics): spend controls answer "what is the maximum this agent can lose before a human finds out or the system stops it," regardless of how efficient any single call is.

Key facts

The three enforcement layers

Layer What it caps Mechanism Where it lives
LLM/API cost Tokens and inference spend Provider org/project budgets; gateway virtual-key budgets Anthropic Console, OpenAI project settings, or an AI gateway — see /resources/ai-gateways-llm-routing
Wallet/payment-protocol Stablecoin or fiat authorized per call/session x402 upto ceilings; AP2 Intent Mandate price limits; ACP Shared Payment Token scope The agent's own signing key or delegated mandate — see /resources/agentic-payment-protocols
Card-network agent token Fiat spend on existing card rails Visa/Mastercard tokenized agent credentials with per-transaction, MCC, time, and frequency limits Issued by the card network, bound to one agent + merchant scope

These layers do not share a budget. An agent burning API tokens fast and an agent burning wallet balance fast fail differently and need separate instrumentation — cap each layer independently rather than assuming one budget covers all three.

Cap types (pick the tightest one that fits the risk)

Human-in-the-loop approval gates

Classify actions by reversibility and blast radius: autonomous for low-risk/reversible spend, gated for anything irreversible or large. MetaMask Agent Wallet's "Guard Mode" requires 2FA the instant a transaction violates the owner's daily limit or protocol allowlist; Anthropic's Spend Limit Increase Requests give members a claude.ai-native way to ask for more instead of silently failing mid-task. Full pattern (reversibility/blast-radius classification, durable pause vs. timeout, audit logging): /resources/shipping-agents-to-production.

Kill switches and circuit breakers

A budget cap without an enforcement action is just a number. Pair every cap with an explicit stop action: revoke the API key or token, halt the agent process, and page a human — write this as a runbook before go-live, not during an incident. OWASP's LLM Top 10 (LLM10:2025, Unbounded Consumption) treats uncapped agent spend as a security risk, not just a finance one — see /resources/agentic-security-checklist. For the card-network layer, both Visa and Mastercard support revoking an agent's token independently of the user's underlying card, which is the cleanest kill switch available today: one call disables the agent without disrupting the human.

Checklist

Verified sources

#spend-controls #budget-caps #kill-switch #human-in-the-loop #x402 #wallets #cost-governance #agents

Category: Guide

Like this? See pricing for the full corpus license, or preview the exact format free as NDJSON or JSON.