OpenClaw Update Skill
A skill for checking and applying OpenClaw updates.
Commands
Check Status
Check the current OpenClaw version and available updates:
openclaw update status
openclaw update status --json
Run Update (pnpm)
Update OpenClaw using pnpm (for pnpm installations):
# Check current version
pnpm list -g openclaw
# Update to latest version
pnpm add -g openclaw
# Restart gateway after update
openclaw gateway restart
Gateway Management
Restart OpenClaw gateway after update:
openclaw gateway restart
openclaw gateway status
pnpm Upgrade Workflow
For pnpm-installed OpenClaw:
# 1. Check current version
pnpm list -g openclaw
# 2. Update to latest
pnpm add -g openclaw
# 3. Restart gateway
openclaw gateway restart
# 4. Verify update
openclaw update status
Use Cases
- Automatic update checks: Configure cron jobs for periodic update checks
- Version monitoring: Monitor if a newer version is available
- Safe updates: Check before updating to ensure compatibility
- Update history: Track when updates were applied
- pnpm workflow: Special commands for pnpm-based installations
Environment Variables
OPENCLAW_UPDATE_CHECK_URL: Override update check URL (optional)
Example Workflow
# Check for updates (human-readable output)
openclaw update status
# Check for updates (JSON output for automation)
openclaw update status --json
# For pnpm installations, use pnpm to update
pnpm add -g openclaw
# Restart gateway after update
openclaw gateway restart
Notes
- Requires OpenClaw to be installed
- Supports semantic versioning for version comparison
- Provides detailed change logs when updating
- Supports rollback if needed (check documentation)