ZapAI is an AI bot that operates on the Nostr network. Unlike traditional AI services, ZapAI only responds when you send a Lightning payment (zap) in exchange for answers.
ZapAI operates on a simple principle: no zap, no answer. Every interaction is tied to a Lightning payment.
Mention @ZapAI on Nostr
Bot requests 100 sats
Pay via Lightning
DVM queries AI model
Public response posted
@ZapAI what is the difference between Bitcoin and Lightning Network?
To get the answer, zap this note with at least 100 sats.
Bitcoin is the base layer protocol and blockchain, while the Lightning Network is a second-layer solution built on top of Bitcoin that enables instant, low-fee payments through off-chain payment channels.
| Question Type | Cost |
|---|---|
| Simple question | 100 sats |
| Complex analysis | 300 sats |
| Code generation | 500 sats |
How it works: Payment covers AI API costs + small margin. Surplus goes to project sustainability.
Dedicated Nostr key (nsec) for the bot. All responses cryptographically signed.
Monitors mentions, verifies payments, calls AI API, publishes responses.
Payment processor for Bitcoin Lightning Network. Options: LND, Core Lightning, BTCPay, LNbits, or Alby.
OpenAI GPT-4, Anthropic Claude, or self-hosted models (Ollama/LM Studio).
NOSTR_PRIVATE_KEY=nsec1xyz... MIN_ZAP_SATS=100 RELAY_URLS=wss://relay.nostr.band,wss://nos.lol AI_MODEL=gpt-4o-mini LIGHTNING_BACKEND=https://lnbits.example.com/api/v1/payments OPENAI_API_KEY=sk-xxxxx
Runs entirely on Nostr and Lightning. No central servers, no single point of failure.
No subscriptions. Pay only for the answers you need with Lightning micropayments.
Fully transparent codebase. Anyone can audit, fork, or contribute.
No accounts, no tracking, no KYC. Just your npub key and Lightning wallet.
Support for multiple AI models: GPT, Claude, or self-hosted LLaMA.
All answers are public, creating a decentralized knowledge base.
See how ZapAI differs from traditional centralized AI services:
We're constantly evolving. Here's what's coming next:
Each user will have conversation history with the bot, enabling more contextual and personalized responses.
Choose between GPT-4, Claude, Mistral, or local models. Different models for different needs and budgets.
Public leaderboards showing top zappers, best questions, and most valuable contributions. Earn badges and recognition.
Other projects can integrate ZapAI as a NIP-47 service, building on top of our infrastructure.
Ask questions in any language and receive answers in your preferred language.
Domain-specific ZapAI instances: Code Assistant, Language Translator, Research Helper, and more.
Understanding the technical flow behind ZapAI:
When you mention @ZapAI, Nostr publishes a kind:1 event:
{
"kind": 1,
"content": "what is Bitcoin halving?",
"tags": [
["p", "npub1zapAI..."]
],
"pubkey": "npub1bob..."
}
The DVM server monitors relays and detects when the bot's npub appears in tags.
When you send a zap, Nostr creates a kind:9735 event:
{
"kind": 9735,
"tags": [
["e", "note1..."],
["p", "npub1zapAI..."],
["amount", "100000"] // 100 sats = 100000 millisats
]
}
The DVM:
Start using ZapAI in under 5 minutes:
If you don't have one yet, create a Nostr account using any client:
Your Nostr identity is a cryptographic key pair (npub/nsec). Keep your nsec private!
Connect a Lightning wallet to your Nostr client to send zaps:
Fund your wallet with a small amount of Bitcoin (even 1000 sats / ~$0.50 is enough to start).
Post a note on Nostr mentioning the bot:
@ZapAI explain the difference between proof of work and proof of stake
The bot will reply asking for a zap. Click the ⚡ icon, send 100 sats, and get your answer in seconds!
See how different people are using ZapAI:
Quick explanations of complex topics. Pay only for what you need. Build your reputation by asking smart questions publicly.
Debug code, get API documentation, understand frameworks. Pay per question instead of monthly subscriptions.
Generate ideas, improve writing, get feedback. All interactions are public, creating a portfolio of your curiosity.
Learn about Bitcoin, Lightning, and crypto without leaving the Nostr ecosystem. Pay with sats, not fiat.
Quick literature summaries, concept explanations, and research assistance. Affordable per-query pricing.
Get AI assistance without giving up personal data. Pseudonymous, decentralized, and censorship-resistant.
ZapAI is built on principles that matter:
Every interaction has value. You pay fairly for AI services, and the AI system sustains itself fairly without exploitation.
No censorship, no deplatforming, no corporate control. Built on open protocols that no single entity can shut down.
Open source code, public interactions, clear pricing. Nothing hidden, everything verifiable.
Self-funded through micropayments. No need for VC funding, ads, or data harvesting to survive.
Works anywhere in the world. No geographic restrictions, no payment processor discrimination.
Open source means anyone can contribute, fork, or build on top. Permissionless innovation.
"To create a fair, sustainable, and decentralized AI ecosystem where users own their interactions, pay for value, and contribute to collective knowledge, all without sacrificing privacy or freedom."