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-06 18:59:06 +01:00
< a href = "https://docs.clawd.bot" > Docs< / a > ·
< a href = "https://docs.clawd.bot/clawd" > Clawd 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 ).
2025-12-13 13:25:49 +00:00
It’ s built for [Clawd ](https://clawd.me ), a space lobster who needed a TARDIS.
## 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
│
▼
┌──────────────────────────┐
│ 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-04 14:32:47 +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-06 18:59:06 +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/configuration ) (`canvasHost` ).
- **Remote use**: SSH tunnel or tailnet/VPN; see [`docs/remote.md` ](https://docs.clawd.bot/remote ) and [`docs/discovery.md` ](https://docs.clawd.bot/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-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
2025-12-14 00:50:41 +00:00
# From source (recommended while the npm package is still settling)
pnpm install
pnpm build
pnpm link --global
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
# Pair WhatsApp Web (shows QR)
2026-01-04 14:32:47 +00:00
clawdbot login
2025-12-03 15:45:32 +00:00
2025-12-13 13:25:49 +00:00
# Run the Gateway (leave running)
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-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-06 18:59:06 +01:00
- [Docs hubs (all pages linked) ](https://docs.clawd.bot/hubs )
- [FAQ ](https://docs.clawd.bot/faq ) ← *common questions answered*
- [Configuration ](https://docs.clawd.bot/configuration )
2026-01-06 18:25:52 +00:00
- [Multi-agent routing ](https://docs.clawd.bot/multi-agent )
2026-01-06 19:24:33 +01:00
- [Updating / rollback ](https://docs.clawd.bot/updating )
2026-01-06 19:30:30 +01:00
- [Pairing (DM + nodes) ](https://docs.clawd.bot/pairing )
2026-01-06 18:59:06 +01:00
- [Nix mode ](https://docs.clawd.bot/nix )
- [Clawd personal assistant setup ](https://docs.clawd.bot/clawd )
- [Skills ](https://docs.clawd.bot/skills )
- [Skills config ](https://docs.clawd.bot/skills-config )
- [Workspace templates ](https://docs.clawd.bot/templates/AGENTS )
- [RPC adapters ](https://docs.clawd.bot/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/discovery )
- [Remote access ](https://docs.clawd.bot/remote )
2025-12-14 00:50:41 +00:00
- Providers and UX:
2026-01-06 18:59:06 +01:00
- [WebChat ](https://docs.clawd.bot/webchat )
- [Control UI (browser) ](https://docs.clawd.bot/control-ui )
- [Telegram ](https://docs.clawd.bot/telegram )
- [Discord ](https://docs.clawd.bot/discord )
- [iMessage ](https://docs.clawd.bot/imessage )
- [Groups ](https://docs.clawd.bot/groups )
- [WhatsApp group messages ](https://docs.clawd.bot/group-messages )
- [Media: images ](https://docs.clawd.bot/images )
- [Media: audio ](https://docs.clawd.bot/audio )
2026-01-05 20:59:54 +01:00
- Companion apps:
2026-01-06 18:59:06 +01:00
- [macOS app ](https://docs.clawd.bot/macos )
- [iOS app ](https://docs.clawd.bot/ios )
- [Android app ](https://docs.clawd.bot/android )
- [Windows app ](https://docs.clawd.bot/windows )
- [Linux app ](https://docs.clawd.bot/linux )
2025-12-14 00:50:41 +00:00
- Ops and safety:
2026-01-06 18:59:06 +01:00
- [Sessions ](https://docs.clawd.bot/session )
- [Cron + wakeups ](https://docs.clawd.bot/cron )
- [Security ](https://docs.clawd.bot/security )
- [Troubleshooting ](https://docs.clawd.bot/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