● live demo server

robots.txt rebuilt
for the agentic era

Tollway is an open protocol for AI agent web access. Identity headers, policy enforcement, and USDC micropayments — all in a single middleware you drop into any Express or Next.js app.

$ npx @tollway/cli fetch http://tollway.vercel.app/articles/intro-to-tollway
✓ tollway.json served ✓ DID identity headers ✓ 402 payment flow Ed25519 signing USDC on Base MIT + CC BY 4.0

Identity

Every agent request carries a did:key DID and an Ed25519 signature. Servers know who is asking.

Policy

Sites publish /.well-known/tollway.json declaring what agents can do, how much it costs, and attribution rules.

Payments

HTTP 402 + x402 standard. Agents pay in USDC on Base. The whole round-trip happens in milliseconds.

training_allowedfalse
attribution_requiredtrue
free_requests_per_day500
read0.001 USDC
summarize0.005 USDC
train0.05 USDC (402)
networkBase Sepolia

Full policy at /.well-known/tollway.json

import { tollwayMiddleware } from '@tollway/server'; app.use(tollwayMiddleware({ policy: { trainingAllowed: false, freeRequestsPerDay: 100 }, paymentAddress: process.env.PAYMENT_ADDRESS, }));