Files
openclaw/docs/index.md

168 lines
5.8 KiB
Markdown
Raw Normal View History

---
summary: "Top-level overview of Clawdis, features, and purpose"
read_when:
- Introducing Clawdis to newcomers
---
2025-12-13 13:25:49 +00:00
<!-- {% raw %} -->
# CLAWDIS 🦞
> *"EXFOLIATE! EXFOLIATE!"* — A space lobster, probably
2025-12-13 13:25:49 +00:00
<p align="center">
<img src="whatsapp-clawd.jpg" alt="CLAWDIS" width="420">
</p>
2025-12-13 13:25:49 +00:00
<p align="center">
2026-01-02 01:19:22 +01:00
<strong>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">
<a href="https://github.com/steipete/clawdis">GitHub</a> ·
<a href="https://github.com/steipete/clawdis/releases">Releases</a> ·
<a href="./clawd.md">Clawd setup</a>
2025-12-13 13:25:49 +00:00
</p>
2026-01-02 01:19:22 +01:00
CLAWDIS 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
Its built for [Clawd](https://clawd.me), a space lobster who needed a TARDIS.
## How it works
```
2025-12-15 10:11:18 -06:00
WhatsApp / Telegram / Discord
┌──────────────────────────┐
│ 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)
2025-12-20 22:25:09 +01:00
│ │ http://<gateway-host>:18793/__clawdis__/canvas/ (Canvas host)
└───────────┬───────────────┘
├─ Pi agent (RPC)
├─ CLI (clawdis …)
├─ Chat UI (SwiftUI)
├─ macOS app (Clawdis.app)
2025-12-18 13:18:33 +01:00
└─ iOS node via Bridge + pairing
```
2025-12-13 13:25:49 +00:00
Most operations flow through the **Gateway** (`clawdis gateway`), a single long-running process that owns provider connections and the WebSocket control plane.
## 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`.
- For Tailnet access, run `clawdis gateway --bind tailnet --token ...` (token is required for non-loopback binds).
- **Bridge for nodes**: optional LAN/tailnet-facing bridge on `tcp://0.0.0.0:18790` for paired nodes (Bonjour-discoverable).
2025-12-20 22:25:09 +01:00
- **Canvas host**: HTTP file server on `canvasHost.port` (default `18793`), serving `/__clawdis__/canvas/` for node WebViews; see `docs/configuration.md` (`canvasHost`).
- **Remote use**: SSH tunnel or tailnet/VPN; see `docs/remote.md` and `docs/discovery.md`.
2025-12-13 13:25:49 +00:00
## Features (high level)
- 📱 **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
- 💬 **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`
- 📎 **Media Support** — Send and receive images, audio, documents
2025-12-13 13:25:49 +00:00
- 🎤 **Voice notes** — Optional transcription hook
- 🖥️ **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
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-13 13:25:49 +00:00
## Quick start
2025-12-13 13:25:49 +00:00
Runtime requirement: **Node ≥ 22**.
```bash
# From source (recommended while the npm package is still settling)
pnpm install
pnpm build
pnpm link --global
2025-12-13 13:25:49 +00:00
# Pair WhatsApp Web (shows QR)
clawdis login
2025-12-13 13:25:49 +00:00
# Run the Gateway (leave running)
clawdis gateway --port 18789
```
2025-12-13 13:25:49 +00:00
Send a test message (requires a running Gateway):
```bash
2025-12-13 13:25:49 +00:00
clawdis send --to +15555550123 --message "Hello from CLAWDIS"
```
2025-12-13 13:25:49 +00:00
## Configuration (optional)
2025-12-13 13:25:49 +00:00
Config lives at `~/.clawdis/clawdis.json`.
2025-12-13 13:25:49 +00:00
- If you **do nothing**, CLAWDIS uses the bundled Pi binary in RPC mode with per-sender sessions.
- 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
{
whatsapp: { allowFrom: ["+15555550123"] },
routing: { groupChat: { requireMention: true, mentionPatterns: ["@clawd"] } }
2025-12-13 13:25:49 +00:00
}
```
2025-12-13 13:25:49 +00:00
## Docs
- Start here:
- [FAQ](./faq.md) ← *common questions answered*
- [Configuration](./configuration.md)
- [Nix mode](./nix.md)
- [Clawd personal assistant setup](./clawd.md)
2025-12-20 12:22:15 +01:00
- [Skills](./skills.md)
2026-01-01 10:07:31 +01:00
- [Skills config](./skills-config.md)
- [Workspace templates](./templates/AGENTS.md)
2026-01-02 01:19:22 +01:00
- [RPC adapters](./rpc.md)
- [Gateway runbook](./gateway.md)
2025-12-19 00:29:42 +01:00
- [Nodes (iOS/Android)](./nodes.md)
2025-12-18 22:40:46 +00:00
- [Web surfaces (Control UI)](./web.md)
- [Discovery + transports](./discovery.md)
- [Remote access](./remote.md)
- Providers and UX:
- [WebChat](./webchat.md)
2025-12-18 22:40:46 +00:00
- [Control UI (browser)](./control-ui.md)
- [Telegram](./telegram.md)
2025-12-15 10:11:18 -06:00
- [Discord](./discord.md)
2026-01-02 01:19:22 +01:00
- [iMessage](./imessage.md)
- [Groups](./groups.md)
- [WhatsApp group messages](./group-messages.md)
- [Media: images](./images.md)
- [Media: audio](./audio.md)
- Ops and safety:
- [Sessions](./session.md)
- [Cron + wakeups](./cron.md)
- [Security](./security.md)
- [Troubleshooting](./troubleshooting.md)
2025-12-13 13:25:49 +00:00
## The name
2025-12-13 13:25:49 +00:00
**CLAWDIS = CLAW + TARDIS** — because every space lobster needs a time-and-space machine.
2025-12-13 13:25:49 +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
<!-- {% endraw %} -->
## 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
- **Clawd** — The space lobster who demanded a better name
## License
MIT — Free as a lobster in the ocean 🦞
---
*"We're all just playing with our own prompts."* — An AI, probably high on tokens