Cloudflare x402 Proxy
Cloudflare Workers template that adds x402 payment gates to any site deployed on Cloudflare's edge network.
Using USDC on Cloudflare x402 Proxy
Cloudflare, one of the co-founders of the x402 Foundation, provides a Workers template that lets developers add x402 payment requirements to any website or API running on Cloudflare's global edge network. The template acts as a reverse proxy: requests hit the Cloudflare Worker first, which checks for x402 payment, verifies it, and then forwards the request to the origin server. This means you can add per-request USDC payments to an existing site without modifying the origin application. It runs on Base and benefits from Cloudflare's global distribution for low latency.
Supported networks
Key features
- Edge-deployed payment gates
- No origin server changes needed
- Cloudflare Workers integration
- Global low-latency distribution
- Co-founded x402 Foundation
Other x402
Coinbase x402 SDK
The reference implementation for x402. TypeScript SDK for building clients and servers that handle per-request USDC payments.
SDKthirdweb x402
x402 middleware from thirdweb that integrates with their smart contract and wallet tooling.
SDKx402 Python SDK
Python library for building x402 clients and servers. Ideal for AI agents and data services.
Ready to get started with USDC?
Check out our guides or explore more of the USDC ecosystem.