Skip to content
@x402-tollbooth

tollbooth

⛩️ tollbooth

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.

How it works

Client → tollbooth → Your API
         ↕
    x402 facilitator
    (payment settlement)
  1. Client hits your endpoint through tollbooth
  2. tollbooth returns 402 Payment Required with a USDC price
  3. Client signs a payment and retries
  4. tollbooth verifies, settles on-chain, proxies the request
  5. Your API responds as normal — it never knows about payments

Repos

Repo Description
gateway Core gateway — routing, pricing, settlement, hooks
docs Documentation at docs.tollbooth.sh
web Landing page at tollbooth.sh

Quick start

npx x402-tollbooth init    # generate a config
npx x402-tollbooth start   # start the gateway

Links

Pinned Loading

  1. gateway gateway Public

    Turn any API into a paid x402 API. One YAML config, zero code.

    TypeScript 3 1

  2. docs docs Public

    Documentation for x402-tollbooth Gateway

    Astro

Repositories

Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…