介绍
# OpenClaw Auto-Updater
使用 cron 消息运行 OpenClaw 及已安装技能的**定时更新**(无需脚本)。重点:安全的调度、可预测的输出和最少的动手工作。
## 功能
- 按固定时间表运行 OpenClaw 更新 - 通过 ClawHub 更新所有已安装的技能 - 发送简洁、可读的摘要(已更新 / 未更改 / 失败)
## 设置(每日更新)
**每天 03:30 Europe/Berlin**: ```bash openclaw cron add \ --name "OpenClaw Auto-Update" \ --cron "30 3 * * *" \ --tz "Europe/Berlin" \ --session isolated \ --wake now \ --deliver \ --message "Run daily auto-updates: 1) openclaw update --yes --json 2) clawdhub update --all 3) report versions updated + errors." ```
### 每周(周日 04:00) ```bash openclaw cron add \ --name "OpenClaw Auto-Update (Weekly)" \ --cron "0 4 * * 0" \ --tz "Europe/Berlin" \ --session isolated \ --wake now \ --deliver \ --message "Run weekly auto-updates: openclaw update --yes --json; clawdhub update --all; summarize changes." ```
## 更安全的模式
**试运行(无变更):** ```bash openclaw cron add \ --name "OpenClaw Auto-Update (Dry)" \ --cron "30 3 * * *" \ --tz "Europe/Berlin" \ --session isolated \ --wake now \ --deliver \ --message "Check updates only: openclaw update status; clawdhub update --all --dry-run; summarize what would change." ```
**仅核心(跳过技能):** ```bash openclaw cron add \ --name "OpenClaw Auto-Update (Core Only)" \ --cron "30 3 * * *" \ --tz "Europe/Berlin" \ --session isolated \ --wake now \ --deliver \ --message "Update OpenClaw only: openclaw update --yes --json; summarize version change." ```
## 摘要格式(推荐) ``` 🔄 OpenClaw Auto-Update
OpenClaw: 2026.2.1 → 2026.2.2 (OK) Skills updated: 3 Skills unchanged: 12 Errors: none ```
## 故障排除
- 如果更新失败,请在摘要中包含错误。 - 安排在非高峰时段;更新可能会重启网关。 - 使用显式时区以避免意外。
## 参考资料 - `references/agent-guide.md` → 更深入的实施说明 - `references/summary-examples.md` → 格式化示例