Tollway
Built on Stellar · x402 and MPP

The orchestration layer for agent payments on Stellar.

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/mpp
Payment flow
  1. 01
    402 challengeThe service answers a request with a price and asset to pay.
  2. 02
    SignThe agent signs a payment commitment within its budget.
  3. 03
    SettleTollway routes the commitment to one model:
    • x402 · one payment per request
    • MPP charge · one payment per request
    • MPP channel · streamed, settled at close
  4. 04
    Signed receiptAny model produces one canonical record.
/ capabilities

Six jobs, one layer

Everything Tollway does sits above the payment primitives and leaves them untouched.

01

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.

02

Channel lifecycle

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.

03

Policy and budgets

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.

04

One canonical receipt

Every settlement, on any model, becomes one signed receipt for accounting, dispute evidence, and analytics. You stop normalizing three formats by hand.

05

Reconciliation

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.

06

Observability

Track spend, latency, and failure rates per agent, per service, and per model. Export the data or push it to a webhook.

/ scope

What Tollway is not

A thin layer with a narrow job. It sits above @x402/stellar and @stellar/mpp and composes them.

Not a facilitator

It does not stand between you and the network or move money on your behalf. The primitives still talk to Stellar directly.

Not a base SDK

x402 and MPP keep their own SDKs. Tollway calls them and adds orchestration on top. It does not replace them.

Never custodies funds

Agents and services hold their own keys. Tollway reads, routes, and records. It never takes custody of a balance.

/ who it is for

Built for both sides of the meter

Service operators

Get paid by agent traffic

Monetize an API, dataset, or inference endpoint for agents, and bill every call with one receipt format regardless of model.

Agent developers

Pay many services cleanly

Ship agents that pay across services without writing channel logic, budget enforcement, or per-model accounting yourself.

Platform integrators

Embed payments for tenants

Put agent payments inside a platform and give every tenant the same policy controls and observability out of the box.

Built on Stellar · x402 and MPP

Put one layer over your agent payments.

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.