Install
openclaw skills install linz-openclaw-updaterAutomatically check for and install OpenClaw updates. Use when the user wants to update OpenClaw to the latest version, schedule automatic updates, or check the current version. Triggers on phrases like "update openclaw", "upgrade openclaw", "check for updates", "auto-update openclaw".
openclaw skills install linz-openclaw-updaterAutomatically check for and install OpenClaw updates with backup and rollback support.
This skill provides automated OpenClaw update capabilities:
openclaw --version
bash ~/.openclaw/workspace/skills/openclaw-updater/scripts/update-openclaw.sh --dry-run
bash ~/.openclaw/workspace/skills/openclaw-updater/scripts/update-openclaw.sh
bash ~/.openclaw/workspace/skills/openclaw-updater/scripts/update-openclaw.sh --force
Add to crontab for daily update checks at 3 AM:
0 3 * * * /bin/bash ~/.openclaw/workspace/skills/openclaw-updater/scripts/update-openclaw.sh >> ~/.openclaw/logs/cron-update.log 2>&1
Or use OpenClaw's built-in cron:
{
"name": "openclaw-auto-update",
"schedule": { "kind": "cron", "expr": "0 3 * * *" },
"payload": {
"kind": "systemEvent",
"text": "Run OpenClaw auto-updater: bash ~/.openclaw/workspace/skills/openclaw-updater/scripts/update-openclaw.sh"
},
"sessionTarget": "main"
}
npm install -g @openclaw/core@latest~/.openclaw/logs/auto-update.log~/.openclaw/backups/openclaw-backup-YYYYMMDD-HHMMSS.tar.gzOpenClaw requires Node.js >= 22.16.0. If you see version warnings:
# Check current Node version
node --version
# Update Node.js (using n or nvm)
n install 22.16.0
# or
nvm install 22.16.0 && nvm use 22.16.0
cat ~/.openclaw/logs/auto-update.lognpm config get prefixsudo npm install -g @openclaw/core@latestIf update causes issues, restore from backup:
cd ~
tar -xzf ~/.openclaw/backups/openclaw-backup-YYYYMMDD-HHMMSS.tar.gz
| Option | Description |
|---|---|
--dry-run | Check for updates without installing |
--force | Force update even if versions match |
--help | Show usage information |
update-openclaw.sh - Main update script with backup/restore capabilities