x402 x Cloudflare / AWS · the default payment component at the edge layer
ConfidenceLikelyUpdated2026-05-26Review by2026-09-22Sources1Machine-translatedOriginal (JA)
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 wallets as fintech's Trojan horse into Web3 (Stripe's 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
- On-chain finance and crypto · a comparison framework based on a continuum
Sources
- x402 protocol (Coinbase) — https://github.com/coinbase/x402
Discovery
Keep reading
Read next
- Agent Payment Infrastructure Research ReportThe current Agent payments space has already formed a 4 -protocol coexistence landscape:
- Agent custody and authorization framework · 2026-05 reference architectureAgent 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...
Links here
- Agent Payment Protocol four-way comparison matrix 2026 · AP2 / x402 / Skyfire / Nevermined plus ERC-7715 + Lit PKPSelecting an agent payment rail in 2026 is not "pick the best protocol" — it is "compose the layer cake correctly so the merchant accepts, the wallet authorizes, and the regulator does not b...
- Agent Protocol Mainnet Adoption · 2026-05 Production-Readiness SnapshotAs 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...
- Privy x AWS Bedrock AgentCore · Default-wallet positioning in the AI agent economyAWS Bedrock AgentCore is AWS's AI agent orchestration platform, and the Payments module handles an agent paying external APIs when executing a task. Selecting the default wallet provider is...
- Stripe Agent Toolkit · Stripe's First-Party Agent SDK and Its Position vs x402 / Privy / AWS AgentCoreThe 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...
- Visa Intelligent Commerce + Mastercard Agent Pay · Card-Network Agentic Commerce PilotsVisa 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...