Auto-update your OpenClaw agent every night
npx skills add https://github.com/teylersf/openclaw-auto-updater --skill auto-updaterCLI를 사용하여 이 스킬을 설치하고 작업 공간에서 SKILL.md 워크플로 사용을 시작하세요.
A skill for OpenClaw that automatically updates your agent every night.
This skill sets up a nightly cron job that runs an external shell script — the script runs independently of the agent, so it works even when the gateway restarts.
When OpenClaw updates, the gateway restarts — which kills any running agent commands. By using a standalone shell script (not agent commands), the update runs successfully without needing the agent to be active.
Copy the auto-updater folder to your skills directory:
cp -r auto-updater ~/.openclaw/skills/
Restart your OpenClaw gateway:
openclaw gateway restart
Once installed, say "Set up auto-updater" and I'll:
~/update-openclaw.shLocation: ~/update-openclaw.sh
#!/bin/bash
set -e
LOG_FILE="$HOME/openclaw-update.log"
log() {
echo "[$(date)] $1" | tee -a "$LOG_FILE"
}
log "Starting OpenClaw update..."
openclaw gateway stop
openclaw update.run
openclaw gateway start
log "Update complete!"
The cron runs at 4 AM by default. To change:
crontab -e
# Change: 0 4 * * * ~/update-openclaw.sh
~/update-openclaw.sh
Check logs: ~/openclaw-update.log
Check the log:
cat ~/openclaw-update.log
Run manually to see errors:
~/update-openclaw.sh
crontab -l # List cron jobs