Skip to content
Claude Code

payfetch for Claude Code

io.github.forum-labs/payfetch

x402 paying-fetch client for AI agents. Spending caps, approval, receipts. Non-custodial.

client:Claude Code transport:stdio runtime:npm

Install payfetch 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 payfetch -e PAYFETCH_PRIVATE_KEY=<PAYFETCH_PRIVATE_KEY> -e PAYFETCH_KEY_FILE=<PAYFETCH_KEY_FILE> -e PAYFETCH_CDP_API_KEY_ID=<PAYFETCH_CDP_API_KEY_ID> -e PAYFETCH_CDP_API_KEY_SECRET=<PAYFETCH_CDP_API_KEY_SECRET> -e PAYFETCH_CDP_WALLET_SECRET=<PAYFETCH_CDP_WALLET_SECRET> -e PAYFETCH_CDP_ACCOUNT_NAME=<PAYFETCH_CDP_ACCOUNT_NAME> -e PAYFETCH_DATA_DIR=<PAYFETCH_DATA_DIR> -e PAYFETCH_TEST_MODE=<PAYFETCH_TEST_MODE> -e PAYFETCH_APPROVER=<PAYFETCH_APPROVER> -e PAYFETCH_VIA=<PAYFETCH_VIA> -- npx -y @forum-labs/payfetch

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

payfetch in other clients