Charge AI bots that crawl your site
agent402-tollbooth is the open-source monetization gateway - a self-hostable pay-per-crawl gate that is live today, no waitlist, and works in front of any origin, not just sites behind a platform proxy. Drop it in front of any Node site and AI crawlers pay USDC on Base (or Solana, Polygon, Arbitrum, Stellar) - or burn CPU - to read your content. Humans browse free, funds settle straight to your wallet with a 0% take. 30-min walkthrough → vs. platform gateways →
1 · Configure
Tip: leave it in observe mode for 24h. Your dashboard at /__tollbooth will show what's actually crawling you before you ever charge anyone.
2 · Install
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>.
3 · Roll out safely
Phase 1 · 24h
Nothing is blocked. Dashboard shows you what's crawling and what you would charge.
Phase 2 · ongoing
Known AI crawlers (GPTBot, ClaudeBot, CCBot, Perplexity, …) get 402. Humans + Googlebot pass.
Phase 3 · optional
Catch unidentified bots too. Adaptive proof-of-work keeps the page reachable for legit edge cases.
Not running Express?
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.