MachineEconomy.ai

x402 Protocol

An open standard that lets AI agents and software systems pay for digital services directly over HTTP, using stablecoins, without human approval.

Rail: Payment · Updated: 2026-06-05

What It Is

The x402 protocol is an HTTP-native payment standard that allows any software agent, application, or automated system to pay for a digital resource in the same request it uses to access it. The name refers to HTTP status code 402 — "Payment Required" — which was reserved in the original HTTP specification in 1991 but never formally implemented. x402 finally gives that status code a real use.

The mechanics are straightforward. A client sends a request to a server. If the resource costs money, the server returns a 402 response with a payment specification — what currency, what amount, which network. The client pays automatically using a digital wallet, resubmits the request with a cryptographic proof of payment attached in the header, and receives the resource. The entire exchange happens in two HTTP round trips, settling in approximately 200 milliseconds with no human in the loop and no chargeback risk.

x402 was developed by Coinbase and donated to the Linux Foundation in 2025, making it an open, vendor-neutral standard governed by the x402 Foundation at x402.org. A broad coalition of industry participants — including Google, Visa, AWS, Circle, Anthropic, Vercel, and Solana — supports the protocol, ensuring interoperability across cloud providers and blockchain networks. Version 2, launched in late 2025, expanded the protocol beyond crypto-native networks to support Base, Solana, ACH bank transfers, and traditional card networks — making x402 a genuine bridge between crypto and conventional finance rather than a blockchain-only tool. V2 also introduced reusable session tokens, allowing AI agents to prove prior payments and skip repeated on-chain settlements during high-frequency inference workloads.

By February 2026, KPMG's independent analysis recorded 161 million cumulative transactions and $43.57 million in settled volume across the network. Those figures require context: a significant portion of early volume reflected wash trading and infrastructure testing rather than organic machine-to-machine commerce. x402scan's rolling 30-day gross on-chain USDC figures as of June 2026 report approximately 3.67 million transactions and ~$1.10 million in settled volume across 169,570 active buyers and 45,000 sellers.

Real-World Example

StableEnrich is a data aggregator operating natively on the x402 network. It provides AI agents with pay-per-request access to premium data sources including Google Maps, Exa, and Firecrawl APIs. Instead of a developer purchasing enterprise API subscriptions and managing API keys manually, an autonomous sales agent queries StableEnrich, instantly pays approximately $0.02 in USDC via x402, and retrieves the required data without human intervention or centralized credential management. The provider receives continuous micropayments; the agent pays only for what it uses.

Related Terms

Sources