Install
openclaw skills install oc-self-updateCheck for OpenClaw updates and self-update the installation. Use when the user asks to update OpenClaw, check for updates, upgrade the bot, install a new ver...
openclaw skills install oc-self-updateOpenClaw is distributed as an npm package. Version scheme: YYYY.M.D (date-based).
Run the check script:
{ "tool": "exec", "command": "bash {baseDir}/scripts/check_update.sh" }
Report the result to the user clearly:
Only run after user confirms. Use the channel the user configured (default: latest):
{ "tool": "exec", "command": "npm install -g openclaw@latest" }
| Channel | Command |
|---|---|
| Stable (default) | npm install -g openclaw@latest |
| Beta | npm install -g openclaw@beta |
| Dev | npm install -g openclaw@dev |
After a successful install, inform the user that a gateway restart is required for changes to take effect. Do not restart automatically — tell the user to run openclaw restart or stop/start the daemon.
✅ OpenClaw updated: {old_version} → {new_version}
⚠️ Restart the gateway: openclaw restart
check_update.sh fails → report the error, suggest checking network or npm confignpm install fails → report the error as-is, do not retry without user input| User says | Action |
|---|---|
| "Check for updates" | Run check script, report current vs latest |
| "Update openclaw" | Run check script, if update available ask confirmation, then install |
| "Switch to beta channel" | Install openclaw@beta, remind to restart |
| "What version am I on?" | Run check script, report current version |