Model routing
Tollway reads each counterparty's traffic shape and picks x402 per request, MPP charge, or an MPP channel. Override any choice when you already know the answer.
Stellar ships two agent payment primitives: x402 settles one payment per request, and MPP adds a channel mode where an agent deposits once and streams thousands of signed commitments, settled in a single transaction at close. Tollway composes both. It picks the model per counterparty, runs channel lifecycles, enforces budgets, and turns every settlement into one signed receipt. It orchestrates the payments and never holds the funds.
Composes@x402/stellarand@stellar/mppEverything Tollway does sits above the payment primitives and leaves them untouched.
Tollway reads each counterparty's traffic shape and picks x402 per request, MPP charge, or an MPP channel. Override any choice when you already know the answer.
Open channels, track cumulative commitments off chain, and close on the right trigger. When a counterparty goes quiet, Tollway recovers the channel instead of stranding funds.
Set per-agent and per-service caps, rate limits, and anomaly stops. Tollway maps them onto smart accounts where available and enforces them in the application layer everywhere else.
Every settlement, on any model, becomes one signed receipt for accounting, dispute evidence, and analytics. You stop normalizing three formats by hand.
Off-chain commitments are checked against on-chain settlement after every close. When the two drift, Tollway flags the difference with the records behind it.
Track spend, latency, and failure rates per agent, per service, and per model. Export the data or push it to a webhook.
A thin layer with a narrow job. It sits above @x402/stellar and @stellar/mpp and composes them.
It does not stand between you and the network or move money on your behalf. The primitives still talk to Stellar directly.
x402 and MPP keep their own SDKs. Tollway calls them and adds orchestration on top. It does not replace them.
Agents and services hold their own keys. Tollway reads, routes, and records. It never takes custody of a balance.
Monetize an API, dataset, or inference endpoint for agents, and bill every call with one receipt format regardless of model.
Ship agents that pay across services without writing channel logic, budget enforcement, or per-model accounting yourself.
Put agent payments inside a platform and give every tenant the same policy controls and observability out of the box.
Read how Tollway routes, settles, and reconciles, then wire it above your existing x402 and MPP setup. It is open source and never touches your funds.
Pre-release. Interfaces will change before a tagged release.