NostrGator includes Alby Hub, a self-hosted Lightning wallet with full Nostr Wallet Connect (NWC) support. This guide shows you how to set up and integrate Lightning payments with your Nostr experience.
After starting NostrGator, open your browser to:
http://localhost:7012
- Create New Wallet: Click "Create New Wallet"
- Set Password: Choose a strong password (this encrypts your seed)
- Save Seed Phrase: Write down your 12-word seed phrase securely
- Confirm Seed: Verify you've saved it correctly
Choose your Lightning backend:
Option A: Embedded LDK (Recommended for beginners)
- ✅ No external dependencies
- ✅ Automatic channel management
- ✅ Built-in Lightning Service Provider (LSP)
⚠️ Limited to smaller amounts initially
Option B: External Lightning Node
- Connect to your own LND, CLN, or other Lightning node
- Requires existing Lightning infrastructure
- Full control over channels and liquidity
- In Alby Hub: Go to "Apps" → "Nostr Wallet Connect"
- Create Connection: Click "Create New Connection"
- Set Permissions: Choose what the connection can do:
pay_invoice- Send paymentsget_balance- Check balancemake_invoice- Create invoiceslookup_invoice- Check payment status
- Copy Connection String: Save the
nostr+walletconnect://string
Damus (iOS):
- Settings → Wallet → Nostr Wallet Connect
- Paste your NWC connection string
- Test with a small zap
Amethyst (Android):
- Settings → Zaps → Wallet Connect
- Add your NWC connection string
- Enable zaps in posts
Primal (Web/Mobile):
- Settings → Lightning → Connect Wallet
- Choose "Nostr Wallet Connect"
- Enter your connection string
iris.to (Web):
- Settings → Lightning Wallet
- Select "Nostr Wallet Connect"
- Paste connection string
- Generate Invoice: In Alby Hub, click "Receive"
- Set Amount: Enter sats amount
- Share Invoice: Copy the Lightning invoice
- Pay from External: Use another Lightning wallet to pay
- Get Address: Click "Receive" → "On-chain"
- Send Bitcoin: From any Bitcoin wallet
- Auto-Swap: Alby Hub automatically opens Lightning channels
- Configure: Set up your Lightning address (e.g., you@yourdomain.com)
- Receive: Others can send to your Lightning address
- Integration: Works with Nostr profiles and zap addresses
- Automatic: Let Alby Hub manage channels via LSP
- Manual: Open channels to specific nodes
- Liquidity: Monitor inbound/outbound capacity
- Seed Phrase: Your 12-word seed recovers everything
- Channel Backups: Automatically saved to your data directory
- Export Data: Regular backups of wallet state
- Password Protection: Required for all operations
- Connection Limits: Restrict NWC permissions
- Spending Limits: Set maximum amounts per connection
Alby Hub automatically connects to your local NostrGator relays:
- Primary:
ws://localhost:7001(General relay) - Backup:
ws://localhost:7004(Social relay) - DM:
ws://localhost:7002(Private messages)
- Paid Uploads: Charge sats for file uploads
- Premium Features: Lightning-gated content access
- Automatic Payments: Seamless file hosting payments
- Lightning Address: Use your NIP-05 domain for Lightning
- Verification: Link your Lightning address to your Nostr identity
"Wallet not connecting"
- Check Alby Hub is running:
docker ps | grep alby-hub - Verify port 7012 is accessible:
curl http://localhost:7012/api/info - Restart service:
docker restart nostr-alby-hub
"NWC connection failed"
- Regenerate connection string in Alby Hub
- Check permissions are correctly set
- Verify client supports NWC
"Payments failing"
- Check Lightning channel liquidity
- Verify invoice amounts are within limits
- Ensure sufficient balance
# Check Alby Hub logs
docker logs nostr-alby-hub --tail=50
# Check container status
docker inspect nostr-alby-hub
# Restart if needed
docker restart nostr-alby-hub-
Seed Phrase Security
- Store offline in multiple secure locations
- Never share or store digitally
- Test recovery process
-
Password Security
- Use strong, unique password
- Consider password manager
- Enable 2FA if available
-
Connection Management
- Limit NWC permissions to minimum needed
- Regularly review active connections
- Revoke unused connections
-
Amount Limits
- Set reasonable spending limits
- Start with small amounts for testing
- Monitor transaction history
- Alby Hub Documentation: https://guides.getalby.com/
- Lightning Network Basics: https://lightning.network/
- Nostr Wallet Connect Spec: https://nips.nostr.com/47
- NostrGator Support: GitHub Issues and Discussions
Your Lightning wallet is now ready for sovereign Nostr payments! ⚡🚀