x402 x Cloudflare / AWS · the default payment component at the edge layer
Wiki route
This entry sits under AI Agent payment protocols overview · a 7-protocol survey. Read it against x402 · AI agent payment protocol reviving HTTP 402 (overview) for peer / contrast context and payments index for the broader system / regulatory boundary.
Key facts
- 2026-Q1 Cloudflare Workers natively integrated x402 •
- 2026-Q2 AWS API Gateway integrated x402 · enabling Bedrock agents to call paid APIs •
- Cloudflare handles 20%+ of global HTTP traffic •
- Developers can commercialize an API with 5 行 of configuration · Cloudflare collects a 1-2% facilitator fee •
- The facilitator model has < 100ms of verification latency (credit-advance · asynchronous on-chain settlement) •
- Backed by Cloudflare + AWS, x402 is no longer a crypto-only toy •
- Compatible with OpenAI / Anthropic agent SDKs (formal integration not yet announced) •
Mechanism / How it works
The edge layer is the path that HTTP traffic must always pass through, and Cloudflare Workers / AWS API Gateway are the largest 2 社 within it. Integrating x402 into the edge layer means developers do not need to write payment logic. They merely declare the endpoint price (e.g., “this API is $0.001 USDC”) · and the edge layer automatically: (1) intercepts requests with no payment → returns HTTP 402 ; (2) verifies requests carrying the X-Payment header (asynchronous on-chain settlement); (3) permits routing → the backend processes it. Via the facilitator model the edge layer performs credit-advance: before the on-chain USDC settlement completes, the facilitator has already released the request · compressing single-shot latency to < 100ms. Cloudflare’s 1-2% is the facilitator fee · which, compared with traditional Stripe’s 2.9% + $0.30 , is extremely advantageous for low-value API calls (for the fee-rate moat, contrast with Embedded Wallet · Fintech Eating Web3 in Reverse as a Trojan Horse (Stripe Five Layers)). The AWS API Gateway + Bedrock path forms a closed loop in which an agent calls paid APIs inside AWS.
Origin & evolution
2025-05 Coinbase announced the x402 spec. 2025 H2 Cloudflare engineers carried out an experimental integration on Workers · validating that the facilitator model’s latency could be compressed to 100ms. 2025-Q4 Cloudflare decided on 2026-Q1 productization. 2026-Q1 the Cloudflare Workers x402 integration was formally released — this became x402 ‘s first enterprise-grade integration. 2026-Q2 AWS API Gateway followed, forming a closed loop with Bedrock AgentCore via x402 (AgentCore’s default wallet is Privy/CDP + billing through API Gateway’s x402 ). In parallel, the Vercel AI SDK also supports x402 client calls. OpenAI / Anthropic have not yet announced formal integration · but the SDKs are compatible with x402 client calls (it only needs the agent to be able to sign with a wallet · the underlying layer depends on ERC-4337 or ERC-7702).
Related
- Wiki Index
- x402 · AI agent payment protocol reviving HTTP 402 (overview)
- Privy x AWS AgentCore
- AI Agent payment protocols overview · a 7-protocol survey
- The Blockchain Industry Has Split at the DNA Level into \"On-Chain Finance\" and \"Crypto\"
Sources
- x402 protocol (Coinbase) — https://github.com/coinbase/x402
Discovery
Keep reading
Read next
- Agent Payment Infrastructure Research Report This entry sits under AI agent payment protocols overview: seven-protocol map. Read it against paid skill-market monetization for peer / contrast context and payments index for the broader s... agent-economy/2026-04-08_agent-payment-infrastructure-research
- The Agent Actorship Debate: 4 Camps This entry sits under Skill マーケット有料化. Read it with Agent 決済インフラ調査レポート for adjacent context and FinWiki index for the broader system boundary. agent-economy/agent-actorship-debate
- Agent custody and authorization framework · 2026-05 reference architecture Agent custody and authorization in 2026 has converged into a three-axis design space: (1) custody model — full self-custody (user holds key, agent has no independent control), hybrid (Lit PK... agent-economy/agent-custody-and-authorization-framework-2026
Links here
- Agent Payment Protocol four-way comparison matrix 2026 · AP2 / x402 / Skyfire / Nevermined plus ERC-7715 + Lit PKP This entry sits under agent-economy index. Read it against AI Agent 決済プロトコル全体図 · 7プロトコル俯瞰 for the broader seven-protocol landscape, agent protocol mainnet adoption 2026 for production-readin... agent-economy/agent-payment-protocol-four-way-comparison-2026
- Agent Protocol Mainnet Adoption · 2026-05 Production-Readiness Snapshot As of May 2026, the agent-payment protocol stack has bifurcated sharply between mainnet-shipped infrastructure and testnet / consortium-only specs. The production-live tier is dominated by x... agent-economy/agent-protocol-mainnet-adoption-2026
- Privy x AWS Bedrock AgentCore · Default-wallet positioning in the AI agent economy This entry sits under AI Agent 決済プロトコル全体図 · 7プロトコル俯瞰. Read it against Solana SMS vs Embedded Wallet · OS 層 vs App 層の経路争い for peer / contrast context and payments index for the broader system... agent-economy/privy-aws-agentcore-default-wallet
- Stripe Agent Toolkit · Stripe's First-Party Agent SDK and Its Position vs x402 / Privy / AWS AgentCore The Stripe Agent Toolkit, launched in late 2024 and significantly expanded through 2025, is Stripe's first-party SDK for letting AI agents transact through the existing Stripe rails — Issuin... agent-economy/stripe-agent-toolkit-position
- Visa Intelligent Commerce + Mastercard Agent Pay · Card-Network Agentic Commerce Pilots Visa Intelligent Commerce (announced 2024-Q4, expanded with the Trusted Agent Protocol in 2025) and Mastercard Agent Pay (announced early 2025) are the card networks' answer to the same prob... agent-economy/visa-mastercard-agentic-commerce-pilots