Updating
Keep OpenClaw up to date.Recommended: openclaw update
The fastest way to update. It detects your install type (npm or git), fetches the latest version, runs openclaw doctor, and restarts the gateway.
--channel beta prefers beta, but the runtime falls back to stable/latest when
the beta tag is missing or older than the latest stable release. Use --tag beta
if you want the raw npm beta dist-tag for a one-off package update.
See Development channels for channel semantics.
Alternative: re-run the installer
--no-onboard to skip onboarding. For source installs, pass --install-method git --no-onboard.
Alternative: manual npm, pnpm, or bun
Root-owned global npm installs
Some Linux npm setups install global packages under root-owned directories such as/usr/lib/node_modules/openclaw. OpenClaw supports that layout: the installed
package is treated as read-only at runtime, and bundled plugin runtime
dependencies are staged into a writable runtime directory instead of mutating the
package tree.
For hardened systemd units, set a writable stage directory that is included in
ReadWritePaths:
OPENCLAW_PLUGIN_STAGE_DIR is not set, OpenClaw uses $STATE_DIRECTORY when
systemd provides it, then falls back to ~/.openclaw/plugin-runtime-deps.
Auto-updater
The auto-updater is off by default. Enable it in~/.openclaw/openclaw.json:
| Channel | Behavior |
|---|---|
stable | Waits stableDelayHours, then applies with deterministic jitter across stableJitterHours (spread rollout). |
beta | Checks every betaCheckIntervalHours (default: hourly) and applies immediately. |
dev | No automatic apply. Use openclaw update manually. |
update.checkOnStart: false).
After updating
Migrates config, audits DM policies, and checks gateway health. Details: Doctor
Rollback
Pin a version (npm)
npm view openclaw version shows the current published version.
Pin a commit (source)
git checkout main && git pull.
If you are stuck
- Run
openclaw doctoragain and read the output carefully. - For
openclaw update --channel devon source checkouts, the updater auto-bootstrapspnpmwhen needed. If you see a pnpm/corepack bootstrap error, installpnpmmanually (or re-enablecorepack) and rerun the update. - Check: Troubleshooting
- Ask in Discord: https://discord.gg/clawd
Related
- Install Overview — all installation methods
- Doctor — health checks after updates
- Migrating — major version migration guides