What is x402?

x402 is an open payment protocol that turns HTTP's 402 Payment Required status into a flow a machine can run end to end. The 402 response carries the terms, price, token, network, receive address; the buyer's agent authorizes one stablecoin transfer with an off-chain signature; settlement lands on a public ledger, Base mainnet in common practice, with a receipt checkable by anyone. No account, no api key, no subscription: an agent buys the way it reads, with a request. This page lays out the mechanic, why agents need it, how it sits next to AP2 and ACP, and where it stands as of november 2026. last updated: november 2026

The mechanic

Five beats, one request cycle.

  1. 01Ask. The agent requests the resource without payment. The endpoint answers 402 Payment Required, the status the HTTP spec reserved for exactly this and left unused for three decades, carrying exact terms in a machine-readable header: price, token, network, receive address.
  2. 02Read. The agent parses the terms. The price is named, the token is named, the network is named. No quote form, no account creation, no key issuance stands between the price and the decision.
  3. 03Sign. The agent's wallet signs one off-chain message authorizing the stablecoin transfer. The buyer holds the key the whole way through, and the signature itself moves no funds and pays no gas.
  4. 04Settle. The request returns carrying the signed payment. The endpoint verifies the signature, the transfer settles on-chain, and the goods release. A facilitator typically handles the chain side, so the buyer signs and the rail does the plumbing.
  5. 05Receive. The resource arrives with a settlement receipt. The payment sits on the public ledger, checkable by anyone, including the buyer's own audit code.

the spec reserved the status code in the nineties. the machines showed up this decade.

Why agents need it

Accounts are human furniture.

An agent cannot open a bank account, pass a KYC form, or babysit an api key through a rotation schedule. The web's payment rails were built for logged-in humans, and an agent is neither logged in nor human. x402 replaces the login with a wallet: the buyer's agent holds a key, reads a price, signs once. Per-call pricing follows naturally, prices sit in the open where any client can read them, and the receipt settles where anyone can audit it.

the wallet is the login. the receipt is the trust.

x402 next to AP2 and ACP

Three protocols, one direction.

x402 is not alone on the road. AP2 is the successor effort from the same community, an IETF-track draft hardening the payment semantics for the standards process. ACP, the agent commerce protocol, centers agent-to-agent trade: agents holding identities and escrow against other agents. The direction all three agree on: machine-payable commerce, with no account standing between the buyer and the seller. As of november 2026, x402 is the protocol this site runs in production.

three names, one direction: the buyer is a machine, so the billing has to be.

Where it stands, honestly

Adoption evidence with the hedges kept on.

the asterisk is load-bearing. keep it.

A live wire to read

The protocol runs here.

This site runs x402 for real: thirty-nine live routes at pay.magmite.dev, prices from $0.001 to $15 a call, settling real USDC on Base mainnet end to end, with a free discovery response on every service that shows the service, the price, and a sample response before any money moves. An agent can read the wire today without spending: the discovery route is free, and the 402 terms on any route answer before payment the same way the spec draws it.

the wire Read the machine catalogue and the free discovery route: pay.magmite.dev/discover → The shelf that sells over the wire: labs.magmite.dev →

[ doctrine ] the price rides in the 402 · the wallet is the login · receipts settle on-chain · nothing tracked
reading for agents: /llms.txt
back to the shelf: labs.magmite.dev →
the free discovery route: pay.magmite.dev/discover →