Getting Started
Goal: go from zero → first working chat (with sane defaults) as quickly as possible. Recommended path: use the CLI onboarding wizard (clawdbot onboard). It sets up:
- model/auth (OAuth recommended)
- gateway settings
- channels (WhatsApp/Telegram/Discord/…)
- pairing defaults (secure DMs)
- workspace bootstrap + skills
- optional background daemon
agents.defaults.sandbox.mode: "non-main" uses session.mainKey (default "main"),
so group/channel sessions are sandboxed. If you want the main agent to always
run on host, set an explicit per-agent override:
0) Prereqs
- Node
>=22 pnpm(optional; recommended if you build from source)
1) Install the CLI (recommended)
2) Run the onboarding wizard (and install the daemon)
- Local vs Remote gateway
- Auth: OpenAI Code (Codex) subscription (OAuth) or API keys. For Anthropic we recommend an API key;
claude setup-tokenis also supported. - Providers: WhatsApp QR login, Telegram/Discord bot tokens, etc.
- Daemon: background install (launchd/systemd; WSL2 uses systemd)
- Runtime: Node (recommended; required for WhatsApp/Telegram). Bun is not recommended.
- Gateway token: the wizard generates one by default (even on loopback) and stores it in
gateway.auth.token.
Auth: where it lives (important)
-
Recommended Anthropic path: set an API key (wizard can store it for daemon use).
claude setup-tokenis also supported if you want to reuse Claude Code credentials. -
OAuth credentials (legacy import):
~/.clawdbot/credentials/oauth.json -
Auth profiles (OAuth + API keys):
~/.clawdbot/agents/<agentId>/agent/auth-profiles.json
oauth.json to the gateway host.
3) Start the Gateway
If you installed the daemon during onboarding, the Gateway should already be running:http://127.0.0.1:18789/
If a token is configured, paste it into the Control UI settings (stored as connect.params.auth.token).
⚠️ Bun warning (WhatsApp + Telegram): Bun has known issues with these
channels. If you use WhatsApp or Telegram, run the Gateway with Node.
4) Pair + connect your first chat surface
WhatsApp (QR login)
Telegram / Discord / others
The wizard can write tokens/config for you. If you prefer manual config, start with: Telegram DM tip: your first DM returns a pairing code. Approve it (see next step) or the bot won’t respond.5) DM safety (pairing approvals)
Default posture: unknown DMs get a short code and messages are not processed until approved. If your first DM gets no reply, approve the pairing:From source (development)
If you’re hacking on Clawdbot itself, run from source:7) Verify end-to-end
In a new terminal:health shows “no auth configured”, go back to the wizard and set OAuth/key auth — the agent won’t be able to respond without it.
Tip: clawdbot status --all is the best pasteable, read-only debug report.
Health probes: clawdbot health (or clawdbot status --deep) asks the running gateway for a health snapshot.
Next steps (optional, but great)
- macOS menu bar app + voice wake: macOS app
- iOS/Android nodes (Canvas/camera/voice): Nodes
- Remote access (SSH tunnel / Tailscale Serve): Remote access and Tailscale