Install
openclaw skills install gw-self-healSelf-healing watchdog for OpenClaw gateway. Auto-backup openclaw.json before changes, health-check the gateway process, and auto-rollback to last known good...
openclaw skills install gw-self-healAutomated self-healing system for OpenClaw gateway failures including config corruption, process crashes, and auth failures.
Three-layer protection:
openclaw.json on every successful health checkRun the setup script to install the watchdog:
bash scripts/setup-watchdog.sh
This will:
~/.openclaw/watchdog.sh# Check watchdog status
bash scripts/watchdog-status.sh
# Force backup current config
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
# View watchdog logs
cat ~/.openclaw/watchdog.log | tail -20
# Disable watchdog
crontab -l | grep -v watchdog | crontab -
| Level | Condition | Action | Auto? |
|---|---|---|---|
| 1 | Process dead, config OK | Restart gateway | ✅ |
| 2 | Process alive, health check fail | Rollback config + restart | ✅ |
| 3 | No valid backup exists | Log alert, notify if possible | ⚠️ Manual |
.bakopenclaw.json edit, copy to .bak.prev.broken.<timestamp> for debuggingAll watchdog activity logged to ~/.openclaw/watchdog.log with timestamps.
references/launchd.md)references/systemd.md)references/docker.md)