Integrations

Claude Code

Point Claude Code at Spoof with two environment variables.

Claude Code talks to the Messages API, so you can route it through Spoof by setting the base URL and your key as environment variables.

export ANTHROPIC_BASE_URL="https://api.spoofzone.com"
export ANTHROPIC_AUTH_TOKEN="spf_your_key"
bash · 2 lines

Then run claude as usual. Requests are billed per call from your wallet.

Bill a specific chain

To settle a session on a particular chain, set a custom header:

export ANTHROPIC_CUSTOM_HEADERS="x-spoof-billing-chain: solana"
bash · 1 lines

Valid values are base, arbitrum, solana, and robinhood. See Billing chains.

Verify it works

Start Claude Code and ask it a simple question. If you get a reply, you are connected. Check your usage in the dashboard.

Claude Code | Spoof