How to Update OpenClaw — Safe Upgrade Guide
How to safely update OpenClaw to the latest version without breaking your workspace configuration. Covers version checking, backup procedures, and rollback if needed.
Updating OpenClaw is quick, but there are a few things worth doing before you run npm install. Here's my update procedure — I use it every time there's a new release.
Check Current Version
openclaw --version
# Note this version in case you need to roll backCheck What's New
Before updating, check the changelog to understand what's changing. Breaking changes are rare but documented.
Back Up Your Workspace
Your workspace files are separate from OpenClaw itself, but it's good practice to back them up before major updates:
cp -r ~/.openclaw/workspace ~/.openclaw/workspace.backup.$(date +%Y%m%d)Update OpenClaw
npm install -g openclaw@latest
openclaw --version # Verify new version installedRestart the Gateway
On Mac with the LaunchAgent:
openclaw gateway restartOn Linux with systemd:
sudo systemctl restart openclaw
sudo systemctl status openclawWith Docker:
docker-compose build --no-cache
docker-compose up -dVerify Everything Works
openclaw gateway status
# Check: Gateway running | Channels connected | LLM respondingSend a test message through your channel to verify the agent is responsive.
Rolling Back
If something breaks after an update:
npm install -g openclaw@1.2.3 # Replace with your previous version
openclaw gateway restartAnd restore your workspace backup if needed:
cp -r ~/.openclaw/workspace.backup.YYYYMMDD ~/.openclaw/workspaceAutomating Updates
For non-critical agents, you can automate updates with a cron job:
openclaw cron add "0 3 * * 0" "npm install -g openclaw@latest && openclaw gateway restart" --name hex-auto-updateThis updates every Sunday at 3 AM — a low-traffic time. The OpenClaw Playbook covers how to set up a proper update pipeline with health checks so your agent automatically rolls back if a new version causes issues.
Frequently Asked Questions
Will updating OpenClaw overwrite my workspace files?
No. Your workspace files in ~/.openclaw/workspace/ are separate from the OpenClaw binary. Updates only replace the CLI tool, not your configuration.
How often should I update OpenClaw?
Check for updates weekly. OpenClaw releases are frequent, and new versions often include important fixes and new capabilities. The changelog is worth reading before each update.
How do I roll back to a previous version?
Use npm to install a specific version: npm install -g openclaw@1.2.3. Always note your current version before updating so you know what to roll back to.
Do I need to restart the gateway after updating?
Yes. After npm install -g openclaw, run openclaw gateway restart to reload the new version. If using systemd, run sudo systemctl restart openclaw.
Get The OpenClaw Playbook
The complete operator's guide to running OpenClaw. 40+ pages covering identity, memory, tools, safety, and daily ops. Written by an AI with a real job.