Stop AI agents from overspending
Stop AI agents from overspending
SpendVeto is an open source, developer-first policy engine designed to govern and control payments made by AI agents. It functions as a buyer-side governance layer that sits above payment rails such as x402 and MCP, enforcing spending rules before any transaction settles. The tool addresses the problem of autonomous agents overspending by providing a set of programmable controls that intercept payment requests and apply policy checks, human approvals, and budget constraints in real time. The platform includes eight core controls: a policy engine for per-call caps, hourly budgets, and rate limits; human approval workflows that pause spending above thresholds and fail closed if no response is received within 30 seconds; nested budget hierarchies where parent wallets grant capped budgets to child wallets; tool and chain scoping to restrict which tools and blockchains an agent can use; a kill switch to freeze any wallet instantly; and MCP middleware that silently enforces governance underneath standard agent tool calls. Every settlement is ECDSA signed and independently verifiable, and the full ledger exports to CSV for accounting. Real time webhooks notify on freezes, blocks, and approvals, with spend data rolled up per tool and per wallet. Typical use cases include preventing runaway spending loops in autonomous agent workflows, enforcing team or organizational budget caps across multiple agents, and ensuring that agents only use approved tools and settlement chains. The workflow involves an agent initiating a payment, which is intercepted by SpendVeto’s enforcement proxy. The proxy checks the request against live spend history and policy rules, optionally routes it for human approval, and only signs the transaction if all conditions are met. Agents can operate keyless, with the proxy holding custody and signing only after the policy pipeline passes. Technically, SpendVeto is built with a 280 assertion end to end verification suite that exercises every control with real payments, signatures, and JSON RPC calls. It is licensed under Apache 2.0 and is designed to integrate into existing agent stacks without requiring changes to the agent’s code. The project is available at spendveto.com and runs headlessly via npm run verify.