Keeps OpenClaw and installed ClawHub skills up to date automatically.
openclaw CLI — required for openclaw update, openclaw gateway restart, and notificationsclawhub CLI — required for clawhub list, clawhub inspect, and clawhub updatepython3 — required for loading config.jsonbash 4+ — required by the shell scripts for associative arrays and other modern Bash featuresbash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/install-cron.sh
bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/update.sh
bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/update.sh --dry-run
Create ~/.openclaw/workspace/skills/openclaw-auto-update/config.json:
{
"schedule": "0 2 * * *",
"skipSkills": [],
"skipPreRelease": true,
"restartGateway": true,
"notify": true,
"notifyTarget": null
}
See references/config-schema.md for all options and examples.
config.json with python3 and merges defaultsopenclaw update --yes --no-restart; in preview mode it logs the equivalent openclaw update --dry-run --yes --no-restart command without making changesclawhub list, with workspace directory fallbackclawhub inspect to skip pre-releases when skipPreRelease: trueclawhub update --no-input for each eligible installed skill; in preview mode it only logs clawhub update --all because the installed clawhub CLI does not support update dry runsskipSkillsopenclaw message send --target -m when notifyTarget is set, otherwise openclaw system event --text --mode now # Change to 3 AM weekly on Sunday
bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/install-cron.sh --schedule "0 3 * * 0"
# Uninstall cron job
bash ~/.openclaw/workspace/skills/openclaw-auto-update/scripts/install-cron.sh --uninstall
tail -f /tmp/openclaw-auto-update.log
Add to config.json:
{ "skipSkills": ["my-custom-skill", "work-internal"] }
共 1 个版本