Install
openclaw skills install auto-updater-proClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.
openclaw skills install auto-updater-proEnhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.
Version: 1.1.0 (Updated 2026-02-22)
What's New:
Note: This is an enhanced version of the original auto-updater skill with production-ready features.
This skill sets up a daily cron job that:
clawdbot doctor or package manager)clawdhub update --all)Ask Clawdbot to set up the auto-updater:
Set up daily auto-updates for yourself and all your skills.
Or manually add the cron job:
clawdbot cron add \
--name "Daily Auto-Update" \
--cron "0 4 * * *" \
--tz "America/Los_Angeles" \
--session isolated \
--wake now \
--deliver \
--message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated."
For production use, add these settings to your cron job:
{
"schedule": {
"expr": "0 4 * * *",
"kind": "cron",
"tz": "Asia/Shanghai"
},
"missedRunPolicy": "run-immediately",
"payload": {
"kind": "agentTurn",
"message": "...",
"timeoutSeconds": 600
}
}
Key Settings:
missedRunPolicy: "run-immediately" - Auto-runs if Gateway was offline at scheduled timetimeoutSeconds: 600 - Allow 10 minutes for updates to completetz: "Asia/Shanghai" - Set to your timezone| Option | Default | Description |
|---|---|---|
| Time | 4:00 AM | When to run updates (use --cron to change) |
| Timezone | System default | Set with --tz |
| Delivery | Main session | Where to send the update summary |
| Timeout | 300s | Recommended: 600s for npm updates |
| Missed Run | None | Recommended: run-immediately |
For npm/pnpm/bun installs:
npm update -g clawdbot@latest
# or: pnpm update -g clawdbot@latest
# or: bun update -g clawdbot@latest
For source installs (git checkout):
clawdbot update
Always run clawdbot doctor after updating to apply migrations.
clawdhub update --all
This checks all installed skills against the registry and updates any with new versions available.
After updates complete, you'll receive a message like:
🔄 Daily Auto-Update Complete
**Clawdbot**: Updated to v2026.1.10 (was v2026.1.9)
**Skills Updated (3)**:
- prd: 2.0.3 → 2.0.4
- browser: 1.2.0 → 1.2.1
- nano-banana-pro: 3.1.0 → 3.1.2
**Skills Already Current (5)**:
gemini, sag, things-mac, himalaya, peekaboo
No issues encountered.
To prevent state loss during Gateway restarts, the update process logs every step:
~/.openclaw/workspace/memory/openclaw-update-YYYY-MM-DD.md
# OpenClaw 更新日志 YYYY-MM-DD
## 更新前
- 开始时间:HH:mm:ss
- 当前版本:x.x.x
- 最新版本:x.x.x
## 更新中
- 更新开始:HH:mm:ss
- 更新命令:...
- 更新完成:HH:mm:ss
- 验证版本:x.x.x
## 更新后
- 状态:已是最新 / 已更新 / 更新失败
- 报告发送:成功 / 失败
- 完成时间:HH:mm:ss
## 更新内容
(从 CHANGELOG 或 npm 获取)
Phase 1: Preparation
Phase 2: Check for Updates
Phase 3: Execute Update
openclaw update run or npm install -g openclaw@latestPhase 4: Persist State
Phase 5: Send Report
Phase 6: Delay Restart (Critical!)
Check for updates without applying:
clawdhub update --all --dry-run
View current skill versions:
clawdhub list
Check Clawdbot version:
clawdbot --version
cron.enabled in configclawdbot cron listmissedRunPolicy: "run-immediately"If an update fails, the summary will include the error. Common fixes:
clawdbot doctor to diagnoseIf Gateway restarts during update (common with npm installs):
~/.openclaw/workspace/memory/openclaw-update-*.mdopenclaw --versionRemove the cron job:
clawdbot cron remove "Daily Auto-Update"
Or disable temporarily in config:
{
"cron": {
"enabled": false
}
}
Choose a time when you're unlikely to be using the system:
"expr": "0 4 * * *" // 4:00 AM
Prevents missing updates if Gateway is offline:
"missedRunPolicy": "run-immediately"
Less intrusive than chat messages:
Always write to log file before sending reports:
Add 30-second delay before any Gateway restart:
sleep 30
Improvements:
Bug Fixes:
Published: 2026-02-22
Maintainer: OpenClaw Team
License: MIT