2025-12-09 17:51:05 +00:00
---
2026-01-04 14:32:47 +00:00
summary: "Top-level overview of Clawdbot, features, and purpose"
2025-12-09 17:51:05 +00:00
read_when:
2026-01-04 14:32:47 +00:00
- Introducing Clawdbot to newcomers
2025-12-09 17:51:05 +00:00
---
2026-01-04 14:32:47 +00:00
# CLAWDBOT 🦞
2025-12-03 15:45:32 +00:00
> *"EXFOLIATE! EXFOLIATE!"* — A space lobster, probably
2025-12-13 13:25:49 +00:00
< p align = "center" >
2026-01-04 18:04:23 +00:00
< img src = "whatsapp-clawd.jpg" alt = "CLAWDBOT" width = "420" / >
2025-12-13 13:25:49 +00:00
< / p >
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
< p align = "center" >
2026-01-05 06:35:43 +01:00
< strong > Any OS + WhatsApp/Telegram/Discord/iMessage gateway for AI agents (Pi).< / strong > < br / >
2025-12-13 13:25:49 +00:00
Send a message, get an agent response — from your pocket.
< / p >
2025-12-05 17:51:11 +00:00
2025-12-13 13:25:49 +00:00
< p align = "center" >
2026-01-04 14:32:47 +00:00
< a href = "https://github.com/clawdbot/clawdbot" > GitHub< / a > ·
< a href = "https://github.com/clawdbot/clawdbot/releases" > Releases< / a > ·
2026-01-07 00:41:31 +01:00
< a href = "https://docs.clawd.bot" > Docs< / a > ·
2026-01-08 23:25:45 +01:00
< a href = "https://docs.clawd.bot/start/clawd" > Clawdbot assistant setup< / a >
2025-12-13 13:25:49 +00:00
< / p >
2025-12-03 15:45:32 +00:00
2026-01-04 14:32:47 +00:00
CLAWDBOT bridges WhatsApp (via WhatsApp Web / Baileys), Telegram (Bot API / grammY), Discord (Bot API / discord.js), and iMessage (imsg CLI) to coding agents like [Pi ](https://github.com/badlogic/pi-mono ).
2026-01-08 23:25:45 +01:00
Clawdbot also powers [Clawd ](https://clawd.me ), the space‑ lobster assistant.
2025-12-13 13:25:49 +00:00
2026-01-06 19:56:22 +00:00
## Start here
2026-01-07 00:41:31 +01:00
- **New install from zero:** https://docs.clawd.bot/start/getting-started
- **Guided setup (recommended):** https://docs.clawd.bot/start/wizard (`clawdbot onboard` )
- **Open the dashboard (local Gateway):** http://127.0.0.1:18789/ (or http://localhost:18789/)
If the Gateway is running on the same computer, that link opens the browser Control UI
immediately. If it fails, start the Gateway first: `clawdbot gateway` .
## Dashboard (browser Control UI)
The dashboard is the browser Control UI for chat, config, nodes, sessions, and more.
Local default: http://127.0.0.1:18789/
Remote access: https://docs.clawd.bot/web and https://docs.clawd.bot/gateway/tailscale
2026-01-06 19:56:22 +00:00
2025-12-13 13:25:49 +00:00
## How it works
2025-12-03 15:45:32 +00:00
```
2025-12-15 10:11:18 -06:00
WhatsApp / Telegram / Discord
2025-12-14 00:50:41 +00:00
│
▼
2026-01-06 19:56:22 +00:00
┌───────────────────────────┐
2025-12-14 00:50:41 +00:00
│ Gateway │ ws://127.0.0.1:18789 (loopback-only)
2025-12-18 13:18:33 +01:00
│ (single source) │ tcp://0.0.0.0:18790 (Bridge)
2026-01-06 19:56:22 +00:00
│ │ http://< gateway-host > :18793
│ │ /__clawdbot__/canvas/ (Canvas host)
2025-12-14 00:50:41 +00:00
└───────────┬───────────────┘
│
├─ Pi agent (RPC)
2026-01-04 14:32:47 +00:00
├─ CLI (clawdbot …)
2025-12-17 23:05:28 +01:00
├─ Chat UI (SwiftUI)
2026-01-04 14:32:47 +00:00
├─ macOS app (Clawdbot.app)
2026-01-05 21:30:19 +01:00
├─ iOS node via Bridge + pairing
└─ Android node via Bridge + pairing
2025-12-03 15:45:32 +00:00
```
2026-01-04 14:32:47 +00:00
Most operations flow through the **Gateway** (`clawdbot gateway` ), a single long-running process that owns provider connections and the WebSocket control plane.
2025-12-13 13:25:49 +00:00
2025-12-14 00:50:41 +00:00
## Network model
- **One Gateway per host**: it is the only process allowed to own the WhatsApp Web session.
2025-12-18 22:40:46 +00:00
- **Loopback-first**: Gateway WS defaults to `ws://127.0.0.1:18789` .
2026-01-04 14:32:47 +00:00
- For Tailnet access, run `clawdbot gateway --bind tailnet --token ...` (token is required for non-loopback binds).
2025-12-14 00:50:41 +00:00
- **Bridge for nodes**: optional LAN/tailnet-facing bridge on `tcp://0.0.0.0:18790` for paired nodes (Bonjour-discoverable).
2026-01-07 00:41:31 +01:00
- **Canvas host**: HTTP file server on `canvasHost.port` (default `18793` ), serving `/__clawdbot__/canvas/` for node WebViews; see [`docs/configuration.md` ](https://docs.clawd.bot/gateway/configuration ) (`canvasHost` ).
- **Remote use**: SSH tunnel or tailnet/VPN; see [`docs/remote.md` ](https://docs.clawd.bot/gateway/remote ) and [`docs/discovery.md` ](https://docs.clawd.bot/gateway/discovery ).
2025-12-14 00:50:41 +00:00
2025-12-13 13:25:49 +00:00
## Features (high level)
2025-12-03 15:45:32 +00:00
- 📱 **WhatsApp Integration** — Uses Baileys for WhatsApp Web protocol
2025-12-13 13:25:49 +00:00
- ✈️ **Telegram Bot** — DMs + groups via grammY
2025-12-15 10:11:18 -06:00
- 🎮 **Discord Bot** — DMs + guild channels via discord.js
2026-01-02 01:19:22 +01:00
- 💬 **iMessage** — Local imsg CLI integration (macOS)
2025-12-13 13:25:49 +00:00
- 🤖 **Agent bridge** — Pi (RPC mode) with tool streaming
2026-01-07 17:15:53 +01:00
- ⏱️ **Streaming + chunking** — Block streaming + Telegram draft streaming details ([/concepts/streaming ](/concepts/streaming ))
2026-01-06 18:25:52 +00:00
- 🧠 **Multi-agent routing** — Route provider accounts/peers to isolated agents (workspace + per-agent sessions)
2026-01-05 06:35:43 +01:00
- 🔐 **Subscription auth** — Anthropic (Claude Pro/Max) + OpenAI (ChatGPT/Codex) via OAuth
2025-12-14 00:50:41 +00:00
- 💬 **Sessions** — Direct chats collapse into shared `main` (default); groups are isolated
2025-12-22 20:36:34 +01:00
- 👥 **Group Chat Support** — Mention-based by default; owner can toggle `/activation always|mention`
2025-12-03 15:45:32 +00:00
- 📎 **Media Support** — Send and receive images, audio, documents
2025-12-13 13:25:49 +00:00
- 🎤 **Voice notes** — Optional transcription hook
2025-12-14 00:50:41 +00:00
- 🖥️ **WebChat + macOS app** — Local UI + menu bar companion for ops and voice wake
2025-12-18 13:18:33 +01:00
- 📱 **iOS node** — Pairs as a node and exposes a Canvas surface
2026-01-05 21:30:19 +01:00
- 📱 **Android node** — Pairs as a node and exposes Canvas + Chat + Camera
2025-12-13 13:25:49 +00:00
Note: legacy Claude/Codex/Gemini/Opencode paths have been removed; Pi is the only coding-agent path.
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
## Quick start
2025-12-05 17:50:02 +00:00
2025-12-13 13:25:49 +00:00
Runtime requirement: **Node ≥ 22** .
```bash
2026-01-08 09:59:10 +01:00
# Recommended: global install (npm/pnpm)
2026-01-08 10:07:13 +01:00
npm install -g clawdbot@latest
# or: pnpm add -g clawdbot@latest
2026-01-08 09:59:10 +01:00
# Onboard + install the daemon (launchd/systemd user service)
clawdbot onboard --install-daemon
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
# Pair WhatsApp Web (shows QR)
2026-01-08 07:40:08 +01:00
clawdbot providers login
2025-12-03 15:45:32 +00:00
2026-01-08 09:59:10 +01:00
# Gateway runs via daemon after onboarding; manual run is still possible:
2026-01-04 14:32:47 +00:00
clawdbot gateway --port 18789
2025-12-13 13:25:49 +00:00
```
2025-12-03 15:45:32 +00:00
2026-01-08 09:59:10 +01:00
From source (development):
```bash
git clone https://github.com/clawdbot/clawdbot.git
cd clawdbot
pnpm install
pnpm ui:install
pnpm ui:build
pnpm build
pnpm clawdbot onboard --install-daemon
```
2026-01-03 11:46:58 +01:00
Multi-instance quickstart (optional):
```bash
2026-01-04 14:32:47 +00:00
CLAWDBOT_CONFIG_PATH=~/.clawdbot/a.json \
CLAWDBOT_STATE_DIR=~/.clawdbot-a \
clawdbot gateway --port 19001
2026-01-03 11:46:58 +01:00
```
2025-12-13 13:25:49 +00:00
Send a test message (requires a running Gateway):
2025-12-03 15:45:32 +00:00
```bash
2026-01-04 14:32:47 +00:00
clawdbot send --to +15555550123 --message "Hello from CLAWDBOT"
2025-12-13 13:25:49 +00:00
```
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
## Configuration (optional)
2025-12-03 15:45:32 +00:00
2026-01-04 14:32:47 +00:00
Config lives at `~/.clawdbot/clawdbot.json` .
2025-12-03 15:45:32 +00:00
2026-01-04 14:32:47 +00:00
- If you **do nothing** , CLAWDBOT uses the bundled Pi binary in RPC mode with per-sender sessions.
2026-01-02 12:59:47 +01:00
- If you want to lock it down, start with `whatsapp.allowFrom` and (for groups) mention rules.
2025-12-13 13:25:49 +00:00
Example:
```json5
{
2026-01-02 22:23:00 +01:00
whatsapp: {
allowFrom: ["+15555550123"],
groups: { "*": { requireMention: true } }
},
routing: { groupChat: { mentionPatterns: ["@clawd "] } }
2025-12-13 13:25:49 +00:00
}
2025-12-03 15:45:32 +00:00
```
2025-12-13 13:25:49 +00:00
## Docs
2025-12-03 15:45:32 +00:00
2025-12-14 00:50:41 +00:00
- Start here:
2026-01-07 00:41:31 +01:00
- [Docs hubs (all pages linked) ](https://docs.clawd.bot/start/hubs )
- [FAQ ](https://docs.clawd.bot/start/faq ) ← *common questions answered*
- [Configuration ](https://docs.clawd.bot/gateway/configuration )
2026-01-05 22:22:15 -08:00
- [Configuration examples ](https://docs.clawd.bot/gateway/configuration-examples )
2026-01-07 00:41:31 +01:00
- [Slash commands ](https://docs.clawd.bot/tools/slash-commands )
- [Multi-agent routing ](https://docs.clawd.bot/concepts/multi-agent )
- [Updating / rollback ](https://docs.clawd.bot/install/updating )
- [Pairing (DM + nodes) ](https://docs.clawd.bot/start/pairing )
- [Nix mode ](https://docs.clawd.bot/install/nix )
2026-01-08 23:25:45 +01:00
- [Clawdbot assistant setup (Clawd) ](https://docs.clawd.bot/start/clawd )
2026-01-07 00:41:31 +01:00
- [Skills ](https://docs.clawd.bot/tools/skills )
- [Skills config ](https://docs.clawd.bot/tools/skills-config )
- [Workspace templates ](https://docs.clawd.bot/reference/templates/AGENTS )
- [RPC adapters ](https://docs.clawd.bot/reference/rpc )
- [Gateway runbook ](https://docs.clawd.bot/gateway )
- [Nodes (iOS/Android) ](https://docs.clawd.bot/nodes )
- [Web surfaces (Control UI) ](https://docs.clawd.bot/web )
- [Discovery + transports ](https://docs.clawd.bot/gateway/discovery )
- [Remote access ](https://docs.clawd.bot/gateway/remote )
2025-12-14 00:50:41 +00:00
- Providers and UX:
2026-01-07 00:41:31 +01:00
- [WebChat ](https://docs.clawd.bot/web/webchat )
- [Control UI (browser) ](https://docs.clawd.bot/web/control-ui )
- [Telegram ](https://docs.clawd.bot/providers/telegram )
- [Discord ](https://docs.clawd.bot/providers/discord )
- [iMessage ](https://docs.clawd.bot/providers/imessage )
- [Groups ](https://docs.clawd.bot/concepts/groups )
- [WhatsApp group messages ](https://docs.clawd.bot/concepts/group-messages )
- [Media: images ](https://docs.clawd.bot/nodes/images )
- [Media: audio ](https://docs.clawd.bot/nodes/audio )
2026-01-05 20:59:54 +01:00
- Companion apps:
2026-01-07 00:41:31 +01:00
- [macOS app ](https://docs.clawd.bot/platforms/macos )
- [iOS app ](https://docs.clawd.bot/platforms/ios )
- [Android app ](https://docs.clawd.bot/platforms/android )
2026-01-07 01:21:36 +01:00
- [Windows (WSL2) ](https://docs.clawd.bot/platforms/windows )
2026-01-07 00:41:31 +01:00
- [Linux app ](https://docs.clawd.bot/platforms/linux )
2025-12-14 00:50:41 +00:00
- Ops and safety:
2026-01-07 00:41:31 +01:00
- [Sessions ](https://docs.clawd.bot/concepts/session )
- [Cron jobs ](https://docs.clawd.bot/automation/cron-jobs )
- [Webhooks ](https://docs.clawd.bot/automation/webhook )
- [Gmail hooks (Pub/Sub) ](https://docs.clawd.bot/automation/gmail-pubsub )
- [Security ](https://docs.clawd.bot/gateway/security )
- [Troubleshooting ](https://docs.clawd.bot/gateway/troubleshooting )
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
## The name
2025-12-03 15:45:32 +00:00
2026-01-04 14:32:47 +00:00
**CLAWDBOT = CLAW + TARDIS** — because every space lobster needs a time-and-space machine.
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
---
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
*"We're all just playing with our own prompts."* — an AI, probably high on tokens
2025-12-03 15:45:32 +00:00
## Credits
- **Peter Steinberger** ([@steipete ](https://twitter.com/steipete )) — Creator, lobster whisperer
2025-12-13 13:25:49 +00:00
- **Mario Zechner** ([@badlogicc ](https://twitter.com/badlogicgames )) — Pi creator, security pen-tester
2025-12-03 15:45:32 +00:00
- **Clawd** — The space lobster who demanded a better name
2026-01-03 18:05:46 +00:00
## Core Contributors
- **Maxim Vovshin** (@Hyaxia , 36747317+Hyaxia@users .noreply.github.com) — Blogwatcher skill
2026-01-06 06:30:12 +01:00
- **Nacho Iacovino** (@nachoiacovino , nacho.iacovino@gmail .com) — Location parsing (Telegram + WhatsApp)
2026-01-03 18:05:46 +00:00
2025-12-03 15:45:32 +00:00
## License
MIT — Free as a lobster in the ocean 🦞
---
*"We're all just playing with our own prompts."* — An AI, probably high on tokens