The Agentic Economy • Payment Infrastructure

x402: How AI Agents
Will Pay for Everything

The internet always had a status code for payments. It took stablecoins and AI agents to finally make it useful. Here's how x402 rewrites the rules.

100M+
Payments Processed
4,200+
APIs Accept x402
$0.001
Min Payment
98.6%
Settle in USDC

x402 is an open payment protocol that revives the HTTP 402 Payment Required status code, embedding payments directly into standard web requests. No accounts, no API keys, no OAuth. Just cryptographic proof of payment in HTTP headers.

An AI agent requests a resource, gets a 402 response with a price tag, signs a USDC payment, and receives the data. The entire handshake completes in 1.5 to 2 seconds. It works like HTTPS, but for money.

Created by Erik Reppel at Coinbase and launched May 2025. Open source under Apache 2.0 with 5,700+ GitHub stars. Backed by a neutral Foundation co-founded by Cloudflare and Coinbase.

Creator
Erik Reppel, Head of Engineering at Coinbase Developer Platform. Previously led engineering at Zora.
Foundation Partners
Coinbase, Cloudflare, Visa, Google, AWS, Anthropic, Circle, NEAR
Infrastructure
Primary chain: Base (Ethereum L2). Primary token: USDC. Also supports Polygon, Solana, and any ERC-20 via Permit2.
"We built x402 because the internet has always needed a native way to send and receive payments. Just like HTTPS secured the web, x402 could define the next era."
Erik Reppel, Creator of x402
Technical Architecture

How x402 Works: The 4-Step Flow

1
Agent Sends HTTP Request
An AI agent (or any client) sends a standard HTTP request to a resource server, like fetching market data, calling an API, or accessing premium content. No pre-registration needed.
GET /api/market-data/BTC HTTP/1.1
Host: data-provider.com
2
Server Responds with 402 + Price
The server returns HTTP 402 "Payment Required" with a header containing payment details: price, accepted tokens (USDC), network (Base), and the facilitator URL for settlement.
HTTP/1.1 402 Payment Required
X-PAYMENT: { price: "0.01", token: "USDC",
  network: "base", facilitator: "..." }
3
Agent Signs & Re-Sends with Payment
The client wallet creates a cryptographic payment signature (EIP-3009 for USDC) authorizing the exact amount. It re-sends the original request with a PAYMENT-SIGNATURE header. No on-chain transaction yet.
GET /api/market-data/BTC HTTP/1.1
X-PAYMENT-SIGNATURE: 0x7a8b3c...
4
Facilitator Verifies, Server Delivers
The server forwards the signature to a Facilitator, which verifies it and settles the payment on-chain. Once confirmed, the server returns the requested resource. End-to-end: ~1.5 seconds.
HTTP/1.1 200 OK
{ "BTC": "$87,432.15", "24h": "+2.4%" }
🤖
Client
AI agent or app with a crypto wallet. Signs payment authorizations using private keys. SDKs in TypeScript, Python, Go.
🖥
Resource Server
API or service requiring payment. Adds x402 middleware (Express, Hono, Next.js). Single line of code to integrate.
Facilitator
Verifies signatures and settles on-chain. Cannot modify amount or destination. Coinbase hosts a free tier (1K tx/month).
Key Design Principle
No accounts, no sessions, no API keys, no OAuth. Just cryptographic proof of payment embedded in standard HTTP headers. Like HTTPS for money.
The Problem

Why Traditional Payments
Break for AI Agents

Credit Card
$0.05 API call
$0.30 + 2.9% = $0.35
~700% fee
x402 / USDC
$0.05 API call
<$0.01
<1% fee
❌ TRADITIONAL RAILS
🚫
CAPTCHAs Block Agents
3D Secure, reCAPTCHA, and fraud detection systems assume a human is clicking. Agents can't solve visual puzzles or complete phone verification.
Settlement Takes Days
T+1 or T+2 settlement means an agent buying data today won't see funds clear until tomorrow. Machine-speed workflows need instant finality.
💳
No Sub-Dollar Support
Card networks have minimum transaction amounts. A $0.001 API call is economically impossible with a $0.30 fixed interchange fee per transaction.
👤
Human Identity Required
Opening a bank account or merchant account requires KYC, SSN, business registration. Agents have no legal identity to present.
✅ x402 PROTOCOL
🔑
Cryptographic Auth
No CAPTCHAs, no OAuth, no API keys. Just a wallet signature proving the agent can pay. Works for any software client, human or autonomous.
Instant Settlement
Payments settle in 1.5-2 seconds on Base L2. No chargebacks, no disputes, no reconciliation. The agent gets its data immediately.
💰
$0.001 Minimum
Stablecoin transfers have near-zero gas costs on L2 chains. An agent can pay $0.001 for a single API call without fees eating the payment.
💼
Wallet-Based Identity
An agent only needs a wallet address. No KYC, no bank account. Fund the wallet with USDC and it can transact with any x402 endpoint globally.
Before x402
CoinGecko API required account signup, API key management, rate limit tiers, and monthly billing. Free tier limited to 10K calls/month. Agents couldn't self-onboard.
After x402
CoinGecko launched x402 endpoints at $0.01 USDC per request. No account, no API key, no signup. Any agent with a wallet can pay and query instantly. Volume unlimited.
Citrini Research (Feb 2026): "AI agents will systematically avoid card rails. The economics of micropayments and the identity requirements of card networks are fundamentally incompatible with autonomous software."
Competitive Landscape

The Race to Build Agent
Payment Infrastructure

Coinbase
Protocol Creator
x402Base L2Open Source
x402 Protocol + x402 Foundation
Created the x402 standard. Co-founded the x402 Foundation with Cloudflare for neutral governance. Built on Base (Ethereum L2) with USDC as primary token. 100M+ payments processed, 4,200+ APIs integrated.
Stripe
Hybrid Fiat + Crypto
MPPSPTsAgent Toolkit
Machine Payments Protocol + Agentic Commerce Suite
Co-authored MPP with Tempo blockchain (backed by Paradigm). Session-based streaming payments. Shared Payment Tokens let agents pay using buyer credentials. Also integrated x402 into PaymentIntents API. Early adopters: Etsy, Coach, Revolve.
Circle
Settlement Layer
USDCNanopaymentsArc L1
Nanopayments + Gateway + Arc Blockchain
Gas-free USDC transfers as small as $0.000001. Batches thousands of micropayments off-chain for single on-chain settlement. 98.6% of all AI agent payments settle in USDC. 400K+ agents with purchasing power. Building Arc, a purpose-built L1 for stablecoin finance.
Featurex402 (Coinbase)MPP (Stripe)Nanopay (Circle)
Payment RailsCrypto only (USDC on-chain)Hybrid: crypto + cards + BNPLCrypto only (USDC batched)
Min Payment$0.001Session-based (streaming)$0.000001
Best ForIndependent devs, open APIsEnterprise agent commerceHigh-frequency nano transactions
Settlement~1.5s on-chainSub-second (Tempo)Batched (off-chain → on-chain)
Open SourceYes (Apache 2.0)Open standardSDK (testnet)
Fiat SupportNo (crypto only)Yes (cards, BNPL, wallets)No (USDC only)
Key Insight
These protocols are complementary, not competing. Stripe integrated x402 into PaymentIntents (Feb 2026) while building its own MPP (March 2026). x402 handles simple pay-per-request use cases. MPP handles complex multi-payment sessions with fiat. Circle settles the underlying USDC for both.
Ecosystem Map

Who Else Is Building
Agent Payment Rails?

💳
Visa
Intelligent Commerce
Launched Intelligent Commerce (April 2025) to open its network to AI agent developers. Created the Trusted Agent Protocol (TAP) for verifying legitimate AI agents vs. bots. Partnered with Anthropic, OpenAI, Microsoft, and Stripe.
🤝 Extended MPP for card-based agent payments
🌐
Google
A2A + AP2 Protocols
Created Agent2Agent (A2A) protocol for standardized agent-to-agent communication with 50+ tech partners (PayPal, Salesforce, SAP). Also launched AP2 (Agent Payments Protocol) for secure agent-to-merchant payment initiation.
📡 50+ partners across A2A + AP2 ecosystem
💳
Mastercard
Agent Pay + Agent Suite
Launched Agent Pay (April 2025) for card-native agent identity, followed by Agent Suite (March 2026). Building its own payments AI model to understand and authorize agent transactions without human intervention.
🤖 First live AI agent payment in Europe (Santander)
Cloudflare
x402 Foundation Co-Founder
Co-founded the x402 Foundation with Coinbase for neutral governance. Adding payment capabilities at the CDN/edge layer, enabling x402 payments to be processed at the network edge for minimal latency globally.
⚡ Edge-native payment processing at 300+ PoPs
Skyfire
$9.5M raised (a16z, Coinbase Ventures)
Built KYA (Know Your Agent) infrastructure. Each agent gets a digital wallet with spending limits. Businesses deposit USD, converted to USDC under the hood. Founded by ex-Ripple execs. Revenue model: 2-3% per transaction.
Crossmint
$23.6M raised (Ribbit, Franklin Templeton)
Building virtual credit cards for AI agents. Dubbed "Stripe for Autonomous Commerce." Agents get scoped, single-use cards with spending controls, merchant whitelists, and full audit trails for compliance.
Tempo
Backed by Stripe + Paradigm
Purpose-built payments blockchain co-created with Stripe. Sub-second finality, designed for high-volume stablecoin transactions. Powers the Machine Payments Protocol (MPP) with session-based streaming.
Lightspark
Bitcoin Lightning Infrastructure
Extended Stripe's MPP to support Bitcoin Lightning payments. Enables agents to transact on Bitcoin rails with sub-second settlement. Adds BTC as a payment option alongside stablecoins.
Key Milestones: The Agent Payments Race
Apr 2025
Mastercard Agent Pay + Visa Intelligent Commerce launch
May 2025
Coinbase launches x402 protocol, open source from day one
Sep 2025
x402 Foundation formed by Cloudflare + Coinbase
Oct 2025
Visa TAP protocol for AI agent identity verification
Jan 2026
x402 V2 ships: wallet identity, multi-chain, AI framework adapters
Feb 2026
Stripe integrates x402 into PaymentIntents API for USDC on Base
Mar 2026
Stripe MPP launches with Tempo blockchain. 100+ services at launch
Mar 2026
Circle Nanopayments on testnet. $0.000001 minimum transfers
The Convergence
Every major payment player is building agent infrastructure. Card networks (Visa, Mastercard), crypto rails (Coinbase, Circle), and hybrid platforms (Stripe) are all racing to become the default agent payment layer. Stablecoin volume hit $33T in 2025, up 72% YoY.
Product Strategy

What This Means for
PMs & Builders

Level 1
Suggest
Agent recommends, human decides and pays
Level 2
Act + Approve
Agent initiates, human confirms payment
Level 3
Guardrails
Agent acts within spending limits
Level 4
Autonomous
Agent transacts freely, human audits
1
Make Your Product API-First
Products invisible to MCP, A2A, and x402 don't exist in the agent economy. Expose your core value as a programmable API endpoint that an agent can discover and pay for without human intervention.
2
Kill Per-Seat Pricing
When agents are the users, seat-based pricing collapses. Move to usage-based or outcome-based models. Price per API call, per data row returned, or per task completed. x402 makes this trivially easy.
3
Design for KYA, Not KYC
Know Your Agent replaces Know Your Customer. You need wallet-based identity, spending limit enforcement, merchant whitelists, and full audit logs. Skyfire and Visa TAP are building this layer.
4
Build Guardrail Architecture
Human-in-the-loop for high-value transactions. Configurable spending ceilings per agent. Transaction-level observability. Revocable agent permissions. This is the product, not a feature.
$3-5T
Agent Revenue
by 2030
McKinsey
$385B
U.S. Agent
E-Commerce
Morgan Stanley
400K+
Agents with
Purchasing Power
Circle
The PM Takeaway
The agentic economy is not a crypto thesis or an AI thesis. It's a product thesis. The PMs who make their products agent-accessible, usage-priced, and payment-ready will capture the $3T+ wave. Everyone else will be invisible to the next generation of customers: autonomous agents with wallets.
Rizvi Haider by Rizvi Haider