agent402-tollbooth is an open-source, self-hostable pay-per-crawl gate. Drop it in front of any Node site and AI crawlers pay USDC on Base — or burn CPU — to read your content. Humans browse free. 30-min walkthrough →
Tip: leave it in observe mode for 24h. Your dashboard at /__tollbooth will show what's actually crawling you before you ever charge anyone.
npm install agent402-tollboothThat's it. Start your server normally. Add a TOLLBOOTH_STATS_TOKEN env var to view the dashboard at /__tollbooth?token=<your token>.
Nothing is blocked. Dashboard shows you what's crawling and what you would charge.
Known AI crawlers (GPTBot, ClaudeBot, CCBot, Perplexity, …) get 402. Humans + Googlebot pass.
Catch unidentified bots too. Adaptive proof-of-work keeps the page reachable for legit edge cases.
wrangler deploy. KV-backed.
Next.js middlewareOne file in middleware.ts.
Docker reverse proxyAny backend, any language.
WordPress plugin betaDrop-in PHP. Settings → Agent402 Tollbooth.