x402 · AI agent payment protocol reviving HTTP 402 (overview)
ConfidenceLikelyUpdated2026-05-26Review by2026-09-22Sources1Machine-translatedOriginal (JA)
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 ReportThe current Agent payments space has already formed a 4 -protocol coexistence landscape:
- Agent custody and authorization framework · 2026-05 reference architectureAgent 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...
Links here
- AI agent legal and tax liability framework · who is liable, how is agent income taxedAs 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 Payment Protocol four-way comparison matrix 2026 · AP2 / x402 / Skyfire / Nevermined plus ERC-7715 + Lit PKPSelecting an agent payment rail in 2026 is not "pick the best protocol" — it is "compose the layer cake correctly so the merchant accepts, the wallet authorizes, and the regulator does not b...
- Agent Protocol Mainnet Adoption · 2026-05 Production-Readiness SnapshotAs 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...
- Circle Agent Stack · USDC agent wallets, nanopayments & marketplaceCircle Agent Stack turns USDC into an agent-facing operating loop rather than only a token balance. A user or developer first funds an Agent Wallet, then defines policy boundaries. The agent...
- Coinbase AgentKit & Agentic Wallets · TEE agent wallets on BaseAgentKit and Agentic Wallets are adjacent but not interchangeable. AgentKit is the open-source agent framework layer: it exposes wallet providers, action providers, and framework adapters so...