Agents SDK · x402
Pay for a tool call after you confirm the exact charge
- Proves An agent can take an HTTP 402 challenge, wait for a confirm bound to the amount, network, token, payee, tool, and arguments, then sign.
- Try Echo is free. Square is $0.01 and summarize is $0.02 in test USDC. Deny one, then confirm one and read the timeline.
- Build A metered MCP tool, a confirm step before an agent spends, or a ledger that keeps a failed call distinct from a settled one.
No mainnet payment is accepted. A missing testnet key stays on setup pending.
Tools
Confirm before sign
Payment required
The agent will not sign until you accept this exact charge.
Timeline
402, approval, payment, verification, settlement, result. A failure is not marked paid. An unknown outcome is not marked paid and is not retried.