Learn
Why x402 Matters: The Payment Layer AI Agents Were Missing
By Cleared · Updated August 2026 · 10 min read
For 30 years, HTTP 402 sat unused in the spec. Tim Berners-Lee reserved it in the 1990s for a future where servers could request payment for resources. That future is now. AI agents are calling APIs at machine speed, discovering services they've never been configured to use, and need to pay — instantly, without accounts, without credit cards, without humans.
x402 makes that work. And the institutions backing it make it inevitable.
Who's Behind x402
Coinbase
Built the protocol. Operates the primary facilitator via CDP.
x402 Foundation
Maintains the V2 specification. Governs protocol evolution.
AWS
Shipped x402 in Bedrock AgentCore Payments (May 2026).
Cloudflare
Native x402 support in Agents SDK and Workers.
Stripe
x402 support in private preview for machine-to-machine payments.
Eco
Consumer-facing x402 payment infrastructure and documentation.
The Problem x402 Solves
Before x402, an AI agent that wanted to call a paid API needed:
- A human to sign up for an account
- An API key provisioned manually
- A credit card on file
- Rate limits and billing configured per-service
- A pre-existing relationship with every provider
With x402, the agent needs: a wallet. That's it. It discovers the endpoint, reads the price from the 402 response, pays in USDC, and gets the resource. No account. No key. No human.
x402 in 5 Years: What the Agent Economy Looks Like
McKinsey projects agent-mediated commerce at $3-5 trillion by 2030. If even 10% of that flows through x402 rails, you're looking at $300-500B in machine-to-machine payments settled via HTTP. Here's what that world requires:
Early adoption. Developers building x402 endpoints. Agent frameworks adding support. Discovery is manual.
Agent marketplaces emerge. Directories and indexes become the way agents find services. Trust becomes the bottleneck.
Trust infrastructure becomes mandatory. Agents refuse to pay unverified endpoints. Cleared-style attestation is the norm.
x402 is the default payment layer for AI. Every API has a price. Every agent has a wallet. Every transaction checks trust first.
Agent-to-agent economies. Agents selling services to other agents. Autonomous businesses. Trust scoring is infrastructure like DNS.
Where Cleared Index Fits
Cleared is the trust layer for this ecosystem. We don't build endpoints. We don't process payments. We don't run facilitators. We answer one question:
"Should this agent pay that endpoint?"
We crawl, index, and verify every x402 manifest we can find. We score them deterministically. We make the result available via a free API that any agent can call in under 200ms. The methodology is public. The score is transparent. You cannot buy a PASS — you earn it.
Build on Cleared
Whether you're building an x402 endpoint or an agent that pays them — start here.