Turn any API into a paid API. One YAML config. Zero code changes.
tollbooth is an open-source x402 payment gateway that sits in front of your API and handles micropayments in USDC — so you can monetize any HTTP endpoint without touching your backend.
Client → tollbooth → Your API
↕
x402 facilitator
(payment settlement)
- Client hits your endpoint through tollbooth
- tollbooth returns
402 Payment Requiredwith a USDC price - Client signs a payment and retries
- tollbooth verifies, settles on-chain, proxies the request
- Your API responds as normal — it never knows about payments
| Repo | Description |
|---|---|
| gateway | Core gateway — routing, pricing, settlement, hooks |
| docs | Documentation at docs.tollbooth.sh |
| web | Landing page at tollbooth.sh |
npx x402-tollbooth init # generate a config
npx x402-tollbooth start # start the gateway- 📖 Docs
- 📦 npm
- 🐳 Docker
- 🌐 x402 ecosystem