Install
openclaw skills install openclaw-guardian-ultraDeploy and manage a Guardian watchdog process for OpenClaw Gateway. Provides automated health monitoring, self-repair via `doctor --fix`, git-based workspace...
openclaw skills install openclaw-guardian-ultraGuardian is a standalone bash watchdog that keeps OpenClaw Gateway alive 24/7.
Repair ladder:
openclaw doctor --fix (up to 3 attempts)git reset --hard to last stable commit, restart Gatewaycd ~/.openclaw/workspace
git config --global user.email "guardian@example.com"
git config --global user.name "Guardian"
git init && git add -A && git commit -m "initial"
Skip if repo already exists. Without git, doctor --fix still works; rollback is skipped.
Copy scripts/guardian.sh from this skill to ~/.openclaw/guardian.sh:
cp scripts/guardian.sh ~/.openclaw/guardian.sh
chmod +x ~/.openclaw/guardian.sh
Container / no systemd (nohup):
nohup ~/.openclaw/guardian.sh >> /tmp/openclaw-guardian.log 2>&1 &
Linux VPS with systemd: See references/setup.md → Pattern B.
Add to ~/.openclaw/start-gateway.sh (before the final exec line):
pkill -f "guardian.sh" 2>/dev/null || true
nohup /home/ubuntu/.openclaw/guardian.sh >> /tmp/openclaw-guardian.log 2>&1 &
export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/..."
Or add to start-gateway.sh as a persistent export.
pgrep -a -f "guardian.sh" # confirm process running
tail -f /tmp/openclaw-guardian.log # watch live logs
All settings via environment variables. Defaults work out of the box.
See references/setup.md for full variable reference, systemd config, and architecture diagram.
gw-watchdog.sh — run both for layered resilience/tmp/openclaw-guardian.log