Skip to content
Claude Code

x402 Wallet for Claude Code

io.github.nirholas/x402-mcp

Self-custodial x402 wallet for AI agents: pay any service in USDC or $THREE from your own key.

client:Claude Code transport:stdio runtime:npm

Install x402 Wallet 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 x402-mcp -e SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> -e SOLANA_RPC_URL=<SOLANA_RPC_URL> -e MAX_PAY_USD=<MAX_PAY_USD> -e REQUIRE_CONFIRM=<REQUIRE_CONFIRM> -e THREE_WS_BASE=<THREE_WS_BASE> -- npx -y @three-ws/x402-mcp

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

x402 Wallet in other clients