TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/nullclaw/nullclaw/llms.txt
Use this file to discover all available pages before exploring further.
nullclaw gateway command starts the long-running runtime that includes:
- HTTP gateway for webhook endpoints
- All configured channels
- Heartbeat scheduler
- Cron job execution
- Pairing server for authentication
Usage
Options
HTTP port to bind to
What Gets Started
When you runnullclaw gateway, the following components start:
1. HTTP Gateway
Binds to127.0.0.1:3000 (or custom port) and exposes:
/health- Health check endpoint/pair- Pairing code exchange for authentication/webhook- Generic webhook for authenticated messages/whatsapp- WhatsApp webhook/telegram- Telegram webhook (if configured)
2. Configured Channels
All channels with accounts inconfig.json are started:
- Telegram bots (long-polling)
- Discord bots (WebSocket gateway)
- Signal listeners
- Nostr relays
- IRC connections
- And more…
3. Background Services
- Heartbeat: Periodic health checks
- Cron scheduler: Executes scheduled tasks
- Channel managers: Route messages to agent
Configuration
Gateway configuration in~/.nullclaw/config.json:
Pairing
On first startup, the gateway generates a 6-digit pairing code:Webhook Endpoints
POST /webhook
Send messages to the agent:GET /health
Health check (no authentication required):Tunnels
For webhook-based channels (WhatsApp, Telegram webhooks), you need a public URL. Configure a tunnel:Examples
Start Gateway with Telegram
Start Gateway as Background Service
Logs
Gateway logs are written to:- macOS/Linux:
~/.nullclaw/logs/gateway.log - systemd:
journalctl -u nullclaw -f