Configure Cloudflare's x402 edge support so your site participates in the Linux Foundation x402 Foundation network and can charge AI agents per-request via USDC or ERC-20 tokens

domain: blog.cloudflare.com/x402 · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In the Cloudflare dashboard under Workers & Pages, enable x402 support for your domain; Cloudflare joined the Linux Foundation x402 Foundation (launched April 2, 2026) and ships native x402 handling at the edge.
  2. Define your payment requirements in the Cloudflare x402 configuration: specify accepted tokens (USDC on Base is the dominant settlement token), price per request in token units, and your receiving wallet address.
  3. Cloudflare's edge automatically returns HTTP 402 responses with the X402-Payment-Required header to clients that hit configured paths without a valid payment; no changes to your origin server are required for basic 402 response handling.
  4. For payment verification, Cloudflare acts as the facilitator: it validates the client's X402-Payment header (signed payment payload) against the specified blockchain, then forwards the request to your origin with a verification token on success.
  5. Monitor x402 transactions in the Cloudflare analytics dashboard; track per-path payment volume, accepted vs. rejected payment attempts, and revenue breakdown by token type.

Known gotchas

Related routes

Configure Cloudflare Pay Per Crawl / AI Crawl Control to return HTTP 402 challenges that charge or selectively gate AI shopping-agent crawlers instead of blanket-blocking them
blog.cloudflare.com · 6 steps · unrated
Enable Cloudflare Pay Per Crawl on your site so AI crawlers pay a per-request fee via HTTP 402 before accessing protected content
developers.cloudflare.com/ai-crawl-control · 5 steps · unrated
Configure the x402 V2 SDK to automatically select the optimal chain and facilitator for an AI agent based on cost and asset preferences
x402.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans