OpenClaw Updater (LinZ)
/install linz-openclaw-updater
OpenClaw Updater
Automatically check for and install OpenClaw updates with backup and rollback support.
Overview
This skill provides automated OpenClaw update capabilities:
- Check current vs latest version
- Perform safe updates with automatic backups
- Schedule periodic auto-updates via cron
- Dry-run mode to preview updates
Quick Start
Check Current Version
openclaw --version
Check for Updates (Dry Run)
bash ~/.openclaw/workspace/skills/openclaw-updater/scripts/update-openclaw.sh --dry-run
Perform Update
bash ~/.openclaw/workspace/skills/openclaw-updater/scripts/update-openclaw.sh
Force Reinstall
bash ~/.openclaw/workspace/skills/openclaw-updater/scripts/update-openclaw.sh --force
Setting Up Auto-Updates
Daily Auto-Update via Cron
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"
}
How It Works
- Version Check: Compares installed version against npm registry
- Backup: Creates timestamped backup of config and workspace
- Update: Runs
npm install -g @openclaw/core@latest - Verify: Confirms new version is installed
- Cleanup: Maintains only last 5 backups
Logs and Backups
- Logs:
~/.openclaw/logs/auto-update.log - Backups:
~/.openclaw/backups/openclaw-backup-YYYYMMDD-HHMMSS.tar.gz
Troubleshooting
Node.js Version Issues
OpenClaw 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
Update Fails
- Check logs:
cat ~/.openclaw/logs/auto-update.log - Verify npm permissions:
npm config get prefix - Try with sudo if needed:
sudo npm install -g @openclaw/core@latest
Rollback
If update causes issues, restore from backup:
cd ~
tar -xzf ~/.openclaw/backups/openclaw-backup-YYYYMMDD-HHMMSS.tar.gz
Script Options
| Option | Description |
|---|---|
--dry-run |
Check for updates without installing |
--force |
Force update even if versions match |
--help |
Show usage information |
Resources
scripts/
update-openclaw.sh- Main update script with backup/restore capabilities
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install linz-openclaw-updater - 安装完成后,直接呼叫该 Skill 的名称或使用
/linz-openclaw-updater触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
OpenClaw Updater (LinZ) 是什么?
Automatically check for and install OpenClaw updates. Use when the user wants to update OpenClaw to the latest version, schedule automatic updates, or check... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 150 次。
如何安装 OpenClaw Updater (LinZ)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install linz-openclaw-updater」即可一键安装,无需额外配置。
OpenClaw Updater (LinZ) 是免费的吗?
是的,OpenClaw Updater (LinZ) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Updater (LinZ) 支持哪些平台?
OpenClaw Updater (LinZ) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Updater (LinZ)?
由 zlin87468-maker(@zlin87468-maker)开发并维护,当前版本 v1.0.0。