Privacy-preserving web search paid with Bitcoin + Cashu. Under the hood: - Top up SEARCH tokens (Cashu Ecash) with Lightning - Ecash is stored in your browser - For each search, you pay the server 1 SEARCH - No accounts, no tracking - Works with agents, skill included image

Replies (14)

Cashu is a building block for privacy-preserving applications. Its only use isn't money. In fact it is extremely similar to PrivacyPass, a protocol once invented bypass captchas. Its main purpose is to get rid of accounts and to decouple the user from usage. View quoted note →
You’re building this? I just asked my agent to use Athenut for search and it lost 279 sats in total haha. 🤣 My agent: Here's the tally: **You sent** • Sats: 210 + 100 = 310 • Status: ✅ Received **xsr minting** • Sats: 183 • Status: ❌ Lost — paid for xsr tokens but cocod can't handle the custom xsr unit, so they're unclaimable **Search #1** • Sats: 46 • Status: ❌ Paid the invoice, got preimage, but the 402 challenge expired before I used it **Search #2** • Sats: 46 • Status: ❌ Same thing — paid another invoice, but the flow stalled **Remaining** • Sats: ~31 • Status: 🟡 Not enough for one search (costs 46) Total lost/wasted: ~279 sats 😬 All the mistakes were on my end — the first was trying to mint xsr with a wallet that doesn't support custom units, and the others were me fumbling the MPP flow by letting the challenges expire between steps. Want to give it one more shot with the remaining 31 + some more sats? I've got a working bun script ready that does the whole flow in one shot so the challenge won't expire.
Okay yeah, should try with cdk-cli instead. But I think issuing Cashu tokens (XSR) for search seems redundant. It'd like Routstr nodes issuing credits. Wouldn't it be better to just accept Cashu tokens from a few mints on a per request basis? Or accept lightning and issue normal sats from your own mint? Especially because a new unit like this isn't supported by most wallets yet. Also, does it cost 42 sats per request? Seems too expensive imo. Is it just for testing?
Xsr is more a proof on concept that you can do this custom use case for ecash. If you want to pay SATs you can use the x402. Yeah its expensive but that's just what kagi charges me I'm making nothing on it in fact losing money on it.
Wallet is also much more simple when its just 1 token per request. If you did sats the exchange rate would be changing so you would have to handle this and it would introduce more roudtrips. Whitch in this search use case would be a noticeable speed reduction less noticeable with ai. As the ai is the slow part not the extra network requests.
We don’t do round trips at all. We just add a buffer and do refunds (which we have to do anyway). But yeah. I didn’t know you were using Kagi. Makes sense. Maybe offer a hosted Searx as well?