OpenClaw Safe Ops
When To Apply
Apply this skill before any high-risk OpenClaw operation:
openclaw gateway restart|start|stop|install|uninstall|run|statusopenclaw config set|unsetopenclaw plugins install|update|uninstall|enable|disable- Manual edits to
~/.openclaw/openclaw.json
Safety Workflow
- Capture a backup before change:
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.manual.$(date +%Y%m%d-%H%M%S).bak
- Run the intended command.
- Validate immediately:
openclaw channels status --probeopenclaw status --deep
- If checks fail, rollback:
cp ~/.openclaw/openclaw.json.bak ~/.openclaw/openclaw.jsonopenclaw gateway restartopenclaw status --deep
Preferred Command Wrapper
For local terminal operations, prefer:
./scripts/openclaw-safe.sh <openclaw args...>
This wrapper auto-backs up config for risky actions, runs health checks, and rolls back on failure.
Output Requirements
When completing a risky operation, report:
- Command executed
- Backup path used
- Health check results
- Whether rollback was needed