x402

Protocolo P2P

Open HTTP-native payment protocol that activates the dormant HTTP 402 'Payment Required' status code to enable instant stablecoin micropayments between clients and servers — including AI agents — without accounts, API keys, or KYC. A client receiving a 402 response pays in stablecoins and retries; the server grants access upon verification by a facilitator. Chain-agnostic, zero-protocol-fee, designed as a foundational internet primitive for the agentic economy. 100M+ payments processed since May 2025 launch.

Fundação

Detalhes

Licença Open source — Apache 2.0; GitHub: github.com/coinbase/x402
Status de Dev 🟢 Ativo
Detalhe do Status de Dev Production — V2 specification released; 100M+ payments processed
Proprietário x402 Foundation (co-founded by Coinbase and Cloudflare, September 23, 2025); protocol created by Erik Reppel at Coinbase Developer Platform
Órgão de Governança x402 Foundation (industry consortium co-founded by Coinbase and Cloudflare, September 2025)
País USA
Ano de Início 2025
Stack TypeScript/JavaScript (primary SDKs: @x402/core, @x402/express, @x402/fetch, @x402/next); Go; Rust
Financiamento Coinbase Developer Platform (corporate originator); x402 Foundation (neutral governance)
Última Investigação 15 de jan. de 2026

Domínios de Caso de Uso

Capacidades

Intercâmbio não monetário Administração transparente

Protocolo P2P Atributos

Origens Inspired by Balaji Srinivasan's 21.co Bitcoin micropayment channels (2015); HTTP 402 status code originally reserved in HTTP/1.1 but never standardized; x402 revives and formalizes it for the stablecoin and agentic era
Banco de Dados N/A — stateless payment protocol
Linguagem de Consulta N/A
Formatos de Dados JSON (payment payload); EIP-712 signed payment authorization header
Edição Colaborativa em Tempo Real No
Edição de Texto Rico No
Suporte Móvel Yes (mobile HTTP clients)
Suporte Web Yes (HTTP-native)
Aplicativos Nativos Yes
Termos Apache 2.0
Fundos N/A (corporate-originated open standard; foundation-governed)
Baseado Em HTTP/1.1 RFC 7235 (402 status code); EIP-712 (Ethereum typed structured data signing); USDC/stablecoin payment rails
Arquitetura P2P Client-server (HTTP request-response with facilitator for payment verification and settlement)
Rede de Sobreposição N/A — HTTP transport
Endereçamento por Conteúdo No
Local-First No
Criptografia de Ponta a Ponta (E2EE) No (payment authorization in HTTP header; no E2EE channel established)
Biblioteca de CRDTs N/A
Tolerância a Falhas Bizantinas N/A
Assinatura Yes — EIP-712 cryptographic signature on payment payload
Permissões Key-based (EIP-712 signed payment authorization; no account or API key required)
Compatibilidade com a Web Semântica No
Contrato Inteligente No (payment protocol; blockchain settlement via EVM/SVM facilitator)
Posição na Pilha de Protocolo Application-layer (built on HTTP/HTTPS)
Incorporação de Ativo / Valor Application-layer add-on — value transfer handled via external blockchain facilitator, not embedded in the network packet
Maturidade / Padronização do Protocolo Production / Open Standard — V2 specification released; x402 Foundation (Coinbase + Cloudflare) governs; 100M+ payments processed; ERC-8004 integration on roadmap; not submitted to IETF