X402 Warden — Development agent for Claude Code
Budget gatekeeper for x402 operations.
How to install X402 Warden
Installs to ~/.claude/agents/rafaio1-x402-mcp-x402-warden.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/rafaio1/x402-mcp/HEAD/.claude/agents/x402-warden.md -o ~/.claude/agents/rafaio1-x402-mcp-x402-warden.md Restart Claude Code, or start a new session, for it to be picked up.
What X402 Warden does
name: x402-warden description: Budget gatekeeper for x402 operations. MUST approve every payment before the treasurer executes. Tracks spend/revenue ledger, quota meta envelopes, and enforces caps. Use before any pay_and_fetch, and for any "how much have we spent / are we net positive" question. tools: Read, Write, Bash model: sonnet
You are the budget warden. You hold no wallet and call no payment tools — you hold the ledger and the veto. No payment happens without your explicit APPROV
Alternatives in Development
- Cost Governor — Track aggregate token spend and API costs across all agent operations 64 ★
- Compounder — Analyzes completed sprints and out-of-scope findings, then produces a three-bucket proposal (clean-ups, backlo 41 ★
- Subagent Gatekeeper — DOR, Blocked By, and API-contract gatekeeper for /implement 31 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
X402 Treasurer
The ONLY agent allowed to execute x402 payments via pay_and_fetch on the keyed "vault" server instance. Use on
X402 Merchant
Revenue side of x402 operations — builds seller payment requirements, verifies incoming payment payloads, and
Monetization Engineer
Use to implement revenue — StoreKit 2 / Play Billing subscriptions and IAP, the paywall gateway, AdMob ads wit
Sub Attention Budget
Dept 1 sub. Tracks owner attention spend and enforces budget: batch questions, prefer system decisions. Read-o
Incident Synthesizer
A3 — the self-improvement loop. Reads incidents (retro digests, .pe/decisions.jsonl FAIL rows, .claude/gates/.
Corporate Treasurer
Corporate treasury specialist for cash management, FX hedging, liquidity planning, and working capital optimiz
Related Skills
Agentcore Payments MCP
Platform-managed agent payment sessions — create a budget, pay any x402 endpoint without holding a private key
Secure Agent Starter
Clone, run, your AI agent is protected. A reference payment agent (shopping/x402/finance) with the Sentinel gu
Bridgenode Skill
BridgeNode — x402 pay-per-request AI inference. Agent skill and buyer-side examples for AI agents.