Skip to main content

Clawdia ๐Ÿฆž

โ€œMEOW! MEOW!โ€ โ€” A space cat, probably
Clawdia bridges WhatsApp (via WhatsApp Web / Baileys), Telegram (Bot API / grammY), Discord (Bot API / channels.discord.js), and iMessage (imsg CLI) to coding agents like Pi. Plugins add Mattermost (Bot API + WebSocket) and more. Clawdia is your space cat assistant.

Start here

If the Gateway is running on the same computer, that link opens the browser Control UI immediately. If it fails, start the Gateway first: clawdia 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: Web surfaces and Tailscale

How it works

Most operations flow through the Gateway (clawdia gateway), a single long-running process that owns channel connections and the WebSocket control plane.

Network model

  • One Gateway per host (recommended): it is the only process allowed to own the WhatsApp Web session. If you need a rescue bot or strict isolation, run multiple gateways with isolated profiles and ports; see Multiple gateways.
  • Loopback-first: Gateway WS defaults to ws://127.0.0.1:18789.
    • The wizard now generates a gateway token by default (even for loopback).
    • For Tailnet access, run clawdia gateway --bind tailnet --token ... (token is required for non-loopback binds).
  • Nodes: connect to the Gateway WebSocket (LAN/tailnet/SSH as needed); legacy TCP bridge is deprecated/removed.
  • Canvas host: HTTP file server on canvasHost.port (default 18793), serving /__clawdia__/canvas/ for node WebViews; see Gateway configuration (canvasHost).
  • Remote use: SSH tunnel or tailnet/VPN; see Remote access and Discovery.

Features (high level)

  • ๐Ÿ“ฑ WhatsApp Integration โ€” Uses Baileys for WhatsApp Web protocol
  • โœˆ๏ธ Telegram Bot โ€” DMs + groups via grammY
  • ๐ŸŽฎ Discord Bot โ€” DMs + guild channels via channels.discord.js
  • ๐Ÿงฉ Mattermost Bot (plugin) โ€” Bot token + WebSocket events
  • ๐Ÿ’ฌ iMessage โ€” Local imsg CLI integration (macOS)
  • ๐Ÿค– Agent bridge โ€” Pi (RPC mode) with tool streaming
  • โฑ๏ธ Streaming + chunking โ€” Block streaming + Telegram draft streaming details (/concepts/streaming)
  • ๐Ÿง  Multi-agent routing โ€” Route provider accounts/peers to isolated agents (workspace + per-agent sessions)
  • ๐Ÿ” Subscription auth โ€” Anthropic (Claude Pro/Max) + OpenAI (ChatGPT/Codex) via OAuth
  • ๐Ÿ’ฌ Sessions โ€” Direct chats collapse into shared main (default); groups are isolated
  • ๐Ÿ‘ฅ Group Chat Support โ€” Mention-based by default; owner can toggle /activation always|mention
  • ๐Ÿ“Ž Media Support โ€” Send and receive images, audio, documents
  • ๐ŸŽค Voice notes โ€” Optional transcription hook
  • ๐Ÿ–ฅ๏ธ WebChat + macOS app โ€” Local UI + menu bar companion for ops and voice wake
  • ๐Ÿ“ฑ iOS node โ€” Pairs as a node and exposes a Canvas surface
  • ๐Ÿ“ฑ Android node โ€” Pairs as a node and exposes Canvas + Chat + Camera
Note: legacy Claude/Codex/Gemini/Opencode paths have been removed; Pi is the only coding-agent path.

Quick start

Runtime requirement: Node โ‰ฅ 22.
Switching between npm and git installs later is easy: install the other flavor and run clawdia doctor to update the gateway service entrypoint. From source (development):
If you donโ€™t have a global install yet, run the onboarding step via pnpm clawdia ... from the repo. Multi-instance quickstart (optional):
Send a test message (requires a running Gateway):

Configuration (optional)

Config lives at ~/.nelsonmuntz-c/clawdia.json.
  • If you do nothing, Clawdia uses the bundled Pi binary in RPC mode with per-sender sessions.
  • If you want to lock it down, start with channels.whatsapp.allowFrom and (for groups) mention rules.
Example:

Docs

The name

Clawdia = CLAW + TARDIS โ€” because every space cat needs a time-and-space machine.
โ€œWeโ€™re all just playing with our own prompts.โ€ โ€” an AI, probably high on tokens

Credits

  • The Community โ€” All the contributors who make Clawdia better every day

License

MIT โ€” Free as a cat in the sun ๐Ÿฑ
โ€œWeโ€™re all just playing with our own prompts.โ€ โ€” An AI, probably high on tokens