M2M Settlement Infrastructure

Monetize Any API with x402 Tollbooth

Pay-per-call metering, streaming micropayments, and cryptographic Ed25519 vouchers for autonomous agent swarms. No monthly subscriptions or credit card forms required by the calling agent.

Install SDK — PyPI Quickstart Docs

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

Free / open source

Self-hostable Python middleware. Settle x402 on Base or Solana devnet.

GitHub Repository

Tollbooth Pro Managed

$19 / month

Managed Oracle Cloud / Cloudflare Edge proxy, automated SQLite WAL ledger sync, and webhook refund rails.

Get Managed Pro