An agent hits a protocol and gets one answer back: pay first. No account, no API key, no human to email. It builds a payment, retries, and enters. x402 is the handshake that lets a machine initiate anything, mid-flight. Below is a live one, gated on a real proof.
HTTP 402 sat unused for thirty years, reserved for a payment layer the web never shipped. x402 turns it into the thing an agent needs: a way to pay for a resource the moment it asks for it, inline, with a stablecoin, and no account behind it.
POST /proof. It has no key and no session. The surface answers 402 with exact payment requirements: amount, asset, network, recipient.X-PAYMENT authorization for the exact amount and signs it. No negotiation, no credential exchange, no prior vetting.200 with the proof and a settlement receipt. Humans in the loop: zero.Chapter 10 gave an agent a machine-callable surface: a way to call. x402 gives it a way to initiate: a way to pay and act mid-sequence, with no static human-held entry point. Together they are what agent-constructed execution sequences run on. A protocol an agent cannot enter mid-flight does not appear in those sequences at all.
This desk models the pairing directly: the resource behind the 402 is a real proof from the coordination engine of the last two dispatches. Pay the handshake, and a proof settles at the other end, machine-speed, no operator on the path.
The handshake above ends in a receipt: an amount paid, a settlement reference, and a proof delivered. The price is the entry gate, and it is the only gate. Everything else the agent did itself.
The receipt on this page runs the reference surface in your browser. The repository is the same surface as a small library: request, pay, verify, settle, deliver. The x402 message format and the request, pay, retry flow follow the x402 exact scheme; signing and on-chain settlement are modelled so it runs with no wallet and no RPC.
x402 is an open payment scheme built on HTTP 402. This dispatch is an independent reference, not a production facilitator, and not Fermah's infrastructure. It models the initiation primitive so it can be driven and read line by line.
Amounts and the USDC / base-sepolia asset are real; the signatures, authorizations and settlement transactions are deterministic stand-ins generated in your browser. Fermah's thesis is theirs; this surface is an independent model of it.