Nightly Update Check
Check for OpenClaw updates and notify (never auto-install)
A nightly cron job that checks if a newer version of OpenClaw is available and messages me if there is one. The job itself never auto-installs -- it just checks and notifies. When I'm ready to update, I tell my agent to go ahead and it handles the rest.
Setup Prompt (Cron Job)
Create a cron job called "Nightly OpenClaw Update Check" at 3:00 AM
every day.
It should:
1. Run `npm view openclaw version` to get the latest version
2. Check the installed version from package.json
3. Compare them
4. Log the result in today's memory file
5. If an update IS available, message me with the new version number
6. NEVER run npm install or gateway update automatically
This is check-and-notify only. I'll update manually when ready.- Schedule:
0 3 * * *(3:00 AM daily) - Timeout: 60 seconds
Actually Installing Updates
When you get the notification and you're ready to update, just tell your agent:
Go ahead and update OpenClaw to the latest version.Your agent has a built-in gateway update.run tool that handles the whole process -- it pulls the update, restarts the gateway, and pings you when it's back online. You don't need to SSH in or run anything manually. The reason the cron job doesn't do this automatically is that updates restart the gateway, and you probably want to be around for that in case something goes wrong.