Safety

Operations

9 min

Operate OpenClaw with update, doctor, status, logs, backups, usage checks, release hygiene, troubleshooting, and recovery habits.

Running OpenClaw long term is an operations problem. The goal is to keep the Gateway healthy, credentials valid, channels connected, memory searchable, and automation understandable.

Daily Commands

bash
openclaw status
openclaw gateway status
openclaw channels status
openclaw doctor

Use these before deeper debugging. Most failures are visible as Gateway health, channel login, model auth, or plugin readiness problems.

Logs

bash
openclaw logs
openclaw logs --follow

When debugging a specific channel or plugin, combine logs with targeted status:

bash
openclaw channels status --probe
openclaw plugins doctor <plugin>

Updates

OpenClaw releases frequently. Update deliberately:

bash
openclaw update
openclaw doctor
openclaw gateway status

If installed through npm or pnpm, use your package manager when that is your chosen control plane:

bash
npm install -g openclaw@latest
openclaw doctor

After an update, verify model auth, channel status, plugins, and any recurring automation.

Backups

Back up before risky changes:

bash
openclaw backup create --verify
openclaw backup verify ./2026-03-09T08-00-00.000+08-00-openclaw-backup.tar.gz

Also keep human-authored workspace files in version control. Do not commit local channel state, browser profiles, auth tokens, or private transcripts.

Usage and Cost

bash
openclaw status --usage
openclaw sessions list --usage

Usage footer behavior can be configured through slash commands and hooks:

text
/usage tokens
/usage full

Check provider dashboards for billing truth. OpenClaw usage data is operational guidance, not a billing ledger.

Troubleshooting by Layer

SymptomStart here
Dashboard does not loadopenclaw gateway status, bind/auth config
Model does not replyopenclaw models status, credential profile
Channel receives but no replypairing, routing, group activation, agent busy state
Tool missingtool policy, provider restrictions, plugin availability
Browser failsbrowser status, profile, CDP, sandbox network
Automation did not runcron/task status, credentials, session isolation
Memory seems wrongMEMORY.md, daily notes, session, compaction, QMD index, active memory
Node failsdevice pairing, node status, permissions

Health After Config Changes

Run a small smoke test after changing auth, models, tools, plugins, channels, or sandboxing:

bash
openclaw doctor
openclaw gateway status
openclaw agent --agent main --message "Reply with a one-sentence health check."
openclaw status --usage

Operational Habits

  1. Change one layer at a time.
  2. Keep a backup before major config changes.
  3. Prefer CLI status over guessing from chat behavior.
  4. Re-run doctor after updates.
  5. Keep automation observable.
  6. Review plugins after updates.
  7. Document channel bindings and agent ownership.

Operate the Gateway, not just the agent

When OpenClaw fails, the model is often not the problem. Debug the Gateway, channel, auth, plugin, tool policy, sandbox, and session layers separately.

Continue with practice

You have finished the core ideas of Operations.

If you want to turn the idea into something reusable, continue practicing on AgentWay.