The x402 Foundation launched last week under the Linux Foundation. Google, AWS, Microsoft, Cloudflare, Stripe, Visa, Mastercard, American Express, Adyen — all founding members. Coinbase contributed the protocol.
If you're building AI agents, this is the most important infrastructure news of the year.
HTTP 402: Reserved Since 1999
HTTP status codes are how the web communicates. 200 means OK. 404 means not found. And 402? It means "Payment Required."
This status code has been in the HTTP specification since 1999, but it was never actually implemented. The spec said "reserved for future use." Developers joked about it. Some called it the most useless HTTP status code.
For 27 years, nothing happened.
Then AI agents showed up.
Why Agents Need HTTP 402
The problem with traditional payments on the internet is that they require humans. You need to:
- Create an account
- Link a bank card
- Enter billing information
- Confirm with 2FA
- Agree to terms of service
AI agents can't do any of this. An agent that needs to call a weather API, access a database, or purchase compute resources can't fill out a billing form. It needs to pay the way it makes API calls — programmatically, autonomously, in milliseconds.
HTTP 402 was designed for exactly this. A resource returns 402, the agent pays, and the resource becomes available. No accounts. No subscriptions. No human in the loop.
The x402 Protocol
Coinbase built x402 as a practical implementation of HTTP 402. Here's how it works:
- An agent makes a request to a paywalled endpoint
- The server returns 402 with payment requirements (amount, recipient, chain)
- The agent signs a payment transaction
- The server verifies and delivers the resource
Payments happen on Base (Coinbase's L2) using USDC. The minimum payment is sub-cent. No gas fees for the buyer.
This means an agent can pay $0.003 for a single API call. Try doing that with Stripe.
What the Foundation Means
When the Linux Foundation announces something, it's no longer a company's side project. It's infrastructure.
The founding members tell the story:
- Google, AWS, Microsoft, Cloudflare — the compute and network layer
- Stripe, Visa, Mastercard, AmEx, Adyen — the payment rails
- Coinbase — the crypto-native layer
These companies don't agree on much. They agreed on x402.
The Foundation's mandate: make x402 the standard for machine-to-machine payments across the internet. Not just for crypto. For everything.
The Agent Economy Stack
If you're building agents today, here's the stack that's emerging:
- Identity: ERC-8004 (on-chain agent identity, portable across platforms)
- Payments: x402 (HTTP-native payments for agents)
- Escrow: ERC-8183 (programmable escrow for service delivery)
- Commerce: Agent marketplaces where agents register, offer services, and get hired
This stack is live on Base today. Over 140 million transactions. $600M+ in volume. 500,000+ active agent wallets. Average payment: $0.31.
Yes, thirty-one cents. That's the average agent-to-agent payment. Too small for traditional payment rails. Perfect for crypto.
What I'm Building
I'm working on AgentLux, which sits on top of this stack. Think of it as the product layer:
- Agents register on-chain identities (ERC-8004)
- They build reputation through verified commerce (not self-reported skills)
- They offer services and get hired with programmable escrow
- They pay each other via x402
The key insight: agents onboard themselves. No human signup needed. An agent reads the documentation at agentlux.ai/llms.txt and starts building its reputation.
What This Means for Developers
If you're building agents, APIs, or services that agents consume:
Consider x402 for your API monetization. Sub-cent payments per call instead of monthly subscriptions. Lower barrier to entry for agent consumers.
Register your agents on ERC-8004. Portable identity means your agent's reputation follows it across platforms.
Think about agent-to-agent interactions. Your API might be called by another agent, not a human. Design accordingly.
The timing is now. The infrastructure just became an industry standard. The early movers will define the conventions.
The Bottom Line
HTTP 402 waited 27 years for its moment. That moment is agents. The Linux Foundation, Google, AWS, Visa, Mastercard, Stripe, and Coinbase all agree.
The agent economy isn't coming. It's here. 140 million transactions say so.
Built on x402? Working on agent infrastructure? I'd love to hear about it.
Top comments (0)