OpenClaw Genie
OpenClaw changes fast, and its docs are the only source that stays current. This skill holds the decisions and the safety rules. It does not restate the CLI, the config keys or the channel list.
Read the docs first
OpenClaw publishes its docs for agents: an index at https://docs.openclaw.ai/llms.txt, and every page as Markdown when you add .md to its URL. The docs list no MCP server or agent skill for reading the docs or operating OpenClaw. Its openclaw mcp serve command is different: it exposes channel conversations to an MCP client (https://docs.openclaw.ai/cli/mcp/serve.md). Do not start it without the user's say-so.
- Fetch
https://docs.openclaw.ai/llms.txt. - Fetch the page you need, for example
https://docs.openclaw.ai/install.md. - Run
openclaw --versionbefore you trust a key name. A page may describe a newer release than the one installed.
Do not quote a version, a channel count or a model id from memory. Read it from the page.
Install
- Read the Node requirement from
npm view openclaw enginesandhttps://docs.openclaw.ai/install.md. Do not rely on a version you remember. - Prefer the package manager:
npm install -g openclaw@latest, thenopenclaw onboard --install-daemon. On npm 12 and npm 11.16+ add--allow-scripts=openclaw, or npm blocks the install scripts. On npm 11.15 and earlier leave the flag out. - Do not run
curl ... | bashforinstall.sh. The install page offers it as the fast path but gives no checksum or signature step for the script. If the user wants it, say what it does, give the command, and let them run it. - After install run
openclaw doctor,openclaw gateway statusandopenclaw security audit.
Configuration and secrets
- The config file is
~/.openclaw/openclaw.json. Edit it withopenclaw config get/set/patch/unset, then runopenclaw config validate. - Secrets never go into the file as plaintext, into shell history or onto a command line. Use a SecretRef:
{ source: "env" | "file" | "exec" | "store", provider: "default", id: "..." }. An env value may be written as"${VAR}". The form{ "$secret": "NAME" }is not valid. - Plaintext stays readable by the agent. After you migrate credentials, run
openclaw secrets audit --check. - Set
gateway.auth.modeexplicitly when the gateway token or password is a SecretRef. - For id rules and provider blocks read
https://docs.openclaw.ai/gateway/secrets.mdandhttps://docs.openclaw.ai/gateway/secrets/secretref-contract.md.
Channels
- Read
https://docs.openclaw.ai/channels.md. It is generated and labels each channel as core, bundled plugin, official plugin or external plugin. Do not assume a channel ships in core. - The docs suggest Telegram first. Run
openclaw channels add --channel telegram --use-env. It readsTELEGRAM_BOT_TOKENfrom the environment and does not copy the token intoopenclaw.json. The Gateway service needs the same variable, so keep it in the service's environment (in Docker, the Compose.env). Do not use the--tokenflag: it puts the token in shell history. - For iMessage the docs prefer the native
imsgchannel for new setups. - An "external plugin" is maintained outside the OpenClaw repo. Tell the user before you install one.
- Set who may message the bot (DM pairing or an allowlist) before you connect a channel to an agent that has tools. See
https://docs.openclaw.ai/gateway/security/access-control.md.
Exposure and security
The docs' threat model says the assistant can run arbitrary shell commands, read and write files, and send messages. Browser control gives the model a real browser. Whoever reaches the gateway with valid auth gets that power. Treat the gateway as a control plane.
- Outside a container, keep
gateway.bindat"loopback". In Docker, follow Deployment:lanin the container, published on127.0.0.1only. For remote access prefer an SSH tunnel or Tailscale Serve. - The
bindvalues areloopback,auto,lan,tailnetandcustom.autois the default when the setting is unset in a container, and it resolves to0.0.0.0. Do not leave it unset in a container, and do not uselan,tailnet,customorautounless gateway auth (token, password or a correctly set up trusted proxy) is on and a firewall (or a127.0.0.1host publish in Docker) limits the source addresses. Tell the user that this gives the reachable party shell and browser control. Work throughhttps://docs.openclaw.ai/gateway/security/exposure-runbook.mdfirst. - Do not port-forward the gateway or put it on the public internet without an identity-aware proxy.
- Docker bypasses UFW. A published port (
-por Composeports:) routes around hostINPUTrules, so a UFW deny does not protect it. Enforce the rule in theDOCKER-USERchain. The rules are inhttps://docs.openclaw.ai/gateway/security/network-exposure.md. Verify with a port scan from outside. - Leave every
dangerously*config key unset. Do not enable one to clear an error. - Do not point browser control at a profile that holds logged-in sessions the agent should not use.
- Local onboarding sets
tools.profileto"full"when no profile is set (https://docs.openclaw.ai/gateway/config-tools/tool-policy.md). For an agent that handles untrusted content (a public group, open DMs), narrow the profile, run it in a sandbox, and deny risky tools such asgateway,cron,sessions_spawnandsessions_send. The deny list and sandbox settings are athttps://docs.openclaw.ai/gateway/security/tool-permissions.md. - Run
openclaw security auditand fix what it reports. Add--deepfor live gateway checks.
Deployment
- Docker: follow
https://docs.openclaw.ai/install/docker.md. The setup script isscripts/docker/setup.shin the repo. - The official Docker flow is open by default. The repo's
docker-compose.ymlpublishes${OPENCLAW_GATEWAY_PORT:-18789}:18789on all host interfaces, and the setup runs the gateway with--bind ${OPENCLAW_GATEWAY_BIND:-lan}(seehttps://docs.openclaw.ai/install/docker/networking-and-storage.md, "LAN vs loopback"). On a public host, change the published port to127.0.0.1:18789:18789, or add theDOCKER-USERrules beforedocker compose up. Keepbindatlaninside the container, since the docs sayloopbackmakes the published port unreachable. Reach the Control UI over an SSH tunnel or Tailscale. - Cloud hosts (Fly.io, Hetzner, GCP and others) each have a page under
https://docs.openclaw.ai/install/. Find it inllms.txt. Keep secrets in the host's secret store, not on a command line. - Back up before an upgrade or migration with
openclaw backup create --verify. Never copy live.sqlite,-wal,-shmor-journalfiles as a backup. A backup holds auth profiles and channel and provider credentials, so store it like a secret. Seehttps://docs.openclaw.ai/install/backups.md.
Pitfalls
- Answering from a remembered config schema. Fetch the page and check
openclaw --version. - Writing a bot token into
openclaw.jsonor shell history. A.envread through--use-envis the documented place, and it must not be committed or world-readable. - Binding to the LAN "just to test" and leaving it.
- Trusting UFW for a Docker-published port.
- Installing an external plugin without telling the user.
- Quoting a model id from memory. Read
https://docs.openclaw.ai/providers/models.md. - Leaving an agent on the
fulltool profile after it faces untrusted senders.
Files
references/sources.md: read when you need the official page behind a claim in this skill before you repeat it.
Related skills
None.

Scan to join WeChat group