NpubBot
Paid AI replies on Nostr, settled in Cashu
The problem NpubBot solves
Most AI helpers live inside closed apps. You need an account there, and billing sits with that company.
NpubBot is different. You mention it on Nostr, pay a small Cashu amount in sats, and it answers. If you ask it to look up a webpage, it can pay from its own wallet to do that.
People can use it when they want an AI reply on the open Nostr network, without building a whole new social app, and without giving the bot a free pass to burn compute. Operators get a simple local dashboard to watch payments, sessions, and spends.
Challenges I ran into
Building a bot that sits on Nostr, takes Cashu payments, and also spends sats for tools meant three moving parts that don’t usually live in one app. Early on, mock mode and live mode got tangled. It was hard to demo without real keys, but also easy to pretend something was live when it wasn’t. We fixed that by making mock the default for demos, and making strict live mode refuse to start unless Nostr, Cashu, and the LLM are actually configured.
Payment flow was the other hard bit. An unpaid mention has to park the question, show a quote, and only answer after pay, without spamming someone who messages twice. We added a short cooldown for unpaid mentions and a clear mark-paid path for demos. When the bot fetches a URL, it has to debit its own wallet first. If the balance is too low, it says so instead of calling the tool anyway.
Last hurdle: the dashboard is for the operator only, but it’s tempting to turn it into a full social app. We kept users on Nostr and used the UI just to watch sessions, wallet, and tool spends.
Tracks Applied (3)
Machine Money
Bitshala
Freedom Stack
Bitshala
Cypherpunk
Bitshala
Technologies used
