Auto-Updater Skill
Keep your OpenClaw and skills up to date automatically with daily update checks.
What It Does
This skill sets up a daily cron job that:
- 1. Updates OpenClaw itself (via
openclaw update) - Updates all installed skills/plugins
- Restarts the service via INLINECODE1
- Messages you with a summary of what was updated
Setup
Quick Start
Ask OpenClaw to set up the auto-updater:
CODEBLOCK0
Or manually add the cron job:
CODEBLOCK1
Configuration Options
| Option | Default | Description |
|---|
| Time | 4:00 AM | When to run updates (use --cron to change) |
| Timezone |
America/Chicago | Set with
--tz |
| Delivery | Main session | Where to send the update summary |
How Updates Work
OpenClaw Updates
The primary update command used is:
CODEBLOCK2
This updates the core CLI, builds any source checkouts, and updates all installed plugins/skills.
Skill Updates
Skills are updated as part of the openclaw update command. To update skills specifically:
CODEBLOCK3
Update Summary Format
After updates complete, you'll receive a message like:
CODEBLOCK4
Manual Commands
Check for updates without applying:
CODEBLOCK5
View current skill versions:
CODEBLOCK6
Check OpenClaw version:
CODEBLOCK7
Troubleshooting
Updates Not Running
- 1. Verify cron is enabled: check
cron.enabled in config - Confirm Gateway is running continuously
- Check cron job exists: INLINECODE6
Update Failures
If an update fails, the summary will include the error. Common fixes:
- - Permission errors: Ensure the Gateway user has passwordless sudo for
systemctl restart openclaw. - Network errors: Check internet connectivity
- Package conflicts: Run
openclaw doctor to diagnose
Disabling Auto-Updates
Remove the cron job:
CODEBLOCK8
Or disable temporarily in config:
CODEBLOCK9
Resources
自动更新技能
通过每日更新检查,自动保持您的OpenClaw及技能处于最新状态。
功能说明
本技能设置一个每日定时任务,用于:
- 1. 更新OpenClaw本体(通过openclaw update命令)
- 更新所有已安装的技能/插件
- 通过sudo systemctl restart openclaw重启服务
- 向您发送更新摘要信息
设置方法
快速开始
让OpenClaw为您配置自动更新:
为自身及所有技能设置每日自动更新。
或手动添加定时任务:
bash
openclaw cron add \
--name 每日自动更新 \
--cron 0 4 * \
--tz America/Chicago \
--session isolated \
--wake now \
--deliver \
--message 执行每日自动更新:运行openclaw update --yes后执行sudo systemctl restart openclaw。更新技能并报告更新内容。
配置选项
| 选项 | 默认值 | 说明 |
|---|
| 时间 | 凌晨4:00 | 更新执行时间(使用--cron修改) |
| 时区 |
America/Chicago | 通过--tz设置 |
| 投递方式 | 主会话 | 更新摘要的发送位置 |
更新机制
OpenClaw更新
主要使用的更新命令为:
bash
openclaw update --yes && sudo systemctl restart openclaw
该命令更新核心CLI、构建源码检出内容,并更新所有已安装的插件/技能。
技能更新
技能更新作为openclaw update命令的一部分执行。如需单独更新技能:
bash
openclaw skills update --all
更新摘要格式
更新完成后,您将收到类似以下格式的消息:
🔄 每日自动更新完成
OpenClaw:已更新至v2026.2.2-3(原版本v2026.2.1)
已更新技能(3个):
- - discord:2.0.3 → 2.0.4
- browser:1.2.0 → 1.2.1
- nano-banana-pro:3.1.0 → 3.1.2
已为最新技能(5个):
gemini、weather、reddit、twitter、yahoo-finance
服务已通过systemd成功重启。
手动命令
检查更新但不应用:
bash
openclaw update status
查看当前技能版本:
bash
openclaw skills list
检查OpenClaw版本:
bash
openclaw --version
故障排除
更新未执行
- 1. 确认定时任务已启用:检查配置中的cron.enabled
- 确认Gateway持续运行
- 检查定时任务是否存在:openclaw cron list
更新失败
如果更新失败,摘要中会包含错误信息。常见解决方法:
- - 权限错误:确保Gateway用户拥有systemctl restart openclaw的无密码sudo权限。
- 网络错误:检查网络连接
- 包冲突:运行openclaw doctor进行诊断
禁用自动更新
删除定时任务:
bash
openclaw cron remove 每日自动更新
或在配置中临时禁用:
json
{
cron: {
enabled: false
}
}
相关资源