main, the release channel, unless the box records another. A release is a vX.Y.Z tag on main. The updater hard-syncs the code to the tip of the branch the box follows and rebuilds in place.

Settings → System Update, the same pipeline seen from the settings panel
How the device decides an update exists
- Resolve the branch it follows: the branch recorded in
.update-branch, else the branch the checkout is on, elsemain(see Update channels). A ClawBox Workstation followsworkstationinstead (see ClawBox Workstation). - Ask origin, twice and anonymously: the release tags (
git ls-remote, onlyvX.Y.Zcounts) and a fetch of the followed branch. There is deliberately nogit fetch --tags. - Offer what the box is behind. On
mainthe update is offered by its release name (v4.4.0) when a newer tag exists; on any other branch, or on amainthat moved on with no newer tag, it is named by the commit it installs (beta@1a2b3c4). A box whose served build was made from a different commit than its checkout is offered a Rebuild. - The “Installed” version is read from
package.json; OpenClaw’s target version comes from the pin fileconfig/openclaw-target.txt(2026.11.5 since 4.4; 4.3 shipped 2026.10.9), Hermes Agent’s frominstall.sh(v0.23.3 since 4.4; 4.3 shipped v0.22.5). On a Hermes box the OpenClaw half reports nothing to update.
?force=1), a finished update or a change of branch drops the cache. A check that could not reach origin reports Couldn’t reach the update server rather than “up to date”.
The update pipeline
Started from the System Update app (or Settings → System Update, the same screen). Steps, in order — each privileged step runs as aclawbox-root-update@<step> systemd unit, and a step that does not apply to the box (an OpenClaw step on Hermes, the Jetson runtime on x64) is left out of the list:
Key properties:
git clean -fd(no-x) — gitignored paths are never touched, which is what preservesdata/,.env,node_modules, and your state. See what survives.- A reboot only when something needs a boot. The update reboots when Ubuntu asks for one (
/var/run/reboot-required, set by a JetPack, kernel or core-library upgrade), when the kernel, initrd, bootloader config or device tree changed since boot, or when the running kernel’s modules are gone. Otherwise it restarts every activeclawbox-*service, starts every enabled one that is not running, and names any that did not come back as a warning on the update screen. Either way, expect a minute or two of unreachability;/updatingkeeps asking and returns to the desktop by itself. - After the restart, completion is only reported if the build fingerprint (
.next/BUILD_ID) actually changed and the rebuild unit succeeded — a failed rebuild surfaces as a failed step, not a silent “complete”. A failed update puts the checkout back to the commit of the build the box is still serving. On a ClawBox (not an x64 PC), when the update had already moved the OpenClaw core past that commit’s pinned version, the checkout stays where it is instead, because the older code was never released with the newer core, and the box serves the old build over it until you run the update again. An x64 PC still puts the checkout back. - An interrupted update resumes. The update lock records the step the run is on at every boundary. A run cut short by a reboot or power loss is reported with that step, and Resume update (
POST /setup-api/update/runagain) continues from it rather than from the top. - The assistant cannot start one by itself. The agent’s MCP bearer gets
202 pendingApprovalfromupdate/run, and the update runs only after the owner confirms it.
Running agents are asked about first
An update stops the OpenClaw gateway and restarts the setup server, which kills a sub-agent, an ACP run, a coding run or a chat turn in flight. SoPOST /setup-api/update/run first counts the work running now (src/lib/update-busy.ts): the Coding Agent’s live runs, plus the gateway sessions with a run active or queued (sessions.list with activeOnly, given 3 seconds to answer). When the total is above zero it starts nothing and answers:
{ "ignoreBusy": true }. A gateway that does not answer (stopped, booting, or masked on a Hermes box) counts as no work, so the check can never be the reason an update cannot start, and a resume from /updating never asks.
Build identity and drift
.next/BUILD_ID proves two asset sets differ; it never says which source produced them. So every build also writes .next/build-info.json (commit, short commit, branch, dirty flag, build time, the BUILD_ID it belongs to, node/bun versions, the Hermes and OpenClaw pins) via scripts/write-build-info.mjs, and the postbuild step copies it into .next/standalone/.next/ — the tree the service actually runs from.
The same postbuild step also deletes .next/standalone/data. Next’s file tracing follows the data/ paths in the middleware and the instrumentation hook into the standalone bundle, and its own outputFileTracingExcludes only reaches route entries, so a build otherwise leaves a multi-gigabyte second copy of your data/ tree — model weights, webapps and all — inside a build artifact that nothing reads (the service runs from /home/clawbox/clawbox, so every reader resolves data/ there). Expect .next/standalone to shrink by the size of data/ on the first update that includes this.
GET /setup-api/system/build-identity compares three things that are not assumed to agree:
It returns a
drift object (buildVsCheckout, checkoutVsPin, detected, plus plain-language reasons and machine-readable codes). Settings → About shows the commit, branch and build time; About and System raise a warning banner as soon as drift is detected.
Drift does not block an update. When the updater finds it, the update:
- warns — one line per problem, in the update log and the journal;
- auto-repins — a box with no usable
.update-branchis pinned to the branch the update resolved, so the next one is repeatable (an operator’s existing pin is never overwritten); - rebuilds, then verifies:
install.shrunsscripts/verify-build-identity.shright afterbun run build, so a build that cannot be traced to the commit checked out fails the rebuild loudly rather than serving 404s for features whose code is on disk.
.github/workflows/build-identity.yml), so a pull request whose build cannot be traced back to its own commit goes red.
Update channels
The channel is a one-line file:/home/clawbox/clawbox/.update-branch (absent = main).
main— stable releases. Default.beta— the integration branch, for early adopters and testing fixes ahead of release.
echo beta > /home/clawbox/clawbox/.update-branch. The pin survives updates and factory resets; clear it from the same UI or by deleting the file. All update mechanisms (UI, installer, recovery script) honor it.
With no pin recorded (file absent or empty) the box follows the branch it is checked out on, and main otherwise, so it still sees new releases. Advanced options shows the branch updates actually follow and whether it was recorded. The one exception is a detached checkout that nothing on the box ties to a branch. The update check still compares it against main, but the update itself refuses to guess a channel and asks for a branch to be entered first.
ClawBox Workstation
A ClawBox Workstation (DGX Spark) has a channel of its own: theworkstation branch. It follows that branch whatever .update-branch says, and the Beta toggle and branch override do not apply to it. A version reaches workstation only after it has been tested on a Workstation. Nothing moves the branch automatically. Until a first version is released there, the update check says so and the Workstation stays on the version it has. It never follows beta or main instead. A Jetson ClawBox is not affected. Setting CLAWBOX_UPDATE_CHANNEL=branch in the checkout’s .env (and restarting the web server) puts a Workstation back on the branch rules above, for testing.
Going back to an older release
OpenClaw and Hermes Agent move their data forward and never back. Once a box has run a newer version, an older one cannot open what it wrote. For example, OpenClaw 2026.10.6 moves the agent databases to schema 25, and 2026.10.3 reads up to schema 24. So a switch that would install an older harness than the one installed now is refused, and nothing on the box changes. This covers switching frombeta to a main that still pins the older release, or any rollback. The check runs:
- when you set the update branch (Beta toggle or branch override): the branch on record stays as it was;
- when you press Update now: the update stops before its first step;
- in
install.sh, before it resets the checkout to the branch and again before it replaces the OpenClaw core. An older core is never put in place over newer databases, and the gateway keeps running on the core the box had.
config/openclaw-target.txt and HERMES_PIN_COMMIT in install.sh) without checking anything out. It compares them with the versions installed now and with the schema of every OpenClaw database on disk (the state database and each agent database). It refuses only on proof. If a pin or a database cannot be read, the check stands down. A harness with no database on disk has nothing an older version could fail to open, so the check lets it through.
The override. The refusal offers Back up and switch anyway (update branch) and Back up and update anyway (Update now). Choosing it on the update branch records the branch, and the update then asks for the same choice. When the update runs with the override, it:
- backs up the assistant’s data first: a ClawKeep backup when the box is paired with ClawKeep, otherwise the harnesses’ own
openclaw backup create --verify --no-include-workspaceandhermes backup, written to~/clawbox-harness-backups/<UTC time>/. If the backup fails, nothing is installed; - records
data/harness-downgrade.json, which lets the installer go ahead with exactly that older OpenClaw for twelve hours; - installs the older version. The OpenClaw databases it cannot open are moved, unedited, into
~/clawbox-harness-backups/<UTC time>/openclaw-newer-schema/, and it starts with fresh ones. Their conversations stay in the backup and come back when you return to the newer release and restore it.
"allowHarnessDowngrade": true in the body of POST /setup-api/system/update-branch or POST /setup-api/update/run. Only a literal true counts.
Ways to update
Local changes to the checkout
The update hard-syncs the checkout:reset --hard to origin/<branch> and git clean -fd. Local commits and edits to tracked files under /home/clawbox/clawbox are discarded on every update, so they can no longer hold a box back from its updates — there is no “Updates paused” state any more. Gitignored paths (data/, .env, node_modules) are untouched. Keep your own code in your home folder or a Coding Agent project, never in the ClawBox checkout. The same hard-sync by hand is Recovery → Safe reinstall.

