360 Secure SkillHub
360 安全技能中心

Openclaw Auto Updater Litiao

这是OpenClaw的自动更新工具,核心功能是通过带时区配置的cron定时任务,自动更新OpenClaw本体及所有安装技能,提供模拟运行、仅更核心等安全模式,生成含更新/未变更/失败状态的简洁报告。适用于日常/每周无人值守维护、定期升级;输入为cron命令配置任务,输出为结构化更新结果摘要。

litiao1224
litiao1224
热度 68.60
最近更新 2026-05-17 15:04:09
分类:自动化依赖:第三方 API应用场景:自动化脚本 / DevOps / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-auto-updater-litiao
Metadata
name
openclaw-auto-updater-litiao
description
Schedule automatic OpenClaw and skill updates with reliable cron templates, timezone-safe scheduling, and clear summary outputs. Use for hands-off maintenance, scheduled upgrades, and concise update reports.

OpenClaw Auto-Updater

Run scheduled updates for OpenClaw and installed skills using cron messages (no scripts required). Focus: safe scheduling, predictable output, and minimal manual work.

What it does

  • Runs OpenClaw updates on a fixed schedule
  • Updates all installed skills via ClawHub
  • Sends a concise, readable summary (updated / unchanged / failed)

Setup (daily updates)

Daily at 03:30 Europe/Berlin:

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."

Weekly (Sunday 04:00)

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."

Safer modes

Dry run (no changes):

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."

Core only (skip skills):

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."

Summary format (recommended)

🔄 OpenClaw Auto-Update

OpenClaw: 2026.2.1 → 2026.2.2 (OK)
Skills updated: 3
Skills unchanged: 12
Errors: none

Troubleshooting

  • If updates fail, include the error in the summary.
  • Schedule off-hours; updates may restart the gateway.
  • Use explicit timezones to avoid surprises.

References

  • references/agent-guide.md → deeper implementation notes
  • references/summary-examples.md → formatting examples