Ghostline — private pay-per-call payments for AI agents on Tari Ootle
Code
Update (Nov 9, 2026): republished template and fresh verified live runs
Following Fox’s Nov 7 note, Ghostline was rebuilt with tari_template_lib 0.38.0 and republished. The live demo now uses the new template, and the Nov 3 template and run links above are superseded.
Verified live run, Nov 9, 12:20–12:23 UTC: one 51 µT private deposit from Sapient, channel open about 35 seconds after funding, five 10 µT paid calls, an overspend attempt refused (51 > 50), and one live settlement.
An earlier run the same day (12:15–12:17 UTC) also completed end to end: funding explorer.tari.mw, open explorer.tari.mw, settlement explorer.tari.mw.
Tips for judges:If the first channel open stops with an error, click “Retry live setup”: it reuses your saved transfer and won’t ask for another deposit.
Update (Nov 3, 2026): live demo re-verified after the Esmeralda testnet reset
The Esmeralda/Ootle testnet reset wiped the old template and every transaction on it, so all explorer links in this post from Oct 17, Oct 22 and Oct 23 are now dead. Ghostline has been republished and the live demo works end to end again.
Verified live run, Nov 3, 14:53–14:56 UTC: a 51 µT private deposit, then channel open, five 10 µT paid calls, an overspend attempt refused (51 > 50), and settlement. These replace the Oct 23 run links above.
The earlier command-line run (Oct 22), the Oct 17 settlement and expiry refund, and the v0.3.1 pooled run were all recorded before the reset. Their transactions are no longer on the explorer, so read those parts as a historical description.
Tips for judges: opening the channel takes about a minute. In the Sapient popup, scroll down to reach Approve & Sign.
Update — October 23, 2026: Ghostline v0.4.0 and a live browser demo
Try it in the browser. The demo page runs real voucher signing in your browser. With no wallet, five simulated calls show the flow and then a recorded Esmeralda settlement. With the Sapient wallet on Esmeralda, you can run it live: approve one private 51 µT test transfer, and a testnet relay opens a real channel. Five paid calls are signed in your browser, then the relay settles once. The page shows your own channel-open and settlement transactions with explorer links.
What’s new since October 19:
- Live Sapient mode. A hosted run on October 23 used one private deposit (funding
4dad1dcf…) and opened the channel in 87b2e645…. Five 10 µT calls (50 µT) followed, then one settlement, f5dafe5c…. All three finalized. The settlement has the same claim-free, two-output shape as a command-line run: the deposit and amounts are hidden in its public fields.
- Command-line run on the current template (October 22). Open
9986c19d…, five paid HTTP calls, then settlement 1684aad9…, finalized.
- Ghostline v0.4.0 packages the CLI, reference paid API and MCP server for Linux x86-64. Run
ghostline demo after installing for the local HTTP 402 → voucher → paid-call flow; it needs no wallet or funds.
- A recorded-runs page lists every Esmeralda transaction behind Ghostline, with explorer links and their status. The site also has a glossary for the ghost vocabulary and Ootle terms.
How the live demo works, and what it trusts: the hosted relay is custodial and testnet-only. It receives the 51 µT deposit, opens and settles the channel, and can return the deposit after expiry. Your browser keeps the voucher-signing key, so the relay cannot sign a higher total for you. Observers can see that the relay’s account paid the fees. Use test funds only.
Update — October 19, 2026: Ghostline v0.3.1
Ghostline now has a confidential, fixed-shape settlement flow, verified on Tari’s Esmeralda testnet.
What changed since the October 17 proof: The earlier run demonstrated claim-free settlement and expiry refund transactions with no plaintext amounts in the inspected fields. It still had a variable settlement output count, which could signal whether the full deposit had been spent.
October 19 — v0.3.1: Settlement now always creates two stealth outputs by reserving 1 µT for payer change. A fresh Esmeralda run recorded 20 paid calls in the service ledger and finalized one settlement. The chain confirms the settlement, but does not prove the call count or prices. The update also documents fresh per-channel keys and an experimental pooled settlement; the pooled coordinator sees the deposit openings, and observers can see which channels were grouped.
What changed
- The channel deposit and settlement amounts are masked in the tested transactions. The payer keeps the deposit’s secret mask locally; the service knows the channel’s declared deposit limit and sees each request, price, and voucher. The latest Esmeralda open and settlement records did not expose the deposit, service amount, or payer remainder in their public transaction fields.
- Settlement always creates two stealth outputs. Ghostline reserves 1 µT for payer change, so the output count no longer signals whether the entire deposit was spent or some remains.
- Ghostline supports fresh keys per channel, with an optional separate service payout key. This reduces correlation from reusing keys across channels or later payouts. Both channel and payout keys are still visible in the same settlement, so this does not make the payer and service unlinkable.
- Expiry refunds were tested on the latest template. The refund finalized without a plaintext input or output amount in the inspected transaction fields. The exact refund amount was not independently unblinded in that run.
- An experimental two-channel pooled settlement also finalized. It is not coordinator-private: the local builder handled both deposit openings, and observers can see both channels grouped in one transaction. Treat it as a prototype, not a recommended hosted service.
In a separate run, the service ledger recorded 20 paid HTTP calls at 10 µT each, followed by one finalized settlement. The call count and prices come from that local ledger; the chain proves transaction finality, not those off-chain calls.
Inspect the Esmeralda transaction evidence, read the privacy limits, or install Ghostline v0.3.1 and follow the Esmeralda quickstart.
Fees, timing, transaction and channel metadata, and funding patterns remain visible. Ghostline is unaudited and intended for Esmeralda testnet use.
What it does
Ghostline gives AI agents a way to pay for services one request at a time without putting every payment on-chain. It is designed for agent workflows where a service may charge a small amount per API call and the agent needs clear spending limits.
Here is the payment flow:
- The payer opens and funds a Tari Ootle channel with a service.
- When an agent requests a paid endpoint, the service can return an HTTP 402 quote describing the price, recipient and expiry terms.
- The payer checks that the quote matches the expected channel and recipient, then signs a cumulative voucher for the accepted payment total.
- The service verifies the voucher and serves the request. Later vouchers increase the cumulative total, so calls can be accounted for off-chain instead of creating a separate chain transaction for each one.
- The channel can be settled against the latest accepted voucher. After expiry, the payer can refund an unspent channel.
Ghostline supports fixed-price, per-request and metered quotes. Its policy engine can enforce spending limits and require human approval for configured cases. The decision audit is recorded locally. The CLI provides channel and payment operations; the Rust SDK and TypeScript voucher support let applications integrate the payment flow; the MCP server exposes paid-call and channel tools to agent hosts.
Esmeralda evidence - October 17th
I tested a claim-free channel settlement and a separate expiry refund on Esmeralda. Both finalized:
For these tested transactions, observers cannot read the channel deposit or plaintext payment amounts from the public transaction fields. This does not hide the activity from the service: it sees each request, price and voucher. Observers can still see fees, timing, the executed branch, channel metadata, authorization data, and output commitments and counts. The transactions prove on-chain finality; they do not prove the off-chain call count or prices.
Ghostline is unaudited and intended for Esmeralda testnet use.
Tari payment address
12PHj9Bt7zdVV8SMxfrKeBGjDtGicYUXPnLv6J37Bjcr7kzsi9mig8Necmi1c3BTy8uqut7jd8iDKCFdb6FG5H5uMth
Social announcement
Reddit announcement