Claude Code
Use Dial x402 telephony primitives directly from Claude Code.
Claude Code Integration
One-click setup — review the prompt in your editor, then confirm. Manual config snippets are on each page.
The Dial skill (/dial) lets Claude Code send SMS, look up phone numbers, and search breach data — all paid via x402. Pair it with MCP for tool calls in any Claude Code session.
One-click install: Connect skill · Connect MCP
Setup
1. Set environment variables
export DIAL_API_URL=https://x402.dial.wtf
export DIAL_PRIVATE_KEY=0xYOUR_EVM_PRIVATE_KEY # For x402 payments
export DIAL_EVM_NETWORK=eip155:8453 # Base mainnet2. Install the skill (plugin)
From a clone of Dial-WTF/x402-dial:
claude /plugin install ./packages/skillOr use the Claude Code deep link from /connect/skill — opens Claude Code with install steps prefilled (claude-cli://open?...).
Once installed, use the /dial slash command.
3. MCP (optional)
Add remote MCP at https://x402.dial.wtf/mcp — see MCP integration.
Usage examples
Send SMS
/dial send SMS to +1234567890 saying "Server is back online"Look up a phone number
/dial look up +1234567890 — get carrier, line type, and caller nameSearch breach data
/dial search breaches for email:admin@example.comHow payment works
- Claude Code uses your
DIAL_PRIVATE_KEYto create an x402-wrapped fetch - When calling a Dial endpoint, the 402 response is handled automatically
- Your wallet signs a USDC authorization (EIP-3009)
- Payment settles on Base mainnet (~1 second)
- The resource is returned to Claude Code
Environment variables
| Variable | Required | Description |
|---|---|---|
DIAL_API_URL | Yes | Dial API base URL |
DIAL_PRIVATE_KEY | For x402 | EVM private key for signing payments |
DIAL_PRIVY_ACCESS_TOKEN | For credits | Privy Bearer token for credit-based calls |
DIAL_EVM_NETWORK | No | Default: eip155:84532 (Base Sepolia) |
Security notes
- Never expose your private key in logs or commit it to git
- Breach search results with passwords are redacted by default
- x402 payments are on-chain and irreversible