Charge AI crawlers, not your readers
GPTBot, ClaudeBot and PerplexityBot scrape billions of pages for free. HTTP 402 flips the economics: humans pass free, bots pay per fetch in Base USDC.
1. Publish your content as a creator paywall
npx switch402 publish --handle you --skill page --price 0.005 --script ./handler.mjs
2. Generate the edge worker
The interactive generator at
https://switch406.com/paywall emits a ready-to-deploy Cloudflare Worker script: it detects AI crawler user-agents, answers them with
402 Payment Required + x402 headers, and lets verified paid fetches through. Humans never see a wall.
3. Collect
Creators keep 90% of every call. Settlement is gasless EIP-3009 USDC on Base; card and Lightning rails cover non-crypto buyers.