Inspiration
AI should be accessible to anyone with Bitcoin no accounts, no API keys, no KYC. In Africa, most people are excluded from AI tools because they lack credit cards or can't pass identity verification. Moutstr fixes that.
What it does
Moutstr is a decentralized AI chat marketplace built on Bitcoin and Nostr. Users deposit Cashu ecash tokens and pay per message sats flow directly to AI model providers via the Routstr protocol. No login, no subscription, no data collection.
- Browse and select from dozens of AI models
- Pay per message using Cashu ecash (Lightning deposits)
- Change tokens returned automatically after each message
- Works on any device, no app install required (PWA)
- Fully open source, self-hostable
How we built it
- React 19 + Vite PWA frontend
- cashu-ts for Cashu ecash token management
- Routstr API for AI model routing and payment
- Dexie (IndexedDB) for local chat and wallet persistence
- Zustand for state management
- Deployed on Vercel
Challenges
The biggest challenge was the Cashu payment flow , specifically handling the X-Cashu change header correctly so users don't lose sats when a model costs more than their balance. We studied the Routstr reference implementation and fixed the token management logic to preserve funds on 402 errors.
Accomplishments that we're proud of
Ability to offer different ai models.
What we learned
AI decentralization is important and we shouldn't lock users to one ai model
What's next
- Nostr identity integration (NIP-07)
- NIP-60 wallet support for cross-device balance sync
- Multi-mint support
- Mobile app wrapper
- npub.cash Lightning address
Log in or sign up for Devpost to join the conversation.