Agentic Commerce

The protocol for machine-to-machine money.

x402 is an open standard for autonomous AI agent payments — fractions of a penny per transaction, settled in stablecoins, no card network required.

x402

Protocol

Payments without accounts.

AI agents pay APIs directly. No API keys, no OAuth, no human in the loop. An agent hits an endpoint, gets back 402 Payment Required with a machine-readable header, signs a USDC transfer on Base, and retries. Done.

// 1. Standard GET — no auth headers
const res = await fetch('https://api.stable402.com/gate');

// 2. Decode the 402's PAYMENT-REQUIRED header
if (res.status === 402) {
  const header = res.headers.get('PAYMENT-REQUIRED');
  const { accepts } = JSON.parse(atob(header));
  // → scheme, network, amount, payTo, asset
}

// 3. Sign EIP-3009 transfer, retry with PAYMENT-SIGNATURE

Build sequence

Demos.

Every POC ships on Cloudflare Workers, documented as a newsletter issue. Engineering, product, and compliance teams shipping agentic commerce.

POC 01
x402 Worker Middleware
Gate a JSON API behind x402. USDC settlement on Base Sepolia via Coinbase CDP.
Live View demo →
POC 02
paidTool MCP Server
x402-gated MCP tools on Cloudflare Agents SDK. $0.01/invocation. D1-backed protocol data.
Live
POC 03
AP2 ↔ x402 Bridge
Google A2A mandate flow settles via x402 on Base instead of card rails.
Planned
POC 04
Stripe x402 Facilitator
Stripe as x402 facilitator with fiat off-ramp. Crypto settlement meets card rails.
Planned
POC 05
Multi-Chain Settlement
Base vs Solana x402 — same protocol, different chains. Latency and cost compared.
Planned
POC 06
Signed Agents + x402
Dual-gate: x402 payment + Cloudflare Signed Agents identity in one handshake.
Planned
POC 07
Circle Nanopayments
Sub-cent x402 via Circle Nanopayments. Per-token streaming with USDC.
Planned
POC 08
x402 Sandbox
Browser-based x402 sandbox on Durable Objects. Inspect headers, replay flows.
Planned
POC 09
Pay-Per-Crawl
AI Crawl Control + x402. Publishers monetize crawler access with USDC micropayments.
Planned
POC 10
Transit Map
Interactive protocol journey maps — x402, ACP, AP2, ACK visualized across the payment lifecycle.
Live View map →

The platform

Three sites. One infrastructure.

Stable402 is the implementation layer. StablecoinAtlas maps it. StableKYA handles compliance.