Updating
Updating
Section titled “Updating”Keep OpenClaw up to date.
Recommended: openclaw update
Section titled “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.
openclaw updateTo switch channels or target a specific version:
openclaw update --channel betaopenclaw update --tag mainopenclaw update --dry-run # preview without applyingSee Development channels for channel semantics.
Alternative: re-run the installer
Section titled “Alternative: re-run the installer”curl -fsSL https://openclaw.ai/install.sh | bashAdd --no-onboard to skip onboarding. For source installs, pass --install-method git --no-onboard.
Alternative: manual npm or pnpm
Section titled “Alternative: manual npm or pnpm”npm i -g openclaw@latestpnpm add -g openclaw@latestAuto-updater
Section titled “Auto-updater”The auto-updater is off by default. Enable it in ~/.openclaw/openclaw.json:
{ update: { channel: "stable", auto: { enabled: true, stableDelayHours: 6, stableJitterHours: 12, betaCheckIntervalHours: 1, }, },}| 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. |
The gateway also logs an update hint on startup (disable with update.checkOnStart: false).
After updating
Section titled “After updating”Rollback
Section titled “Rollback”Pin a version (npm)
Section titled “Pin a version (npm)”npm i -g openclaw@<version>openclaw doctoropenclaw gateway restartTip: npm view openclaw version shows the current published version.
Pin a commit (source)
Section titled “Pin a commit (source)”git fetch origingit checkout "$(git rev-list -n 1 --before=\"2026-01-01\" origin/main)"pnpm install && pnpm buildopenclaw gateway restartTo return to latest: git checkout main && git pull.
If you are stuck
Section titled “If you are stuck”- Run
openclaw doctoragain and read the output carefully. - Check: Troubleshooting
- Ask in Discord: https://discord.gg/clawd
Related
Section titled “Related”- Install Overview — all installation methods
- Doctor — health checks after updates
- Migrating — major version migration guides