OpenClaw Expert Skill
Kernprinzip: Docs-First + Backup-First
OpenClaw verwendet CalVer-Versioning (YYYY.M.D-N) und ändert sich häufig.
Vor jeder Änderung diese Checkliste abarbeiten:
- Version prüfen:
openclaw --version
- Live-Docs holen —
web_fetch auf relevante Docs-Seiten (URLs in Referenzdateien)
- Community-Tipps suchen —
web_search nach aktuellen Workarounds
- Backup anlegen — Niemals Konfig ohne Backup ändern
- Änderung durchführen
- Validieren —
openclaw doctor vor und nach jeder Änderung
- Gateway neu starten —
systemctl --user restart openclaw-gateway
- Testen —
openclaw status + Kanal-Test
Architektur auf einen Blick
Messaging-Kanäle (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Teams, Matrix, Google Chat, Zalo, WebChat…)
│
▼
┌───────────────────────────────┐
│ Gateway │ ← ws://127.0.0.1:18789
│ (Control-Plane, RPC) │ ← Config: ~/.openclaw/openclaw.json (JSON5)
│ systemd user service │ ← Dashboard: http://127.0.0.1:18789
└──────────────┬────────────────┘
│
┌──────┴──────┐
│ Agent(s) │ ← Workspace: ~/.openclaw/workspace/
│ Runtime │ ← Sessions: ~/.openclaw/agents/<id>/sessions/
└──────┬──────┘
│
┌──────┴──────────────────────────┐
│ Nodes (optional) │
│ iOS / Android / macOS / Pi │
│ + Canvas / A2UI │
└─────────────────────────────────┘
Verzeichnisstruktur
~/.openclaw/
├── openclaw.json # Haupt-Config (JSON5 – Kommentare + trailing commas!)
├── credentials/ # API-Keys (chmod 600!)
│ ├── anthropic
│ ├── openai
│ └── openrouter
├── agents/
│ └── <agentId>/
│ └── sessions/ # Session-Logs (*.jsonl)
├── skills/ # Managed/lokale Skills
└── workspace/ # Agent-Workspace (= das "Gehirn")
├── AGENTS.md # Betriebsanweisungen (in JEDER Session geladen)
├── SOUL.md # Persönlichkeit, Ton, Grenzen (jede Session)
├── USER.md # Nutzerprofil (jede Session)
├── TOOLS.md # Tool-Hinweise (jede Session)
├── IDENTITY.md # Name, Emoji, Vibe
├── HEARTBEAT.md # Scheduled-Tasks / Cron-Checkliste
├── MEMORY.md # Langzeit-Gedächtnis (nur private Sessions!)
├── BOOTSTRAP.md # Einmal-Setup (nach Ausführung gelöscht)
├── memory/ # Tages-Logs (YYYY-MM-DD.md)
├── skills/ # Workspace-Skills
└── .git/ # Git-Backup (empfohlen!)
Referenzdateien — Wann was lesen
Dieses Skill-Paket enthält detaillierte Referenzdateien. Lies die relevante Datei
BEVOR du eine Aktion durchführst. Die Dateien liegen unter references/ im Skill-Verzeichnis.
| Aufgabe |
Referenzdatei |
Inhalt |
| Installation & erste Schritte |
references/installation.md |
npm/pnpm, Docker, VPS-Setup, Onboarding-Wizard |
| openclaw.json bearbeiten |
references/config-reference.md |
Vollständige Feld-Referenz basierend auf realer Config (auth, models, agents, tools, gateway…) |
| Dashboard (Control UI) |
references/dashboard.md |
Alle Dashboard-Bereiche, Zugriff, Troubleshooting |
| Workspace-Dateien schreiben |
references/workspace-files.md |
AGENTS.md, SOUL.md, USER.md, HEARTBEAT.md, MEMORY.md Templates |
| Channels einrichten |
references/channels.md |
Telegram (komplett!), WhatsApp, Discord, Slack, Signal + Troubleshooting |
| Memory & Compaction tunen |
references/memory-system.md |
memoryFlush, memorySearch, Compaction, Semantic Search, Decay |
| Docker-Deployment |
references/docker-setup.md |
docker-compose, Sandbox, alpine/openclaw, Permissions |
| Security-Hardening |
references/security-hardening.md |
dmPolicy, Token-Rotation, Allowlists, Sandboxing, CIS-Style |
| Skills entwickeln/installieren |
references/skills-guide.md |
SKILL.md-Format, ClawHub, Workspace-Skills, Security-Review |
| Multi-Agent-Routing |
references/multi-agent.md |
agents.list, bindings, accountId, agentId, Isolation |
| CLI-Referenz |
references/cli-reference.md |
Alle Befehle mit Syntax und Beispielen |
| Dashboard / Control UI |
references/dashboard.md |
Sidebar-Navigation, Bereiche, CORS, Config, Troubleshooting |
| Nodes & Remote-Zugriff |
references/nodes-and-remote.md |
Node-Typen, Pairing, Headless-Nodes, Bonjour/mDNS, Exec-Approvals |
| Tailscale-Integration |
references/tailscale-integration.md |
Serve vs Funnel vs Tailnet-Bind, SSH-Tunnel, Auth, Config-Beispiele |
| Praxis-Beispiele |
references/examples.md |
7 vollständige Setup-Szenarien (Einsteiger → Multi-Agent → Kosten-optimiert) |
| Troubleshooting |
references/troubleshooting.md |
Häufige Fehler, Logs, Diagnose-Schritte |
| Tricks & Power-User |
references/tricks-and-hacks.md |
Community-Tipps, Cost-Saving, Obsidian, Surge, Watchdog |
Schnellreferenz: Wichtigste CLI-Befehle
# Status & Diagnose
openclaw --version # CalVer-Version
openclaw doctor # Gesundheitscheck (IMMER!)
openclaw doctor --fix # Auto-Fix
openclaw status # Kurzer Status
openclaw dashboard # Browser-UI (Port 18789)
# Gateway
openclaw gateway start|stop|restart|status
openclaw gateway install # systemd user service
openclaw gateway log # Logs (= journalctl --user -u openclaw-gateway -f)
# Channels
openclaw channels list|add|remove|restart
openclaw channels status --probe # Live-Check
# Models
openclaw models list|set <provider/model>
# Skills
openclaw skills list|reload
clawhub search|install|update <name>
# Memory & Sessions
openclaw sessions list|clean
openclaw memory flush
# Update
pnpm add -g openclaw@latest && pnpm approve-builds -g && openclaw doctor
# Nodes & Devices
openclaw nodes status # Verbundene Nodes anzeigen
openclaw nodes describe --all # Node-Capabilities auflisten
openclaw nodes run --node <id> -- <cmd> # Befehl auf Node ausführen
openclaw devices list # Pairing-Requests anzeigen
openclaw devices approve <requestId> # Node-Pairing genehmigen
# Channel-Pairing
openclaw pairing list|approve <channel> <code>
# Config
openclaw config list|get|set|validate
# Security
openclaw token:rotate --force --length 64
openclaw security audit --deep
Sicherheits-Grundregeln (IMMER beachten!)
- Gateway bind:
loopback — Niemals lan oder 0.0.0.0 ohne Tailscale/VPN
- dmPolicy:
allowlist — Niemals open in Produktion
- Token: mindestens 64 Zeichen —
openclaw token:rotate --force --length 64
- Credentials:
chmod 600 — chmod 600 ~/.openclaw/credentials/*
- Skills reviewen — Vor Installation Quellcode prüfen, ClawHub "Hide Suspicious" nutzen
- Kein root — OpenClaw als eigener User betreiben
- Workspace = privat — Git-Backup in privates Repo, MEMORY.md nie in Groups laden
- API-Spending-Limits — Beim Provider setzen, bevor Heartbeat aktiviert wird
- Sandbox für Tools —
tools.exec.host: "sandbox" wenn möglich
Workflow: Docs nachschlagen
Offizielle Docs-URLs (für web_fetch)
https://docs.openclaw.ai # Hauptseite
https://docs.openclaw.ai/install/docker # Docker
https://docs.openclaw.ai/concepts/agent-workspace # Workspace
https://docs.openclaw.ai/concepts/memory # Memory
https://docs.openclaw.ai/concepts/multi-agent # Multi-Agent
https://docs.openclaw.ai/channels/<name> # Channel-Guides
https://docs.openclaw.ai/models # Models
https://docs.openclaw.ai/tools/skills # Skills
https://docs.openclaw.ai/security # Security
Alternative Docs-Mirror: https://openclaw.im/docs/
Community-Suche (für web_search)
"openclaw <Thema> 2026 tips"
"openclaw <Problem> fix workaround github issue"
"openclaw.json <Section> advanced configuration"
Quellen-Priorität:
github.com/openclaw/openclaw (Issues, Discussions, AGENTS.md)
docs.openclaw.ai / openclaw.im/docs
- Community-Guides (Simon Willison TIL, Substack, Medium)
- Reddit r/selfhosted, Hacker News
Backup-Strategie (IMMER vor Änderungen)
# Snapshot der Config
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
# Versioniertes Backup
tar czf ~/openclaw-backup-$(date +%Y%m%d_%H%M%S).tar.gz ~/.openclaw/
# Git-Backup des Workspace (empfohlen)
cd ~/.openclaw/workspace && git add -A && git commit -m "backup: $(date +%Y%m%d_%H%M%S)"
Protokoll: Sichere Config-Änderung
openclaw --version → Version notieren
- Relevante Referenzdatei lesen (siehe Tabelle oben)
- Live-Docs fetchen (URLs oben)
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
- Änderung durchführen
openclaw doctor
systemctl --user restart openclaw-gateway
openclaw status + Funktionstest im Channel
- Bei Fehler:
cp ~/.openclaw/openclaw.json.bak ~/.openclaw/openclaw.json && systemctl --user restart openclaw-gateway
1---
2name: openclaw-expert
3description: >
4 Expert skill for OpenClaw (formerly Clawdbot/MoltBot) — the self-hosted AI agent framework.
5 ALWAYS use when user mentions OpenClaw, Clawdbot, MoltBot, openclaw.json, openclaw gateway,
6 openclaw channels, openclaw nodes, openclaw models, openclaw skills, openclaw doctor,
7 AGENTS.md, SOUL.md, USER.md, HEARTBEAT.md, MEMORY.md, IDENTITY.md, TOOLS.md, BOOTSTRAP.md,
8 ClawHub, clawhub, openclaw workspace, openclaw config, openclaw sessions, openclaw pairing,
9 openclaw docker, openclaw sandbox, openclaw heartbeat, openclaw compaction, memorySearch,
10 multi-agent, bindings, dmPolicy. Covers installation, configuration, troubleshooting,
11 security hardening, channel setup, skill development, memory tuning, Docker deployment.
12 Also trigger for "my bot", "my agent", "Lobster", or agent issues after config changes.
13metadata:
14 source: https://skillmd.com/skills/modbender/openclaw-expert
15---
16
17# OpenClaw Expert Skill
18
19## Kernprinzip: Docs-First + Backup-First
20
21OpenClaw verwendet CalVer-Versioning (YYYY.M.D-N) und ändert sich häufig.
22**Vor jeder Änderung** diese Checkliste abarbeiten:
23
241. **Version prüfen**: `openclaw --version`
252. **Live-Docs holen** — `web_fetch` auf relevante Docs-Seiten (URLs in Referenzdateien)
263. **Community-Tipps suchen** — `web_search` nach aktuellen Workarounds
274. **Backup anlegen** — Niemals Konfig ohne Backup ändern
285. **Änderung durchführen**
296. **Validieren** — `openclaw doctor` vor und nach jeder Änderung
307. **Gateway neu starten** — `systemctl --user restart openclaw-gateway`
318. **Testen** — `openclaw status` + Kanal-Test
32
33---
34
35## Architektur auf einen Blick
36
37```
38Messaging-Kanäle (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Teams, Matrix, Google Chat, Zalo, WebChat…)
39 │
40 ▼
41┌───────────────────────────────┐
42│ Gateway │ ← ws://127.0.0.1:18789
43│ (Control-Plane, RPC) │ ← Config: ~/.openclaw/openclaw.json (JSON5)
44│ systemd user service │ ← Dashboard: http://127.0.0.1:18789
45└──────────────┬────────────────┘
46 │
47 ┌──────┴──────┐
48 │ Agent(s) │ ← Workspace: ~/.openclaw/workspace/
49 │ Runtime │ ← Sessions: ~/.openclaw/agents/<id>/sessions/
50 └──────┬──────┘
51 │
52 ┌──────┴──────────────────────────┐
53 │ Nodes (optional) │
54 │ iOS / Android / macOS / Pi │
55 │ + Canvas / A2UI │
56 └─────────────────────────────────┘
57```
58
59### Verzeichnisstruktur
60```
61~/.openclaw/
62├── openclaw.json # Haupt-Config (JSON5 – Kommentare + trailing commas!)
63├── credentials/ # API-Keys (chmod 600!)
64│ ├── anthropic
65│ ├── openai
66│ └── openrouter
67├── agents/
68│ └── <agentId>/
69│ └── sessions/ # Session-Logs (*.jsonl)
70├── skills/ # Managed/lokale Skills
71└── workspace/ # Agent-Workspace (= das "Gehirn")
72 ├── AGENTS.md # Betriebsanweisungen (in JEDER Session geladen)
73 ├── SOUL.md # Persönlichkeit, Ton, Grenzen (jede Session)
74 ├── USER.md # Nutzerprofil (jede Session)
75 ├── TOOLS.md # Tool-Hinweise (jede Session)
76 ├── IDENTITY.md # Name, Emoji, Vibe
77 ├── HEARTBEAT.md # Scheduled-Tasks / Cron-Checkliste
78 ├── MEMORY.md # Langzeit-Gedächtnis (nur private Sessions!)
79 ├── BOOTSTRAP.md # Einmal-Setup (nach Ausführung gelöscht)
80 ├── memory/ # Tages-Logs (YYYY-MM-DD.md)
81 ├── skills/ # Workspace-Skills
82 └── .git/ # Git-Backup (empfohlen!)
83```
84
85---
86
87## Referenzdateien — Wann was lesen
88
89Dieses Skill-Paket enthält detaillierte Referenzdateien. **Lies die relevante Datei
90BEVOR du eine Aktion durchführst.** Die Dateien liegen unter `references/` im Skill-Verzeichnis.
91
92| Aufgabe | Referenzdatei | Inhalt |
93|---|---|---|
94| Installation & erste Schritte | `references/installation.md` | npm/pnpm, Docker, VPS-Setup, Onboarding-Wizard |
95| openclaw.json bearbeiten | `references/config-reference.md` | Vollständige Feld-Referenz basierend auf realer Config (auth, models, agents, tools, gateway…) |
96| Dashboard (Control UI) | `references/dashboard.md` | Alle Dashboard-Bereiche, Zugriff, Troubleshooting |
97| Workspace-Dateien schreiben | `references/workspace-files.md` | AGENTS.md, SOUL.md, USER.md, HEARTBEAT.md, MEMORY.md Templates |
98| Channels einrichten | `references/channels.md` | Telegram (komplett!), WhatsApp, Discord, Slack, Signal + Troubleshooting |
99| Memory & Compaction tunen | `references/memory-system.md` | memoryFlush, memorySearch, Compaction, Semantic Search, Decay |
100| Docker-Deployment | `references/docker-setup.md` | docker-compose, Sandbox, alpine/openclaw, Permissions |
101| Security-Hardening | `references/security-hardening.md` | dmPolicy, Token-Rotation, Allowlists, Sandboxing, CIS-Style |
102| Skills entwickeln/installieren | `references/skills-guide.md` | SKILL.md-Format, ClawHub, Workspace-Skills, Security-Review |
103| Multi-Agent-Routing | `references/multi-agent.md` | agents.list, bindings, accountId, agentId, Isolation |
104| CLI-Referenz | `references/cli-reference.md` | Alle Befehle mit Syntax und Beispielen |
105| Dashboard / Control UI | `references/dashboard.md` | Sidebar-Navigation, Bereiche, CORS, Config, Troubleshooting |
106| Nodes & Remote-Zugriff | `references/nodes-and-remote.md` | Node-Typen, Pairing, Headless-Nodes, Bonjour/mDNS, Exec-Approvals |
107| Tailscale-Integration | `references/tailscale-integration.md` | Serve vs Funnel vs Tailnet-Bind, SSH-Tunnel, Auth, Config-Beispiele |
108| Praxis-Beispiele | `references/examples.md` | 7 vollständige Setup-Szenarien (Einsteiger → Multi-Agent → Kosten-optimiert) |
109| Troubleshooting | `references/troubleshooting.md` | Häufige Fehler, Logs, Diagnose-Schritte |
110| Tricks & Power-User | `references/tricks-and-hacks.md` | Community-Tipps, Cost-Saving, Obsidian, Surge, Watchdog |
111
112---
113
114## Schnellreferenz: Wichtigste CLI-Befehle
115
116```bash
117# Status & Diagnose
118openclaw --version # CalVer-Version
119openclaw doctor # Gesundheitscheck (IMMER!)
120openclaw doctor --fix # Auto-Fix
121openclaw status # Kurzer Status
122openclaw dashboard # Browser-UI (Port 18789)
123
124# Gateway
125openclaw gateway start|stop|restart|status
126openclaw gateway install # systemd user service
127openclaw gateway log # Logs (= journalctl --user -u openclaw-gateway -f)
128
129# Channels
130openclaw channels list|add|remove|restart
131openclaw channels status --probe # Live-Check
132
133# Models
134openclaw models list|set <provider/model>
135
136# Skills
137openclaw skills list|reload
138clawhub search|install|update <name>
139
140# Memory & Sessions
141openclaw sessions list|clean
142openclaw memory flush
143
144# Update
145pnpm add -g openclaw@latest && pnpm approve-builds -g && openclaw doctor
146
147# Nodes & Devices
148openclaw nodes status # Verbundene Nodes anzeigen
149openclaw nodes describe --all # Node-Capabilities auflisten
150openclaw nodes run --node <id> -- <cmd> # Befehl auf Node ausführen
151openclaw devices list # Pairing-Requests anzeigen
152openclaw devices approve <requestId> # Node-Pairing genehmigen
153
154# Channel-Pairing
155openclaw pairing list|approve <channel> <code>
156
157# Config
158openclaw config list|get|set|validate
159
160# Security
161openclaw token:rotate --force --length 64
162openclaw security audit --deep
163```
164
165---
166
167## Sicherheits-Grundregeln (IMMER beachten!)
168
1691. **Gateway bind: `loopback`** — Niemals `lan` oder `0.0.0.0` ohne Tailscale/VPN
1702. **dmPolicy: `allowlist`** — Niemals `open` in Produktion
1713. **Token: mindestens 64 Zeichen** — `openclaw token:rotate --force --length 64`
1724. **Credentials: `chmod 600`** — `chmod 600 ~/.openclaw/credentials/*`
1735. **Skills reviewen** — Vor Installation Quellcode prüfen, ClawHub "Hide Suspicious" nutzen
1746. **Kein root** — OpenClaw als eigener User betreiben
1757. **Workspace = privat** — Git-Backup in **privates** Repo, MEMORY.md nie in Groups laden
1768. **API-Spending-Limits** — Beim Provider setzen, bevor Heartbeat aktiviert wird
1779. **Sandbox für Tools** — `tools.exec.host: "sandbox"` wenn möglich
178
179---
180
181## Workflow: Docs nachschlagen
182
183### Offizielle Docs-URLs (für web_fetch)
184```
185https://docs.openclaw.ai # Hauptseite
186https://docs.openclaw.ai/install/docker # Docker
187https://docs.openclaw.ai/concepts/agent-workspace # Workspace
188https://docs.openclaw.ai/concepts/memory # Memory
189https://docs.openclaw.ai/concepts/multi-agent # Multi-Agent
190https://docs.openclaw.ai/channels/<name> # Channel-Guides
191https://docs.openclaw.ai/models # Models
192https://docs.openclaw.ai/tools/skills # Skills
193https://docs.openclaw.ai/security # Security
194```
195
196Alternative Docs-Mirror: `https://openclaw.im/docs/`
197
198### Community-Suche (für web_search)
199```
200"openclaw <Thema> 2026 tips"
201"openclaw <Problem> fix workaround github issue"
202"openclaw.json <Section> advanced configuration"
203```
204
205Quellen-Priorität:
2061. `github.com/openclaw/openclaw` (Issues, Discussions, AGENTS.md)
2072. `docs.openclaw.ai` / `openclaw.im/docs`
2083. Community-Guides (Simon Willison TIL, Substack, Medium)
2094. Reddit r/selfhosted, Hacker News
210
211---
212
213## Backup-Strategie (IMMER vor Änderungen)
214
215```bash
216# Snapshot der Config
217cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
218
219# Versioniertes Backup
220tar czf ~/openclaw-backup-$(date +%Y%m%d_%H%M%S).tar.gz ~/.openclaw/
221
222# Git-Backup des Workspace (empfohlen)
223cd ~/.openclaw/workspace && git add -A && git commit -m "backup: $(date +%Y%m%d_%H%M%S)"
224```
225
226---
227
228## Protokoll: Sichere Config-Änderung
229
2301. `openclaw --version` → Version notieren
2312. Relevante Referenzdatei lesen (siehe Tabelle oben)
2323. Live-Docs fetchen (URLs oben)
2334. `cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak`
2345. Änderung durchführen
2356. `openclaw doctor`
2367. `systemctl --user restart openclaw-gateway`
2378. `openclaw status` + Funktionstest im Channel
2389. Bei Fehler: `cp ~/.openclaw/openclaw.json.bak ~/.openclaw/openclaw.json && systemctl --user restart openclaw-gateway`