Why Autonomous Agents Need Tollbooth
HTTP 402 Native
Return standard HTTP 402 Payment Required challenges that AI agents and MCP tools understand natively. Settle inside the HTTP request.
Ed25519 Signed Vouchers
Emit tamper-proof, offline-verifiable execution receipts for every settled machine-to-machine transaction. Audit trails without blockchain lock-in.
Zero Human Friction
Autonomous agents cannot fill out Stripe checkout forms. Tollbooth lets them pay in stablecoin micropayments or pre-authorized budget tokens.
1-Minute Python Quickstart
Install the official SDK directly from PyPI:
pip install nano-empire-tollbooth
Protect any FastAPI or Flask route with one decorator:
from fastapi import FastAPI
from nano_empire_tollbooth import TollboothGate
app = FastAPI()
gate = TollboothGate(price_usdc=0.05, network="base")
@app.get("/api/v1/compute")
@gate.protect()
async def compute_payload():
return {"status": "computed", "data": [1, 2, 3]}
Production Deployment Tiers
Community Edition
Self-hostable Python middleware. Settle x402 on Base or Solana devnet.
GitHub RepositoryTollbooth Pro Managed
Managed Oracle Cloud / Cloudflare Edge proxy, automated SQLite WAL ledger sync, and webhook refund rails.
Get Managed Pro