Build and run WhatsApp bots on decentralized infrastructure. No cloud. No monthly fees. Your device, your bot, your business.
Hive is a framework that lets anyone create a WhatsApp-based business β ordering systems, customer service, booking, vouchers β and host it on their own device via Reality Network. Zero cloud costs. Works on a laptop or phone.
β Full Reality Network integration validated February 6, 2026 β See test results
π Start here: FOR_BUILDERS.md
Use the interactive wizard:
./hive wizard my-business
# Answer 4 questions, your config is ready
./hive run my-business/
# Scan QR, bot is live# Use a template
./hive init --template food-delivery my-bot
# Or start from scratch
./hive init my-bot
# Edit your config
nano my-bot/config.yaml
# Run it
./hive run my-bot/See all templates:
./hive templatesHive includes 8 pre-built templates for common businesses:
- food-delivery β Restaurants, street food, home kitchens
- salon-booking β Hair salons, barbers, spas
- event-tickets β Concerts, workshops, classes
- tutoring β Private lessons, test prep
- voucher-store β Gift cards, loyalty programs
- community-store β Co-ops, farmer's markets
- customer-support β Help desk, ticket system
- real-estate β Property listings, viewings
See all templates:
./hive templatesUse a template:
./hive init --template food-delivery my-restaurantEach template includes pre-filled menu items, messages, and settings β just customize and go.
- Config-driven β define your bot in YAML, no coding required
- Menu & ordering β built-in support for product catalogs and order flows
- Vouchers β create and redeem voucher codes
- M-Pesa payments π°πͺ β STK Push, webhooks, admin notifications, reconciliation, B2C refunds (guide | advanced)
- Admin notifications β owner gets order alerts via WhatsApp
- Web dashboard β manage menu, orders, and analytics from a browser
- Decentralized hosting β runs on Reality Network, powered by your community
- Single binary β no Docker, no npm, no JVM. Just download and run.
Your Device (laptop/phone)
βββ WhatsApp Connection (whatsapp-rust)
βββ Bot Engine (message routing, conversation state)
βββ Plugin System (YAML config + handlers)
βββ Web Dashboard (local admin panel)
βββ SQLite (sessions, orders, menu)
βββ Reality Network Node (rApp integration)
Hive automatically submits state snapshots to Reality Network's L0 layer as a state channel. Every order, voucher redemption, and status change is captured and submitted on-chain.
Test Cluster:
- 3-node L0 + 3-node L1 consensus cluster
- Isolated test network (localhost:7000)
Full End-to-End Flow:
WhatsApp Message β Hive Bot β Order Created β State Changed
β Snapshot Captured β MessagePack Serialization β L0 Submission
β Accepted by Cluster β Ordinal Incremented
Logs from Live Test:
[2026-02-06T12:16:30Z INFO hive::bot] π¨ Message from 14152657184@s.whatsapp.net: 3
[2026-02-06T12:16:30Z INFO hive::network::service] πΈ Capturing state: 1 orders, 0 delivered
[2026-02-06T12:16:30Z INFO hive::network::client] Submitting state channel snapshot to http://localhost:7000/state-channels/NET4nFnmFxhdtG9kSR9LXxff35cgTHv6hW8pvzPx/snapshot
[2026-02-06T12:16:30Z INFO hive::network::client] β
State channel snapshot accepted by L0
[2026-02-06T12:16:30Z INFO hive::network::service] β
Snapshot submitted to Reality Network
[2026-02-06T12:16:51Z INFO hive::handlers::order] π¦ New order #2 from 14152657184@s.whatsapp.net β USD13.00
[2026-02-06T12:16:51Z INFO hive::network::service] πΈ Capturing state: 2 orders, 0 delivered
[2026-02-06T12:16:51Z INFO hive::network::client] β
State channel snapshot accepted by L0
[2026-02-06T12:16:51Z INFO hive::network::service] β
Snapshot submitted to Reality Network
Network Response:
- 3 snapshots submitted
- All accepted by L0 consensus layer
- Ordinal progression: 12 β 30 (18 snapshots processed)
- Node identity:
NET4nFnmFxhdtG9kSR9LXxff35cgTHv6hW8pvzPx
Database Verification:
$ sqlite3 data/hive.db "SELECT id, customer_phone, total, status FROM orders;"
2|14152657184@s.whatsapp.net|13.0|confirmed
1|+254700111222|27.0|pending- Identity Generation: Hive creates a secp256k1 keypair on first run (
data/identity.json) - State Capture: Every message/order triggers snapshot generation
- Serialization: State is encoded using MessagePack
- Signing: Snapshot is cryptographically signed
- Submission: HTTP POST to L0 node
/state-channels/{address}/snapshot - Consensus: L0 cluster validates and incorporates into global snapshot
- Finality: Snapshot ordinal increments, state is on-chain
See: docs/REALITY_INTEGRATION.md for technical details.
- For Builders (Non-Technical) β Start here if you're new
- Builder's Guide β Full walkthrough with examples, tips, FAQ
- Video Tutorial β 5-minute screencast (production script)
- Quickstart β Minimal setup guide
- Reality Network Integration β Technical deep-dive
- Multi-Language Support β i18n configuration
# Build from source
cargo build --release
# Run tests
cargo test
# Build with Reality Network support (default)
cargo build --release --features network- WhatsApp integration (QR pairing)
- Menu & ordering system
- Voucher system
- Web dashboard
- Multi-language support (7 languages)
- Reality Network integration
- MessagePack state serialization
- 8 business templates
Target: 10,000 businesses in 6 months
Focus: Africa (Kenya, Nigeria, South Africa)
Profile: Solo entrepreneurs, <100 orders/day
Value: $0/month, 5-min setup, on-chain proof
- Enhanced analytics & reporting (export CSV, daily summaries)
- SMS fallback (Twilio integration, pay-per-use)
- Payment gateway integrations (M-Pesa)
- M-Pesa support (Kenya) β STK Push integration
- Backup/failover service (Reality nodes offer for $NET)
- Voice message support
- Delivery tracking integration
- Multi-device dashboard improvements
Target: Extend "works well" range to 500 orders/day
When: First 100 businesses hit scale constraints
- WhatsApp Business API support (premium tier)
- Multi-agent routing (support teams)
- Template messages (pre-approved broadcasts)
- Queue management (ticket assignment)
- Shift handoff (24/7 operations)
- Enterprise analytics
Target: SMEs doing $10k+/month revenue
When: 10+ customers request (and can afford $49/month tier)
See SCALING_ANALYSIS.md for detailed breakdown of where current model works (70-80% of SMEs) and where Business API is needed (multi-agent teams, 24/7 operations).
See CONTRIBUTING.md
MIT β see LICENSE
Built on top of:
- whatsapp-rust β WhatsApp Web protocol
- Reality Network β Decentralized compute platform
- Discord: discord.gg/realitynetwork
- Twitter: @RealityNetw0rk
- Issues: GitHub Issues
Reality Network Ventures β First portfolio proof-of-concept
Target: African entrepreneurs, zero cloud costs, 5-minute setup