dl-openclaw.is
English
简体中文繁體中文EnglishРусскийفارسی

HomeGuidesUpdate and uninstall

Update and uninstall

How to upgrade and roll back OpenClaw: openclaw update, switching between the stable, beta and dev channels; removing the background service, configuration and program completely; which files to copy to a new computer.

Updating

npm, pnpm, bun and source installs all use the same command:

Update
openclaw update
openclaw update status

The new version is prepared alongside the running one rather than on top of it, and the switch happens the next time the Gateway starts. If something goes wrong, the old version is the rollback target. The desktop apps (Windows Hub and the Mac menu bar app) check for updates inside the app.

By default OpenClaw checks for updates daily, sending the version, operating system, Node version, CPU architecture and approximate region to the Foundation's update service, but no prompts, messages, keys or file paths. To opt out, set update.checkOnStart to false or the environment variable OPENCLAW_NO_AUTO_UPDATE=1; manual updates still work.

Three channels

ChannelWhat it isHow to switch
stableStable releases, npm tag latestopenclaw update --channel stable
betaBetas, promoted unchanged to stable when fineAdd --beta to the install script
devThe latest code on the main branchopenclaw update --channel dev
Old tools laid out on a bench: updating, rolling back and uninstalling all have ready-made commands
Old tools laid out on a bench: updating, rolling back and uninstalling all have ready-made commands flattop341 from South Carolina, USA, 3rd Rock, CC BY 2.0

Uninstalling

First run openclaw doctor --fix; it clears temporary runtimes left behind by updates, which the uninstall command does not cover. Then:

Uninstall
openclaw uninstall --all

Without --all, the interactive prompt preselects only the background service; tick state, workspace and app too for complete removal. Finally remove the command-line program itself: npm rm -g openclaw for npm installs. Uninstall Windows Hub under Settings, Apps; drag the Mac app to the Trash.

Moving to a new computer

Install OpenClaw on the new machine, copy ~/.openclaw and the workspace folder over from the old one, run openclaw doctor and restart the Gateway service. Copy both; leaving either one out gives you an incomplete assistant.

The Gateway will not start after an update?

Read the error in openclaw logs --follow. On Linux, if the systemd unit was edited to point straight at a specific release, the update refuses to run and tells you the launcher path to restore.

Can I go back to the previous version?

Yes, the update mechanism keeps the previous release as a rollback target. See the docs page "Updating" for the exact steps.

The background service keeps running after uninstalling?

The command-line program was removed first. Remove the service by hand as the docs describe: the LaunchAgent on macOS, the systemd user service on Linux, the scheduled task on Windows.

Read nextAfter the first run

Also worth reading

Topics on this page: OpenClaw update, OpenClaw uninstall, OpenClaw upgrade