docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
---
2026-01-04 14:32:47 +00:00
summary: "Frequently asked questions about Clawdbot setup, configuration, and usage"
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
---
# FAQ 🦞
2026-01-06 18:59:06 +01:00
Common questions from the community. For detailed configuration, see [Configuration ](https://docs.clawd.bot/configuration ).
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
## Installation & Setup
2026-01-04 14:32:47 +00:00
### Where does Clawdbot store its data?
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
2026-01-04 14:32:47 +00:00
Everything lives under `~/.clawdbot/` :
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
| Path | Purpose |
|------|---------|
2026-01-04 14:32:47 +00:00
| `~/.clawdbot/clawdbot.json` | Main config (JSON5) |
2026-01-05 21:53:37 +01:00
| `~/.clawdbot/credentials/oauth.json` | OAuth credentials (Anthropic/OpenAI, etc.) |
2026-01-06 00:56:29 +00:00
| `~/.clawdbot/agent/auth-profiles.json` | Auth profiles (OAuth + API keys) |
| `~/.clawdbot/agent/auth.json` | Runtime API key cache (managed automatically) |
2026-01-04 14:32:47 +00:00
| `~/.clawdbot/credentials/` | WhatsApp/Telegram auth tokens |
2026-01-06 18:25:52 +00:00
| `~/.clawdbot/agents/` | Per-agent state (agentDir + sessions) |
| `~/.clawdbot/agents/<agentId>/sessions/` | Conversation history & state (per agent) |
| `~/.clawdbot/agents/<agentId>/sessions/sessions.json` | Session metadata (per agent) |
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
Your **workspace** (AGENTS.md, memory files, skills) is separate — configured via `agent.workspace` in your config (default: `~/clawd` ).
2026-01-04 14:32:47 +00:00
### What platforms does Clawdbot run on?
2026-01-02 11:24:41 +00:00
2026-01-02 11:30:27 +00:00
**macOS and Linux** are the primary targets. Anywhere Node.js 22+ runs should work in theory.
- **macOS** — Fully supported, most tested
- **Linux** — Works great, common for VPS/server deployments
- **Windows** — Should work but largely untested! You're in pioneer territory 🤠
2026-01-02 11:24:41 +00:00
Some features are platform-specific:
- **iMessage** — macOS only (uses `imsg` CLI)
2026-01-04 14:32:47 +00:00
- **Clawdbot.app** — macOS native app (optional, gateway works without it)
2026-01-02 11:24:41 +00:00
2026-01-03 06:09:48 +00:00
### What are the minimum system requirements?
**Basically nothing!** The gateway is very lightweight — all heavy compute happens on Anthropic's servers.
- **RAM:** 512MB-1GB is enough (community member runs on 1GB VPS!)
- **CPU:** 1 core is fine for personal use
2026-01-04 14:32:47 +00:00
- **Disk:** ~500MB for Clawdbot + deps, plus space for logs/media
2026-01-03 06:09:48 +00:00
2026-01-05 22:17:14 +01:00
The gateway is just shuffling messages around. A Raspberry Pi 4 can run it. For the CLI, prefer the Node runtime (most stable):
2026-01-03 06:09:48 +00:00
```bash
2026-01-05 22:17:14 +01:00
pnpm clawdbot gateway
2026-01-03 06:09:48 +00:00
```
### How do I install on Linux without Homebrew?
Build CLIs from source! Example for `gogcli` :
```bash
git clone https://github.com/steipete/gogcli.git
cd gogcli
make
sudo mv bin/gog /usr/local/bin/
```
Most of Peter's tools are Go binaries — clone, build, move to PATH. No brew needed.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
### I'm getting "unauthorized" errors on health check
You need a config file. Run the onboarding wizard:
```bash
2026-01-04 14:32:47 +00:00
pnpm clawdbot onboard
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
2026-01-04 14:32:47 +00:00
This creates `~/.clawdbot/clawdbot.json` with your API keys, workspace path, and owner phone number.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
### How do I start fresh?
```bash
# Backup first (optional)
2026-01-04 14:32:47 +00:00
cp -r ~/.clawdbot ~/.clawdbot-backup
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
# Remove config and credentials
2026-01-05 22:24:31 +01:00
trash ~/.clawdbot
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
# Re-run onboarding
2026-01-04 14:32:47 +00:00
pnpm clawdbot onboard
pnpm clawdbot login
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
### Something's broken — how do I diagnose?
Run the doctor:
```bash
2026-01-04 14:32:47 +00:00
pnpm clawdbot doctor
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
It checks your config, skills status, and gateway health. It can also restart the gateway daemon if needed.
2026-01-02 16:04:02 +00:00
### Terminal onboarding vs macOS app?
2026-01-04 14:32:47 +00:00
**Use terminal onboarding** (`pnpm clawdbot onboard` ) — it's more stable right now.
2026-01-02 16:04:02 +00:00
The macOS app onboarding is still being polished and can have quirks (e.g., WhatsApp 515 errors, OAuth issues).
---
## Authentication
### OAuth vs API key — what's the difference?
2026-01-05 06:46:20 +01:00
- **OAuth** — Uses your **subscription** (Anthropic Claude Pro/Max or OpenAI ChatGPT/Codex). No per‑ token charges. ✅ Recommended!
- **API key** — Pay‑ per‑ token via the provider’ s API billing. Can get expensive fast.
2026-01-02 16:04:02 +00:00
They're **separate billing** ! An API key does NOT use your subscription.
2026-01-05 06:46:20 +01:00
**For OAuth:** During onboarding, pick **Anthropic OAuth** or **OpenAI Codex OAuth** , log in, paste the code/URL when prompted. Or just run:
2026-01-03 06:09:48 +00:00
```bash
2026-01-04 14:32:47 +00:00
pnpm clawdbot login
2026-01-03 06:09:48 +00:00
```
2026-01-02 16:04:02 +00:00
2026-01-05 21:53:37 +01:00
**If OAuth fails** (headless/container): Do OAuth on a normal machine, then copy `~/.clawdbot/credentials/oauth.json` to your server. The auth is just a JSON file.
2026-01-02 16:04:02 +00:00
2026-01-05 01:03:01 +01:00
### How are env vars loaded?
CLAWDBOT reads env vars from the parent process (shell, launchd/systemd, CI, etc.). It also loads `.env` files:
- `.env` in the current working directory
- global fallback: `~/.clawdbot/.env` (aka `$CLAWDBOT_STATE_DIR/.env` )
Neither `.env` file overrides existing env vars.
Optional convenience: import missing expected keys from your login shell env (sources your shell profile):
```json5
{
env: { shellEnv: { enabled: true, timeoutMs: 15000 } }
}
```
Or set `CLAWDBOT_LOAD_SHELL_ENV=1` (timeout: `CLAWDBOT_SHELL_ENV_TIMEOUT_MS=15000` ).
2026-01-03 06:09:48 +00:00
### Does enterprise OAuth work?
**Not currently.** Enterprise accounts use SSO which requires a different auth flow that pi-coding-agent doesn't support yet.
**Workaround:** Ask your enterprise admin to provision an API key via the Anthropic console, then use that with `ANTHROPIC_API_KEY` .
2026-01-02 16:04:02 +00:00
### OAuth callback not working (containers/headless)?
OAuth needs the callback to reach the machine running the CLI. Options:
2026-01-05 21:53:37 +01:00
1. **Copy auth manually** — Run OAuth on your laptop, copy `~/.clawdbot/credentials/oauth.json` to the container.
2026-01-02 16:04:02 +00:00
2. **SSH tunnel** — `ssh -L 18789:localhost:18789 user@server`
3. **Tailscale** — Put both machines on your tailnet.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
---
## Migration & Deployment
2026-01-04 14:32:47 +00:00
### How do I migrate Clawdbot to a new machine (or VPS)?
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
1. **Backup on old machine:**
```bash
# Config + credentials + sessions
2026-01-04 14:32:47 +00:00
tar -czvf clawdbot-backup.tar.gz ~/.clawdbot
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
# Your workspace (memories, AGENTS.md, etc.)
tar -czvf workspace-backup.tar.gz ~/path/to/workspace
```
2. **Copy to new machine:**
```bash
2026-01-04 14:32:47 +00:00
scp clawdbot-backup.tar.gz workspace-backup.tar.gz user@new -machine:~/
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
3. **Restore on new machine:**
```bash
cd ~
2026-01-04 14:32:47 +00:00
tar -xzvf clawdbot-backup.tar.gz
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
tar -xzvf workspace-backup.tar.gz
```
2026-01-04 14:32:47 +00:00
4. **Install Clawdbot** (Node 22+, pnpm, clone repo, `pnpm install && pnpm build` )
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
5. **Start gateway:**
```bash
2026-01-04 14:32:47 +00:00
pnpm clawdbot gateway
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
2026-01-04 14:32:47 +00:00
**Note:** WhatsApp may notice the IP change and require re-authentication. If so, run `pnpm clawdbot login` again. Stop the old instance before starting the new one to avoid conflicts.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
2026-01-04 14:32:47 +00:00
### Can I run Clawdbot in Docker?
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
There's no official Docker setup yet, but it works. Key considerations:
- **WhatsApp login:** QR code works in terminal — no display needed.
2026-01-04 14:32:47 +00:00
- **Persistence:** Mount `~/.clawdbot/` and your workspace as volumes.
2026-01-02 16:04:02 +00:00
- **pnpm doesn't persist:** Global npm installs don't survive container restarts. Install pnpm in your startup script.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
- **Browser automation:** Optional. If needed, install headless Chrome + Playwright deps, or connect to a remote browser via `--remote-debugging-port` .
2026-01-02 16:04:02 +00:00
**Volume mappings (e.g., Unraid):**
```
2026-01-04 14:32:47 +00:00
/mnt/user/appdata/clawdbot/config → /root/.clawdbot
/mnt/user/appdata/clawdbot/workspace → /root/clawd
/mnt/user/appdata/clawdbot/app → /app
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
2026-01-02 16:04:02 +00:00
**Startup script (`start.sh` ):**
```bash
#!/bin/bash
npm install -g pnpm
cd /app
2026-01-04 14:32:47 +00:00
pnpm clawdbot gateway
2026-01-02 16:04:02 +00:00
```
**Container command:**
```
bash /app/start.sh
```
Docker support is on the roadmap — PRs welcome!
2026-01-04 14:32:47 +00:00
### Can I run Clawdbot headless on a VPS?
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
Yes! The terminal QR code login works fine over SSH. For long-running operation:
- Use `pm2` , `systemd` , or a `launchd` plist to keep the gateway running.
- Consider Tailscale for secure remote access.
2026-01-02 16:04:02 +00:00
### bun binary vs Node runtime?
2026-01-04 14:32:47 +00:00
Clawdbot can run as:
2026-01-05 22:17:14 +01:00
- **bun binary (macOS app)** — Single executable, easy distribution, auto-restarts via launchd
2026-01-04 14:32:47 +00:00
- **Node runtime** (`pnpm clawdbot gateway` ) — More stable for WhatsApp
2026-01-02 16:04:02 +00:00
If you see WebSocket errors like `ws.WebSocket 'upgrade' event is not implemented` , use Node instead of the bun binary. Bun's WebSocket implementation has edge cases that can break WhatsApp (Baileys).
2026-01-04 14:32:47 +00:00
**For stability:** Use launchd (macOS) or the Clawdbot.app — they handle process supervision (auto-restart on crash).
2026-01-02 16:04:02 +00:00
**For debugging:** Use `pnpm gateway:watch` for live reload during development.
2026-01-02 16:34:27 +00:00
### WhatsApp keeps disconnecting / crashing (macOS app)
This is often the bun WebSocket issue. Workaround:
1. Run gateway with Node instead:
```bash
pnpm gateway:watch
```
2026-01-04 14:32:47 +00:00
2. In **Clawdbot.app → Settings → Debug** , check ** "External gateway"**
2026-01-02 16:34:27 +00:00
3. The app now connects to your Node gateway instead of spawning bun
This is the most stable setup until bun's WebSocket handling improves.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
---
## Multi-Instance & Contexts
### Can I run multiple Clawds (separate instances)?
The intended design is **one Clawd, one identity** . Rather than running separate instances:
- **Add skills** — Give your Clawd multiple capabilities (business + fitness + personal).
- **Use context switching** — "Hey Clawd, let's talk about fitness" within the same conversation.
- **Use groups for separation** — Create Telegram/Discord groups for different contexts; each group gets its own session.
Why? A unified assistant knows your whole context. Your fitness coach knows when you've had a stressful work week.
If you truly need full separation (different users, privacy boundaries), you'd need:
2026-01-04 14:32:47 +00:00
- Separate config + state directories (`CLAWDBOT_CONFIG_PATH` , `CLAWDBOT_STATE_DIR` )
2026-01-03 11:46:58 +01:00
- Separate agent workspaces (`agent.workspace` )
- Separate gateway ports (`gateway.port` / `--port` )
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
- Separate phone numbers for WhatsApp (one number = one account)
### Can I have separate "threads" for different topics?
Currently, sessions are per-chat:
- Each WhatsApp/Telegram DM = one session
- Each group = separate session
**Workaround:** Create multiple groups (even just you + the bot) for different contexts. Each group maintains its own session.
2026-01-04 14:32:47 +00:00
Feature request? Open a [GitHub discussion ](https://github.com/clawdbot/clawdbot/discussions )!
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
### How do groups work?
Groups get separate sessions automatically. By default, the bot requires a **mention** to respond in groups.
Per-group activation can be changed by the owner:
- `/activation mention` — respond only when mentioned (default)
- `/activation always` — respond to all messages
2026-01-06 18:59:06 +01:00
See [Groups ](https://docs.clawd.bot/groups ) for details.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
---
## Context & Memory
2026-01-04 14:32:47 +00:00
### How much context can Clawdbot handle?
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
2026-01-04 14:32:47 +00:00
Claude Opus has a 200k token context window, and Clawdbot uses **autocompaction** — older conversation gets summarized to stay under the limit.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
Practical tips:
- Keep `AGENTS.md` focused, not bloated.
2026-01-06 02:06:06 +01:00
- Use `/compact` to shrink older context or `/new` to reset when it gets stale.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
- For large memory/notes collections, use search tools like `qmd` rather than loading everything.
### Where are my memory files?
In your workspace directory (configured in `agent.workspace` , default `~/clawd` ). Look for:
- `memory/` — daily memory files
- `AGENTS.md` — agent instructions
- `TOOLS.md` — tool-specific notes
Check your config:
```bash
2026-01-04 14:32:47 +00:00
cat ~/.clawdbot/clawdbot.json | grep workspace
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
---
## Platforms
2026-01-04 14:32:47 +00:00
### Which platforms does Clawdbot support?
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
- **WhatsApp** — Primary. Uses WhatsApp Web protocol.
- **Telegram** — Via Bot API (grammY).
- **Discord** — Bot integration.
- **iMessage** — Via `imsg` CLI (macOS only).
2026-01-06 18:59:06 +01:00
- **Signal** — Via `signal-cli` (see [Signal ](https://docs.clawd.bot/signal )).
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
- **WebChat** — Browser-based chat UI.
2026-01-03 06:09:48 +00:00
### Discord: Bot works in channels but not DMs?
Discord has **separate allowlists** for channels vs DMs:
- `discord.guilds.*.users` — controls who can talk in server channels
- `discord.dm.allowFrom` — controls who can DM the bot
If channels work but DMs don't, add `discord.dm.allowFrom` to your config:
```json
{
"discord": {
"dm": {
"enabled": true,
"allowFrom": ["YOUR_DISCORD_USER_ID"]
},
"guilds": {
"your-server": {
"users": ["YOUR_DISCORD_USER_ID"]
}
}
}
}
```
Find your user ID: Discord Settings → Advanced → Developer Mode → right-click yourself → Copy User ID.
2026-01-03 11:43:36 +00:00
### Images/media not being understood by the agent?
If you send an image but your Clawd doesn't "see" it, check these:
**1. Is your model vision-capable?**
Not all models support images! Check `agent.model` in your config:
- ✅ Vision: `claude-opus-4-5` , `claude-sonnet-4-5` , `claude-haiku-4-5` , `gpt-5.2` , `gpt-4o` , `gemini-pro`
- ❌ No vision: Most local LLMs (Llama, Mistral), older models, text-only configs
**2. Is media being downloaded?**
```bash
2026-01-04 14:32:47 +00:00
ls -la ~/.clawdbot/media/inbound/
grep -i "media\|download" /tmp/clawdbot/clawdbot-*.log | tail -20
2026-01-03 11:43:36 +00:00
```
**3. Is `agent.mediaMaxMb` too low?**
Default is 5MB. Large images get resized, but if the limit is set very low, media might be skipped.
**4. Does the agent see `[media attached: ...]` ?**
If this line isn't in the agent's input, the gateway didn't pass the media. Check logs for errors.
**5. For PDFs, audio, video, and exotic files:**
Use the [summarize ](https://summarize.sh ) skill to extract and condense content from files that can't be passed directly to vision.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
### Can I use multiple platforms at once?
2026-01-04 14:32:47 +00:00
Yes! One Clawdbot gateway can connect to WhatsApp, Telegram, Discord, and more simultaneously. Each platform maintains its own sessions.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
### WhatsApp: Can I use two numbers?
One WhatsApp account = one phone number = one gateway connection. For a second number, you'd need a second gateway instance with a separate config directory.
---
2026-01-02 11:50:09 +00:00
## Skills & Tools
### How do I add new skills?
Skills are auto-discovered from your workspace's `skills/` folder. After adding new skills:
1. Send `/reset` (or `/new` ) in chat to start a new session
2. The new skills will be available
No gateway restart needed!
### How do I run commands on other machines?
2026-01-02 16:04:02 +00:00
Use ** [Tailscale ](https://tailscale.com/ )** to create a secure network between your machines:
2026-01-02 11:50:09 +00:00
2026-01-04 14:32:47 +00:00
1. Install Tailscale on all machines (it's separate from Clawdbot — set it up yourself)
2026-01-02 11:50:09 +00:00
2. Each gets a stable IP (like `100.x.x.x` )
3. SSH just works: `ssh user@100.x.x.x "command"`
2026-01-04 14:32:47 +00:00
Clawdbot can use Tailscale when you set `bridge.bind: "tailnet"` in your config — it auto-detects your Tailscale IP.
2026-01-02 16:04:02 +00:00
2026-01-04 14:32:47 +00:00
For deeper integration, look into **Clawdbot nodes** — pair remote machines with your gateway for camera/screen/automation access.
2026-01-02 11:50:09 +00:00
---
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
## Troubleshooting
### Build errors (TypeScript)
If you hit build errors on `main` :
1. Pull latest: `git pull origin main && pnpm install`
2026-01-04 14:32:47 +00:00
2. Try `pnpm clawdbot doctor`
3. Check [GitHub issues ](https://github.com/clawdbot/clawdbot/issues ) or Discord
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
4. Temporary workaround: checkout an older commit
### WhatsApp logged me out
WhatsApp sometimes disconnects on IP changes or after updates. Re-authenticate:
```bash
2026-01-04 14:32:47 +00:00
pnpm clawdbot login
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
Scan the QR code and you're back.
### Gateway won't start
Check logs:
```bash
2026-01-04 14:32:47 +00:00
cat /tmp/clawdbot/clawdbot-$(date +%Y-%m-%d).log
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
```
Common issues:
- Port already in use (change with `--port` )
- Missing API keys in config
- Invalid config syntax (remember it's JSON5, but still check for errors)
2026-01-03 16:53:51 +00:00
- **Tailscale serve + bind conflict:** If using `tailscale.mode: "serve"` , you must set `gateway.bind: "loopback"` (not `"lan"` ). Tailscale serve proxies traffic itself.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
2026-01-02 16:04:02 +00:00
**Debug mode** — use watch for live reload:
```bash
pnpm gateway:watch
```
2026-01-02 11:50:09 +00:00
**Pro tip:** Use Codex to debug:
```bash
2026-01-04 14:32:47 +00:00
cd ~/path/to/clawdbot
codex --full-auto "debug why clawdbot gateway won't start"
2026-01-02 11:50:09 +00:00
```
2026-01-05 18:38:30 +01:00
### Gateway stops after I log out (Linux)
Linux installs use a systemd **user** service. By default, systemd stops user
services on logout/idle, which kills the Gateway.
2026-01-05 21:19:49 +00:00
Onboarding attempts to enable lingering; if it’ s still off, run:
2026-01-05 18:38:30 +01:00
```bash
sudo loginctl enable-linger $USER
```
**macOS/Windows**
Gateway daemons run in the user session by default. Keep the user logged in.
Headless/system services are not configured out of the box.
2026-01-04 20:10:20 +03:00
### Processes keep restarting after I kill them
2026-01-02 11:50:09 +00:00
2026-01-04 20:10:20 +03:00
The gateway runs under a supervisor that auto-restarts it. You need to stop the supervisor, not just kill the process.
**macOS (launchd)**
```bash
# Check if running
launchctl list | grep clawdbot
2026-01-06 03:25:21 +01:00
# Stop (disable does NOT stop a running job)
clawdbot gateway stop
2026-01-04 20:10:20 +03:00
# Stop and disable
launchctl disable gui/$UID/com.clawdbot.gateway
launchctl bootout gui/$UID/com.clawdbot.gateway
# Re-enable later
launchctl enable gui/$UID/com.clawdbot.gateway
launchctl bootstrap gui/$UID ~/Library/LaunchAgents/com.clawdbot.gateway.plist
2026-01-06 03:25:21 +01:00
# Or just restart
clawdbot gateway restart
2026-01-04 20:10:20 +03:00
```
**Linux (systemd)**
2026-01-02 11:50:09 +00:00
```bash
2026-01-04 20:10:20 +03:00
# Check if running
2026-01-04 14:32:47 +00:00
systemctl list-units | grep -i clawdbot
2026-01-02 11:50:09 +00:00
2026-01-04 20:10:20 +03:00
# Stop and disable
2026-01-06 03:25:21 +01:00
clawdbot gateway stop
systemctl --user disable --now clawdbot-gateway.service
# Or just restart
clawdbot gateway restart
2026-01-02 11:50:09 +00:00
```
2026-01-04 20:10:20 +03:00
**pm2 (if used)**
```bash
pm2 list
pm2 delete clawdbot
```
2026-01-02 11:50:09 +00:00
### Clean uninstall (start fresh)
```bash
2026-01-04 20:10:20 +03:00
# macOS: stop launchd service
launchctl disable gui/$UID/com.clawdbot.gateway
launchctl bootout gui/$UID/com.clawdbot.gateway 2>/dev/null
# Linux: stop systemd service
sudo systemctl disable --now clawdbot
2026-01-02 11:50:09 +00:00
2026-01-04 20:10:20 +03:00
# Kill any remaining processes
pkill -f "clawdbot"
2026-01-02 11:50:09 +00:00
# Remove data
2026-01-05 22:24:31 +01:00
trash ~/.clawdbot
2026-01-02 11:50:09 +00:00
2026-01-06 19:50:06 +01:00
# Remove repo and re-clone (adjust path if you cloned elsewhere)
trash ~/Projects/clawdbot
git clone https://github.com/clawdbot/clawdbot.git ~/Projects/clawdbot
cd ~/Projects/clawdbot & & pnpm install & & pnpm build
2026-01-04 14:32:47 +00:00
pnpm clawdbot onboard
2026-01-02 11:50:09 +00:00
```
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
---
## Chat Commands
Quick reference (send these in chat):
| Command | Action |
|---------|--------|
| `/status` | Health + session info |
| `/new` or `/reset` | Reset the session |
2026-01-06 02:06:06 +01:00
| `/compact` | Compact session context |
Slash commands are owner-only (gated by `whatsapp.allowFrom` and command authorization on other surfaces).
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
| `/think <level>` | Set thinking level (off\|minimal\|low\|medium\|high) |
| `/verbose on\|off` | Toggle verbose mode |
2026-01-04 05:15:42 +00:00
| `/elevated on\|off` | Toggle elevated bash mode (approved senders only) |
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
| `/activation mention\|always` | Group activation (owner-only) |
2026-01-03 06:09:48 +00:00
| `/model <name>` | Switch AI model (see below) |
| `/queue instant\|batch\|serial` | Message queuing mode |
### How do I switch models on the fly?
Use `/model` to switch without restarting:
```
/model sonnet
/model haiku
/model opus
2026-01-05 01:02:30 +01:00
/model gpt
/model gpt-mini
/model gemini
/model gemini-flash
2026-01-03 06:09:48 +00:00
```
2026-01-05 14:11:33 +00:00
List available models with `/model` , `/model list` , or `/model status` .
2026-01-05 01:02:30 +01:00
Clawdbot ships a few default model shorthands (you can override them in config):
`opus` , `sonnet` , `gpt` , `gpt-mini` , `gemini` , `gemini-flash` .
2026-01-06 00:56:29 +00:00
**Setup:** Configure models and aliases in `clawdbot.json` :
2026-01-03 06:09:48 +00:00
```json
{
"agent": {
2026-01-06 00:56:29 +00:00
"model": { "primary": "anthropic/claude-opus-4-5" },
"models": {
"anthropic/claude-opus-4-5": { "alias": "opus" },
"anthropic/claude-sonnet-4-5": { "alias": "sonnet" },
"anthropic/claude-haiku-4-5": { "alias": "haiku" }
2026-01-03 06:09:48 +00:00
}
}
}
```
**Tip:** `/model` is processed at the gateway level — it works even if you're rate-limited (429) on the current model!
2026-01-03 19:14:05 +00:00
### Alternative providers (OpenRouter, Z.AI)?
If you don't want to use Anthropic directly, you can use alternative providers:
**OpenRouter** (pay-per-token, many models):
```json5
{
agent: {
2026-01-06 00:56:29 +00:00
model: { primary: "openrouter/anthropic/claude-sonnet-4" },
models: { "openrouter/anthropic/claude-sonnet-4": {} },
2026-01-03 19:14:05 +00:00
env: { OPENROUTER_API_KEY: "sk-or-..." }
}
}
```
**Z.AI** (flat-rate plans, GLM models):
```json5
{
agent: {
2026-01-06 00:56:29 +00:00
model: { primary: "zai/glm-4.7" },
models: { "zai/glm-4.7": {} },
2026-01-03 19:14:05 +00:00
env: { ZAI_API_KEY: "..." }
}
}
```
**Important:** Always use the latest Claude models (4.5 series). Don't use older 3.x models — they're deprecated and less capable. Check [OpenRouter models ](https://openrouter.ai/models?q=claude ) for exact IDs.
2026-01-03 16:53:51 +00:00
### Model + thinking mode issues?
Some models don't support extended thinking well:
- **Gemini Flash + thinking:** Can cause "Corrupted thought signature" errors. Fix: `/think off`
- **Claude Opus + thinking off:** Opus may "think out loud" anyway. Better to use `/think low` than `off` .
- **Local LLMs:** Most don't support the thinking/reasoning separation. Set `reasoning: false` in your model config.
If you get weird errors after switching models, try `/think off` and `/new` to reset.
2026-01-03 14:08:19 +00:00
### How do I stop/cancel a running task?
Send `/stop` to immediately abort the current agent run. Other stop words also work:
- `/stop`
- `/abort`
- `/esc`
- `/exit`
For background processes (like Codex), use:
```
process action:kill sessionId:XXX
```
You can also configure `routing.queue.mode` to control how new messages interact with running tasks:
- `steer` — New messages redirect the current task
- `interrupt` — Kills current run, starts fresh
- `collect` — Queues messages for after
### Does Codex CLI use my ChatGPT Pro subscription or API credits?
**Both are supported!** Codex CLI can auth via:
2026-01-03 14:13:18 +00:00
1. **Browser/Device OAuth** → Uses your ChatGPT Pro/Plus subscription (no per-token cost)
2026-01-03 14:08:19 +00:00
```bash
2026-01-03 14:13:18 +00:00
codex login --device-auth
2026-01-03 14:08:19 +00:00
# Opens browser, log in with your ChatGPT account
```
2. **API key** → Pay-per-token via OpenAI API billing
```bash
export OPENAI_API_KEY="sk-..."
```
If you have a ChatGPT subscription, use browser auth to avoid API charges!
2026-01-03 06:09:48 +00:00
### How do rapid-fire messages work?
Use `/queue` to control how messages sent in quick succession are handled:
- **`/queue instant` ** — New messages interrupt/steer the current response
- **`/queue batch` ** — Messages queue up, processed after current turn
- **`/queue serial` ** — One at a time, in order
If you tend to send multiple short messages, `/queue instant` feels most natural.
docs: add FAQ with common questions from Discord
Covers:
- Installation & setup (data locations, unauthorized errors, fresh start, doctor)
- Migration & deployment (new machine, VPS, Docker)
- Multi-instance & contexts (one Clawd philosophy, groups for separation)
- Context & memory (200k tokens, autocompaction, workspace location)
- Platforms (supported platforms, multi-platform, WhatsApp numbers)
- Troubleshooting (build errors, WhatsApp logout, gateway issues)
- Chat commands reference
Based on community questions from #help channel.
🦞
2026-01-02 11:22:05 +00:00
---
2026-01-04 14:32:47 +00:00
*Still stuck? Ask in [Discord ](https://discord.gg/qkhbAGHRBT ) or open a [GitHub discussion ](https://github.com/clawdbot/clawdbot/discussions ).* 🦞