Coinbase and Cloudflare have formed the x402 Foundation to make the long-ignored HTTP 402 “Payment Required” code work as a real standard for online transactions.
The announcement came on Tuesday, September 23, through a company blog post and a Cloudflare release.
The foundation’s aim is simple: give bots, APIs, and AI agents a way to pay for data, content, or tools on demand. Cloudflare says its servers already send more than a billion “402” responses daily, but without a shared way to settle payments.
The new protocol fixes this with three steps: a server sends a payment offer, the client signs and returns it, and a facilitator verifies the settlement. That process allows pay-per-use access without subscriptions or manual billing.
Coinbase has published reference code on GitHub, and Cloudflare has integrated the system into its developer tools with a public demo.
Both companies say the foundation will serve as a neutral body to guide adoption. If it works, HTTP 402 could shift from an unused error code to a standard part of how machines pay for services online.
Cloudflare is adding a deferred-settlement option to x402, letting providers batch charges through cards, banks, or stablecoins when instant blockchain settlement isn’t needed.
Coinbase has framed the new foundation as the path to make x402 a universal standard for AI-driven payments, built on open governance, ecosystem grants, and cross-platform interoperability.
Cloudflare’s newsroom statement credits Coinbase with creating the protocol but presents the foundation as neutral, calling on more members to prevent fragmentation.
The process is simple: a server issues an HTTP 402 with payment instructions, the client responds with a signed header, a facilitator verifies and settles, and the server delivers the resource with a payment confirmation.
Cloudflare has already built this into its Agents SDK and MCP servers, and it launched a public playground that funds a test wallet on Base testnet so developers can try it firsthand.
If adoption spreads, x402 could give AI agents and web services a shared way to pay as they go, whether through crypto or traditional rails.
DISCOVER: Best Meme Coin ICOs to Invest in 2025
Coinbase’s GitHub now hosts the x402 spec, sample code, and a one-line middleware example.
The protocol is pitched as near fee-free with instant settlement, aimed at micro-transactions that card networks can’t handle efficiently.

