Skip to content
Claude Code

Spend Guard for Claude Code

io.github.vulinh1704/spend-guard

Budgets, payee allowlists, price-spike checks and human approval for agents paying x402 paywalls

client:Claude Code transport:stdio runtime:npm

Install Spend Guard in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add spend-guard -e SPEND_GUARD_POLICY=<SPEND_GUARD_POLICY> -e SPEND_GUARD_RAILS=<SPEND_GUARD_RAILS> -e SPEND_GUARD_LEDGER=<SPEND_GUARD_LEDGER> -e SPEND_GUARD_DASHBOARD_PORT=<SPEND_GUARD_DASHBOARD_PORT> -e SPEND_GUARD_APPROVAL_TIMEOUT=<SPEND_GUARD_APPROVAL_TIMEOUT> -e SPEND_GUARD_MOCK_NETWORK=<SPEND_GUARD_MOCK_NETWORK> -e ARC_PRIVATE_KEY=<ARC_PRIVATE_KEY> -e NEAR_ACCOUNT_ID=<NEAR_ACCOUNT_ID> -e NEAR_PRIVATE_KEY=<NEAR_PRIVATE_KEY> -- npx -y @vulinh1704/spend-guard

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

Spend Guard in other clients