OceanAlt
HTTP 402 · Payment Required→ agent pays →HTTP 200 · OK

200Lab

From 402 to 200.

In 1997, HTTP reserved a status code almost nobody ever used: 402 Payment Required. Thirty years later, AI agents brought it to life: a machine requests, gets billed, settles on its own, and receives 200 OK— that five-character flip is the entire story of the agent economy, and the origin of this lab's name. We don't paraphrase protocol docs. We build them.

Demo #1 · The Agent That PaysLIVE

Click run: an agent with a wallet is born in your browser and buys a piece of paid content from this site — every round-trip and signature actually happens. Open DevTools (F12 → Network) and watch the 402 with your own eyes.

200lab — agent-payment-demo LIVE

Transparency: the protocol flow and EIP-712 signatures are real; on-chain settlement is simulated — the Base Sepolia real-settlement version is in development.

What just happened

01 · Quote

The agent requests a resource. The server doesn't ask who you are — it sends a bill: HTTP 402 with amount, payee, and a one-time nonce. No signup, no API key.

02 · Sign

The agent signs an EIP-712 payment authorization with its own wallet — cryptographically unforgeable, and the key never leaves the agent.

03 · Retry

The agent retries the same request with the signed credential in an X-PAYMENT header. To the server, this is money arriving.

04 · Settle

The server verifies the signature, checks the quote, burns the nonce (single-use), releases the content and settles. 402 becomes 200. Done.

Lab roadmap

200Lab is an independent research project, not affiliated with Coinbase or the official x402 protocol. Demo code will be open-sourced with the testnet release.