OpenClaw Genie
OpenClaw is a self-hosted personal AI agent gateway (MIT license, open source).
It connects LLM agents to 22+ messaging platforms natively (WhatsApp, Telegram,
Discord, Slack, Signal, iMessage, MS Teams, Matrix, and more) with 50+
integrations (Gmail, GitHub, Obsidian, Spotify, and more) through a single
Gateway process. All data stays local.
Quick Start
# One-liner install (macOS/Linux, requires Node 22+)
curl -fsSL https://openclaw.ai/install.sh | bash
# Or via npm
npm install -g openclaw@latest
# Interactive setup — gateway, workspace, channels, skills
openclaw onboard --install-daemon
# Verify
openclaw status
openclaw gateway status
Web Control UI: http://127.0.0.1:18789/
Core Architecture
Channels (WhatsApp, Discord, Telegram, Slack, Signal, …)
↓
Gateway ← WebSocket control plane (port 18789), single source of truth
↓
Agents ← isolated workspaces, sessions, memory, tools
↓
Tools ← exec, browser, skills, hooks, messaging, sub-agents
↓
Nodes ← companion devices (macOS/iOS/Android): camera, canvas, screen
- Gateway: Multiplexed port (WebSocket + HTTP + Control UI). Hot-reloads config.
- Agents: Fully isolated — own workspace, session store, memory, auth profiles, sandbox.
- Channels: 22+ native adapters run simultaneously. Deterministic routing: replies return to origin.
- Nodes: Paired companion devices that expose
canvas.*, camera.*, screen.*, device.*, notifications.* via node.invoke.
- Sessions: Key format
agent:<agentId>:<channel>:<scope>:<chatId>. DM scopes: main, per-peer, per-channel-peer, per-account-channel-peer.
Agent Configuration
Workspace files in ~/.openclaw/workspace/ (default agent) or ~/.openclaw/workspace-<agentId>/:
| File |
Purpose |
SOUL.md |
Agent personality and system prompt |
IDENTITY.md |
Name, emoji, avatar |
USER.md |
User profile information |
MEMORY.md |
Curated long-term memory |
memory/YYYY-MM-DD.md |
Daily append-only session logs |
TOOLS.md |
Tool usage guidance |
BOOTSTRAP.md |
One-time init tasks (deleted after first run) |
HEARTBEAT.md |
Periodic check-in instructions |
Bootstrap injection: IDENTITY → SOUL → USER → MEMORY → daily log → skills → session.
Limits: 20,000 chars/file, 150,000 chars total (configurable).
Multi-agent config uses agents.list[] and bindings[] in openclaw.json (see references/multi-agent.md).
Configuration — openclaw.json
Location: ~/.openclaw/openclaw.json (JSON5 — comments and trailing commas OK).
{
"models": { // primary, fallbacks, aliases, image model
"primary": "anthropic/claude-sonnet-4-5",
"fallbacks": ["openai/gpt-4o"]
},
"channels": { }, // discord, telegram, whatsapp, slack, signal, …
"agents": { }, // list, defaults, bindings, broadcast, subagents
"tools": { }, // profiles, allow/deny, loop detection, exec config
"skills": { }, // entries, load dirs, install manager
"browser": { }, // profiles, SSRF policy, executable path
"sandbox": { }, // mode (off/non-main/all), scope, Docker hardening
"gateway": { }, // port, auth, discovery, binding
"automation": { }, // cron, webhooks, heartbeat
"hooks": { }, // internal hooks config
"session": { }, // dmScope, resets, sendPolicy, maintenance
"auth": { } // OAuth profiles, key rotation, order
}
- Env vars:
~/.openclaw/.env, ${VAR} substitution in config strings.
$include: Nested file inclusion (up to 10 levels).
- Hot reload:
hybrid mode (default) — safe changes hot-apply, critical ones auto-restart. Debounce 300ms.
- Strict validation: Unknown keys prevent Gateway startup.
For full reference, read references/configuration.md.
Channels Quick Reference
| Channel |
Setup |
Notes |
| Discord |
openclaw channels add discord |
Bot API + Gateway; servers, DMs, threads, slash commands, voice |
| Telegram |
openclaw channels add telegram |
grammY; groups, forums, inline buttons, webhook mode |
| WhatsApp |
openclaw channels add whatsapp |
Baileys; QR pairing, media, polls |
| Slack |
openclaw channels add slack |
Bolt SDK; socket or HTTP mode, native streaming |
| Signal |
openclaw channels add signal |
signal-cli; privacy-focused, auto-daemon |
| iMessage |
openclaw channels add bluebubbles |
BlueBubbles; reactions, edits, groups |
| Google Chat |
openclaw channels add googlechat |
HTTP webhook app |
| IRC |
openclaw channels add irc |
NickServ, channels + DMs |
| MS Teams |
openclaw plugins install @openclaw/msteams |
Adaptive Cards, polls |
| Matrix |
openclaw plugins install @openclaw/matrix |
E2EE, threads, rooms |
| Mattermost |
openclaw plugins install @openclaw/mattermost |
Self-hosted |
| Nextcloud Talk |
openclaw plugins install @openclaw/nextcloud-talk |
Self-hosted |
| WebChat |
Built-in web UI |
Browser-based access at gateway URL |
Access control: DM policy (pairing/allowlist/open/disabled), group policy, mention gating. Multi-account per channel supported.
For per-channel details, read references/channels.md.
Memory System
- Daily logs:
memory/YYYY-MM-DD.md — today + yesterday loaded at session start
- Long-term:
MEMORY.md — curated facts, decisions, preferences (private sessions only)
- Tools:
memory_search (vector recall, ~400-token chunks) and memory_get (file reads)
- Hybrid search: BM25 (exact tokens) + vector (semantic) with configurable weights
- Post-processing: MMR deduplication (lambda 0.7) + temporal decay (30-day half-life)
- Providers: auto-selects local → OpenAI → Gemini → Voyage → Mistral
- QMD backend: Optional local-first sidecar (BM25 + vectors + reranking)
- Auto flush: Silent agentic turn before context compaction preserves important memories
For full memory config, read references/memory.md.
Tools Overview
| Tool |
Purpose |
exec |
Shell commands (sandbox/gateway/node hosts) |
process |
Background process management |
browser |
Chromium automation (navigate, click, type, screenshot) |
web_search |
Brave Search API queries |
web_fetch |
URL → markdown extraction |
memory_search |
Semantic vector search over memory |
memory_get |
Direct memory file reads |
message |
Cross-channel messaging (send, react, thread, pin, poll) |
sessions_spawn |
Sub-agent runs (one-shot or persistent, up to depth 5) |
canvas |
Node Canvas UI (HTML display on connected devices) |
nodes |
Paired device control: camera snap/clip, screen record, notifications, canvas A2UI |
pdf |
Native PDF analysis (up to 10 PDFs, Anthropic/Google native mode, extraction fallback) |
Access control: Profiles (minimal, coding, messaging, full), allow/deny lists, tool groups (group:fs, group:runtime, group:sessions, group:web, group:ui, group:automation).
Default profile (since v2026.3.2): onboarding defaults to messaging (not coding).
For full tools, skills, and hooks reference, read references/tools.md.
Hooks & Automation
Hooks — event-driven TypeScript handlers in <workspace>/hooks/:
| Event |
Trigger |
command:new/reset/stop |
Session lifecycle |
agent:bootstrap |
Pre-injection (can mutate bootstrap files) |
gateway:startup |
After channels load |
message:received/sent |
Message lifecycle |
tool_result_persist |
Synchronous tool result transform |
Automation — built into Gateway:
- Cron: Scheduled jobs (cron expressions, intervals, one-shot). Isolated or main-session.
- Webhooks:
/hooks/wake (system events), /hooks/agent (isolated turns), custom mapped endpoints.
- Heartbeat: Periodic check-ins (default 30min), batches multiple checks per turn.
Voice — macOS/iOS wake word + talk mode overlay; continuous voice on Android with ElevenLabs or system TTS; OpenAI-compatible STT endpoint (messages.tts.openai.baseUrl).
Deployment Options
# Local service (default)
openclaw gateway install && openclaw gateway start
# One-liner Docker
./docker-setup.sh
# Manual Docker
docker build -t openclaw:local -f Dockerfile .
docker compose up -d openclaw-gateway
Cloud: Fly.io, Railway, Render, GCP, Hetzner, Cloudflare Workers, Ansible.
Sandbox: Docker isolation for untrusted sessions. Modes: off, non-main, all. Scopes: session, agent, shared.
Remote access: Tailscale/VPN preferred, SSH tunnel fallback.
For full deployment guide, read references/deployment.md.
CLI Essentials
| Command |
Purpose |
openclaw onboard |
Interactive first-time setup |
openclaw gateway start/stop/status |
Service management |
openclaw channels add/list/status/login |
Channel management |
openclaw models list/set/auth/scan |
Model config + auth |
openclaw skills list/info/check |
Skill management |
openclaw hooks list/enable/disable/install |
Hook management |
openclaw agent --message "..." |
Single agent turn |
openclaw agents list/add/delete |
Multi-agent management |
openclaw sessions |
List/manage sessions |
openclaw browser |
Browser control (50+ subcommands) |
openclaw cron list/add/run |
Scheduled jobs |
openclaw nodes status |
List paired companion nodes |
openclaw devices list/approve |
Manage device pairing requests |
openclaw config get/set/unset/validate |
Config helpers (validate checks file before startup) |
openclaw doctor [--fix] |
Health checks + auto-repair |
openclaw security audit [--deep] |
Security audit |
openclaw logs [--follow] |
Tail gateway logs |
openclaw memory search "query" |
Vector search |
openclaw dns setup |
CoreDNS + Tailscale discovery |
openclaw tui |
Terminal UI |
Global flags: --dev, --profile <name>, --json, --no-color
When to Read Reference Files
| If you need… |
Read |
| Full openclaw.json, model providers, env vars, auth, OAuth |
references/configuration.md |
| Per-channel setup, routing, access control, streaming, multi-account |
references/channels.md |
| Memory files, vector search, QMD, embeddings, hybrid search |
references/memory.md |
| Exec, browser, skills, hooks, tool access, sub-agents, nodes |
references/tools.md |
| Docker, cloud deploy, sandboxing, native install, security |
references/deployment.md |
| Multi-agent config, bindings, broadcast, sub-agents, workspaces |
references/multi-agent.md |
1---
2name: openclaw-genie
3version: 1.2.0
4description: >-
5 Use when the user asks about OpenClaw — installation, configuration, agents,
6 channels, memory, tools, hooks, skills, deployment, Docker, multi-agent,
7 OAuth, gateway, CLI, browser, exec, PDF, voice, secrets, sandboxing, sessions,
8 cron, webhooks, heartbeat, sub-agents, nodes, companion devices, canvas,
9 camera, or messaging platform integration. Also invoke for questions about
10 running OpenClaw agents: memory recall (memory_search), cron scheduling,
11 multi-agent setup, or any openclaw.json behavior. OpenClaw has proprietary
12 configuration syntax (SecretRef, dmPolicy, node.invoke, tool profiles) and
13 CLI commands that require this skill to answer correctly.
14metadata:
15 source: https://skillmd.com/skills/aibot88/openclaw-genie
16---
17
18# OpenClaw Genie
19
20OpenClaw is a self-hosted personal AI agent gateway (MIT license, open source).
21It connects LLM agents to 22+ messaging platforms natively (WhatsApp, Telegram,
22Discord, Slack, Signal, iMessage, MS Teams, Matrix, and more) with 50+
23integrations (Gmail, GitHub, Obsidian, Spotify, and more) through a single
24Gateway process. All data stays local.
25
26---
27
28## Quick Start
29
30```bash
31# One-liner install (macOS/Linux, requires Node 22+)
32curl -fsSL https://openclaw.ai/install.sh | bash
33
34# Or via npm
35npm install -g openclaw@latest
36
37# Interactive setup — gateway, workspace, channels, skills
38openclaw onboard --install-daemon
39
40# Verify
41openclaw status
42openclaw gateway status
43```
44
45Web Control UI: `http://127.0.0.1:18789/`
46
47---
48
49## Core Architecture
50
51```
52Channels (WhatsApp, Discord, Telegram, Slack, Signal, …)
53 ↓
54 Gateway ← WebSocket control plane (port 18789), single source of truth
55 ↓
56 Agents ← isolated workspaces, sessions, memory, tools
57 ↓
58 Tools ← exec, browser, skills, hooks, messaging, sub-agents
59 ↓
60 Nodes ← companion devices (macOS/iOS/Android): camera, canvas, screen
61```
62
63- **Gateway**: Multiplexed port (WebSocket + HTTP + Control UI). Hot-reloads config.
64- **Agents**: Fully isolated — own workspace, session store, memory, auth profiles, sandbox.
65- **Channels**: 22+ native adapters run simultaneously. Deterministic routing: replies return to origin.
66- **Nodes**: Paired companion devices that expose `canvas.*`, `camera.*`, `screen.*`, `device.*`, `notifications.*` via `node.invoke`.
67- **Sessions**: Key format `agent:<agentId>:<channel>:<scope>:<chatId>`. DM scopes: `main`, `per-peer`, `per-channel-peer`, `per-account-channel-peer`.
68
69---
70
71## Agent Configuration
72
73Workspace files in `~/.openclaw/workspace/` (default agent) or `~/.openclaw/workspace-<agentId>/`:
74
75| File | Purpose |
76|------|---------|
77| `SOUL.md` | Agent personality and system prompt |
78| `IDENTITY.md` | Name, emoji, avatar |
79| `USER.md` | User profile information |
80| `MEMORY.md` | Curated long-term memory |
81| `memory/YYYY-MM-DD.md` | Daily append-only session logs |
82| `TOOLS.md` | Tool usage guidance |
83| `BOOTSTRAP.md` | One-time init tasks (deleted after first run) |
84| `HEARTBEAT.md` | Periodic check-in instructions |
85
86Bootstrap injection: IDENTITY → SOUL → USER → MEMORY → daily log → skills → session.
87Limits: 20,000 chars/file, 150,000 chars total (configurable).
88
89Multi-agent config uses `agents.list[]` and `bindings[]` in openclaw.json (see `references/multi-agent.md`).
90
91---
92
93## Configuration — openclaw.json
94
95Location: `~/.openclaw/openclaw.json` (JSON5 — comments and trailing commas OK).
96
97```jsonc
98{
99 "models": { // primary, fallbacks, aliases, image model
100 "primary": "anthropic/claude-sonnet-4-5",
101 "fallbacks": ["openai/gpt-4o"]
102 },
103 "channels": { }, // discord, telegram, whatsapp, slack, signal, …
104 "agents": { }, // list, defaults, bindings, broadcast, subagents
105 "tools": { }, // profiles, allow/deny, loop detection, exec config
106 "skills": { }, // entries, load dirs, install manager
107 "browser": { }, // profiles, SSRF policy, executable path
108 "sandbox": { }, // mode (off/non-main/all), scope, Docker hardening
109 "gateway": { }, // port, auth, discovery, binding
110 "automation": { }, // cron, webhooks, heartbeat
111 "hooks": { }, // internal hooks config
112 "session": { }, // dmScope, resets, sendPolicy, maintenance
113 "auth": { } // OAuth profiles, key rotation, order
114}
115```
116
117- **Env vars**: `~/.openclaw/.env`, `${VAR}` substitution in config strings.
118- **`$include`**: Nested file inclusion (up to 10 levels).
119- **Hot reload**: `hybrid` mode (default) — safe changes hot-apply, critical ones auto-restart. Debounce 300ms.
120- **Strict validation**: Unknown keys prevent Gateway startup.
121
122For full reference, read `references/configuration.md`.
123
124---
125
126## Channels Quick Reference
127
128| Channel | Setup | Notes |
129|---------|-------|-------|
130| Discord | `openclaw channels add discord` | Bot API + Gateway; servers, DMs, threads, slash commands, voice |
131| Telegram | `openclaw channels add telegram` | grammY; groups, forums, inline buttons, webhook mode |
132| WhatsApp | `openclaw channels add whatsapp` | Baileys; QR pairing, media, polls |
133| Slack | `openclaw channels add slack` | Bolt SDK; socket or HTTP mode, native streaming |
134| Signal | `openclaw channels add signal` | signal-cli; privacy-focused, auto-daemon |
135| iMessage | `openclaw channels add bluebubbles` | BlueBubbles; reactions, edits, groups |
136| Google Chat | `openclaw channels add googlechat` | HTTP webhook app |
137| IRC | `openclaw channels add irc` | NickServ, channels + DMs |
138| MS Teams | `openclaw plugins install @openclaw/msteams` | Adaptive Cards, polls |
139| Matrix | `openclaw plugins install @openclaw/matrix` | E2EE, threads, rooms |
140| Mattermost | `openclaw plugins install @openclaw/mattermost` | Self-hosted |
141| Nextcloud Talk | `openclaw plugins install @openclaw/nextcloud-talk` | Self-hosted |
142| WebChat | Built-in web UI | Browser-based access at gateway URL |
143
144**Access control**: DM policy (`pairing`/`allowlist`/`open`/`disabled`), group policy, mention gating. Multi-account per channel supported.
145
146For per-channel details, read `references/channels.md`.
147
148---
149
150## Memory System
151
152- **Daily logs**: `memory/YYYY-MM-DD.md` — today + yesterday loaded at session start
153- **Long-term**: `MEMORY.md` — curated facts, decisions, preferences (private sessions only)
154- **Tools**: `memory_search` (vector recall, ~400-token chunks) and `memory_get` (file reads)
155- **Hybrid search**: BM25 (exact tokens) + vector (semantic) with configurable weights
156- **Post-processing**: MMR deduplication (lambda 0.7) + temporal decay (30-day half-life)
157- **Providers**: auto-selects local → OpenAI → Gemini → Voyage → Mistral
158- **QMD backend**: Optional local-first sidecar (BM25 + vectors + reranking)
159- **Auto flush**: Silent agentic turn before context compaction preserves important memories
160
161For full memory config, read `references/memory.md`.
162
163---
164
165## Tools Overview
166
167| Tool | Purpose |
168|------|---------|
169| `exec` | Shell commands (sandbox/gateway/node hosts) |
170| `process` | Background process management |
171| `browser` | Chromium automation (navigate, click, type, screenshot) |
172| `web_search` | Brave Search API queries |
173| `web_fetch` | URL → markdown extraction |
174| `memory_search` | Semantic vector search over memory |
175| `memory_get` | Direct memory file reads |
176| `message` | Cross-channel messaging (send, react, thread, pin, poll) |
177| `sessions_spawn` | Sub-agent runs (one-shot or persistent, up to depth 5) |
178| `canvas` | Node Canvas UI (HTML display on connected devices) |
179| `nodes` | Paired device control: camera snap/clip, screen record, notifications, canvas A2UI |
180| `pdf` | Native PDF analysis (up to 10 PDFs, Anthropic/Google native mode, extraction fallback) |
181
182**Access control**: Profiles (`minimal`, `coding`, `messaging`, `full`), allow/deny lists, tool groups (`group:fs`, `group:runtime`, `group:sessions`, `group:web`, `group:ui`, `group:automation`).
183**Default profile** (since v2026.3.2): onboarding defaults to `messaging` (not `coding`).
184
185For full tools, skills, and hooks reference, read `references/tools.md`.
186
187---
188
189## Hooks & Automation
190
191**Hooks** — event-driven TypeScript handlers in `<workspace>/hooks/`:
192
193| Event | Trigger |
194|-------|---------|
195| `command:new/reset/stop` | Session lifecycle |
196| `agent:bootstrap` | Pre-injection (can mutate bootstrap files) |
197| `gateway:startup` | After channels load |
198| `message:received/sent` | Message lifecycle |
199| `tool_result_persist` | Synchronous tool result transform |
200
201**Automation** — built into Gateway:
202- **Cron**: Scheduled jobs (cron expressions, intervals, one-shot). Isolated or main-session.
203- **Webhooks**: `/hooks/wake` (system events), `/hooks/agent` (isolated turns), custom mapped endpoints.
204- **Heartbeat**: Periodic check-ins (default 30min), batches multiple checks per turn.
205
206**Voice** — macOS/iOS wake word + talk mode overlay; continuous voice on Android with ElevenLabs or system TTS; OpenAI-compatible STT endpoint (`messages.tts.openai.baseUrl`).
207
208---
209
210## Deployment Options
211
212```bash
213# Local service (default)
214openclaw gateway install && openclaw gateway start
215
216# One-liner Docker
217./docker-setup.sh
218
219# Manual Docker
220docker build -t openclaw:local -f Dockerfile .
221docker compose up -d openclaw-gateway
222```
223
224**Cloud**: Fly.io, Railway, Render, GCP, Hetzner, Cloudflare Workers, Ansible.
225**Sandbox**: Docker isolation for untrusted sessions. Modes: `off`, `non-main`, `all`. Scopes: `session`, `agent`, `shared`.
226**Remote access**: Tailscale/VPN preferred, SSH tunnel fallback.
227
228For full deployment guide, read `references/deployment.md`.
229
230---
231
232## CLI Essentials
233
234| Command | Purpose |
235|---------|---------|
236| `openclaw onboard` | Interactive first-time setup |
237| `openclaw gateway start/stop/status` | Service management |
238| `openclaw channels add/list/status/login` | Channel management |
239| `openclaw models list/set/auth/scan` | Model config + auth |
240| `openclaw skills list/info/check` | Skill management |
241| `openclaw hooks list/enable/disable/install` | Hook management |
242| `openclaw agent --message "..."` | Single agent turn |
243| `openclaw agents list/add/delete` | Multi-agent management |
244| `openclaw sessions` | List/manage sessions |
245| `openclaw browser` | Browser control (50+ subcommands) |
246| `openclaw cron list/add/run` | Scheduled jobs |
247| `openclaw nodes status` | List paired companion nodes |
248| `openclaw devices list/approve` | Manage device pairing requests |
249| `openclaw config get/set/unset/validate` | Config helpers (`validate` checks file before startup) |
250| `openclaw doctor [--fix]` | Health checks + auto-repair |
251| `openclaw security audit [--deep]` | Security audit |
252| `openclaw logs [--follow]` | Tail gateway logs |
253| `openclaw memory search "query"` | Vector search |
254| `openclaw dns setup` | CoreDNS + Tailscale discovery |
255| `openclaw tui` | Terminal UI |
256
257**Global flags**: `--dev`, `--profile <name>`, `--json`, `--no-color`
258
259---
260
261## When to Read Reference Files
262
263| If you need… | Read |
264|--------------|------|
265| Full openclaw.json, model providers, env vars, auth, OAuth | `references/configuration.md` |
266| Per-channel setup, routing, access control, streaming, multi-account | `references/channels.md` |
267| Memory files, vector search, QMD, embeddings, hybrid search | `references/memory.md` |
268| Exec, browser, skills, hooks, tool access, sub-agents, nodes | `references/tools.md` |
269| Docker, cloud deploy, sandboxing, native install, security | `references/deployment.md` |
270| Multi-agent config, bindings, broadcast, sub-agents, workspaces | `references/multi-agent.md` |