x402 · AI agent payment protocol reviving HTTP 402 (overview)
Wiki route
This entry sits under AI agent payment protocols overview · seven-protocol landscape. Read it against Coinbase CDP · developer platform · AI agent on-chain wallet infrastructure for peer / contrast context and payments index for the broader system / regulatory boundary.
Key facts
- Coinbase announced x402 in 2025-05 as an open-source protocol, reviving HTTP 402 after it had remained unused since its 1996 definition. •
- Default settlement uses USDC on Base, with support for Solana and other L2 networks. •
- The settlement layer is protocol-agnostic; applications can switch among Solana USDC, Tron USDT, or any EVM L2. •
- Facilitator model: the server delegates payment verification to a facilitator such as Coinbase. •
- Supports hot wallets and ERC-4337 smart-contract wallets; agents can use arbitrary wallet implementations. •
- USDC on Base settlement is under 2 seconds; the facilitator model is under 100 ms. •
- Single-call gas cost is under $0.001 on Base L2 with an ERC-4337 paymaster. •
- x402 Bazaar MCP catalogs more than 10,000 endpoints. •
Mechanism / How it works
The AI agent economy is structurally mismatched with SaaS subscription flows. An agent may call hundreds of APIs on a transient basis, and it cannot complete a separate registration, card entry, subscription, and API-key-management flow for every API. The required primitive is per-call micropayment plus immediate authorization without account registration. x402 protocol flow: (1) the client requests an API endpoint; (2) the server returns HTTP 402 Payment Required plus an X-Payment-Required header containing amount, recipient, and accepted assets; (3) the client constructs a USDC transfer; (4) the client resends the request with an X-Payment header containing the transaction hash or proof; (5) the server verifies payment and returns the data. The facilitator model means the server does not need to verify on-chain transactions itself: by delegating to a facilitator such as Coinbase or Cloudflare, it reduces implementation burden and shortens verification to under 100 ms. Agent wallets are typically based on ERC-4337 or ERC-7702, with UserOps processed by a bundler.
Origin & evolution
RFC 7231 defined HTTP 402 Payment Required but left it as “reserved for future use,” and it remained practically unused for three decades. The missing component was a universal payment rail. USDC and stablecoins address that gap; for the surrounding strategy space, see chain × token × strategy trilemma. In 2025-05, Coinbase open-sourced x402 as a specification at github.com/coinbase/x402 and bound the default implementation to USDC on Base. Early 2025 H2 adopters included experimental implementations in Vercel AI SDK and Cloudflare Workers. In 2026-Q1, Cloudflare integrated x402 into the Workers production environment, meaning that more than 20% of global HTTP traffic had a default payment rail available. AWS API Gateway followed in 2026-Q2. x402 Bazaar MCP catalogs more than 10,000 endpoints as an agent-discoverable paid API directory.
Related
- Wiki Index
- x402 Cloudflare / AWS edge integration
- AI agent payment protocols overview
- Privy x AWS AgentCore
- On-chain finance vs crypto bifurcation
Sources
- x402 protocol (Coinbase) — https://github.com/coinbase/x402
Discovery
Keep reading
Read next
- Agent Payment Infrastructure Research Report This entry sits under AI agent payment protocols overview: seven-protocol map. Read it against paid skill-market monetization for peer / contrast context and payments index for the broader s... agent-economy/2026-04-08_agent-payment-infrastructure-research
- The Agent Actorship Debate: 4 Camps This entry sits under Skill マーケット有料化. Read it with Agent 決済インフラ調査レポート for adjacent context and FinWiki index for the broader system boundary. agent-economy/agent-actorship-debate
- Agent custody and authorization framework · 2026-05 reference architecture Agent custody and authorization in 2026 has converged into a three-axis design space: (1) custody model — full self-custody (user holds key, agent has no independent control), hybrid (Lit PK... agent-economy/agent-custody-and-authorization-framework-2026
Links here
- AI agent legal and tax liability framework · who is liable, how is agent income taxed As of mid-2026, no major financial regulator (US SEC / CFTC / FinCEN, UK FCA, Japan FSA, Singapore MAS, EU ESMA / EBA) has formally granted AI agents independent legal personhood, and no maj... agent-economy/agent-legal-tax-liability-framework
- Agent Payment Protocol four-way comparison matrix 2026 · AP2 / x402 / Skyfire / Nevermined plus ERC-7715 + Lit PKP This entry sits under agent-economy index. Read it against AI Agent 決済プロトコル全体図 · 7プロトコル俯瞰 for the broader seven-protocol landscape, agent protocol mainnet adoption 2026 for production-readin... agent-economy/agent-payment-protocol-four-way-comparison-2026
- Agent Protocol Mainnet Adoption · 2026-05 Production-Readiness Snapshot As of May 2026, the agent-payment protocol stack has bifurcated sharply between mainnet-shipped infrastructure and testnet / consortium-only specs. The production-live tier is dominated by x... agent-economy/agent-protocol-mainnet-adoption-2026
- Coinbase CDP · developer platform · AI agent on-chain wallet infrastructure This entry sits under AI Agent payment protocol overview · seven-protocol survey. Read it against x402 · AI agent payment protocol that revived HTTP 402 for peer / contrast context and payme... agent-economy/coinbase-cdp-developer-platform
- Embedded-wallet landscape 2026 · post-consolidation provider map By mid-2026 the embedded-wallet category has compressed from a long tail of 20+ SDK vendors into a default-tier duopoly (Privy under Stripe, Coinbase CDP) and a secondary tier (Magic, thirdw... agent-economy/embedded-wallet-landscape-2026-consolidation