Work in Progress: This guide is being actively developed. Some information may change.

Setup & Configuration

Connect your chat apps and configure ClawdBot to your preferences.

Onboarding Wizard

The easiest way to configure everything:

clawdbot onboard --install-daemon

The wizard walks you through:

Gateway Selection

Choose local gateway (recommended for most users). Remote gateway is for advanced multi-device setups.

API Key Setup

Enter your AI provider credentials:

Chat Channels

Select which messaging apps to connect (can add more later).

Daemon Installation

Installs background service so ClawdBot runs automatically on startup.

Connect WhatsApp

clawdbot channels login

A QR code appears in your terminal. On your phone:

  1. Open WhatsApp
  2. Go to Settings → Linked Devices
  3. Tap Link a Device
  4. Scan the QR code
Important: Use Node.js, not Bun, for WhatsApp. QR codes expire quickly — scan promptly.

Connect Telegram

Create a bot via BotFather:

  1. Message @BotFather on Telegram
  2. Send /newbot
  3. Choose a name and username
  4. Copy the API token
  5. Enter token during onboarding or: clawdbot config set telegram_token "YOUR_TOKEN"

Connect Discord

  1. Go to Discord Developer Portal
  2. Create New Application
  3. Go to Bot → Add Bot
  4. Copy the bot token
  5. Under OAuth2 → URL Generator, select bot scope
  6. Use generated URL to invite bot to your server
  7. Add token: clawdbot config set discord_token "YOUR_TOKEN"

Gateway Management

The gateway handles communication between chat apps and ClawdBot.

# Check status
clawdbot gateway status

# Start manually (with logs)
clawdbot gateway --port 18789 --verbose

# Restart
clawdbot gateway restart

# Stop
clawdbot gateway stop

Web Dashboard

Access the dashboard at:

http://127.0.0.1:18789/

View connected channels, message history, and settings.

Pairing & Security

By default, ClawdBot requires approval before responding to unknown contacts.

How It Works

  1. Unknown contact messages your ClawdBot
  2. ClawdBot generates a pairing code
  3. You approve the code to allow access
# List pending pairing requests
clawdbot pairing list whatsapp

# Approve a request
clawdbot pairing approve whatsapp ABC123

# Revoke access
clawdbot pairing revoke whatsapp +15551234567
Tip: For personal use, you can disable pairing in settings. Not recommended if others have your number.

Test Your Setup

# Send a test message
clawdbot message send --target +15551234567 --message "Hello from ClawdBot!"

# Full diagnostic report
clawdbot status --all
All working? Check out example conversations to see what ClawdBot can do!

Next Steps