coderClaw

Updating

CoderClaw is moving fast (pre “1.0”). Treat updates like shipping infra: update → run checks → restart (or use coderclaw update, which restarts) → verify.

The preferred update path is to re-run the installer from the website. It detects existing installs, upgrades in place, and runs coderclaw doctor when needed.

curl -fsSL https://coderclaw.ai/install.sh | bash

Notes:

Before you update

Update (global install)

Global install (pick one):

npm i -g coderclaw@latest
pnpm add -g coderclaw@latest

We do not recommend Bun for the Gateway runtime (WhatsApp/Telegram bugs).

To switch update channels (git + npm installs):

coderclaw update --channel beta
coderclaw update --channel dev
coderclaw update --channel stable

Use --tag <dist-tag|version> for a one-off install tag/version.

See Development channels for channel semantics and release notes.

Note: on npm installs, the gateway logs an update hint on startup (checks the current channel tag). Disable via update.checkOnStart: false.

Then:

coderclaw doctor
coderclaw gateway restart
coderclaw health

Notes:

Update (coderclaw update)

For source installs (git checkout), prefer:

coderclaw update

It runs a safe-ish update flow:

If you installed via npm/pnpm (no git metadata), coderclaw update will try to update via your package manager. If it can’t detect the install, use “Update (global install)” instead.

Update (Control UI / RPC)

The Control UI has Update & Restart (RPC: update.run). It:

  1. Runs the same source-update flow as coderclaw update (git checkout only).
  2. Writes a restart sentinel with a structured report (stdout/stderr tail).
  3. Restarts the gateway and pings the last active session with the report.

If the rebase fails, the gateway aborts and restarts without applying the update.

Update (from source)

From the repo checkout:

Preferred:

coderclaw update

Manual (equivalent-ish):

git pull
pnpm install
pnpm build
pnpm ui:build # auto-installs UI deps on first run
coderclaw doctor
coderclaw health

Notes:

Always Run: coderclaw doctor

Doctor is the “safe update” command. It’s intentionally boring: repair + migrate + warn.

Note: if you’re on a source install (git checkout), coderclaw doctor will offer to run coderclaw update first.

Typical things it does:

Details: Doctor

Start / stop / restart the Gateway

CLI (works regardless of OS):

coderclaw gateway status
coderclaw gateway stop
coderclaw gateway restart
coderclaw gateway --port 18789
coderclaw logs --follow

If you’re supervised:

Runbook + exact service labels: Gateway runbook

Rollback / pinning (when something breaks)

Pin (global install)

Install a known-good version (replace <version> with the last working one):

npm i -g coderclaw@<version>
pnpm add -g coderclaw@<version>

Tip: to see the current published version, run npm view coderclaw version.

Then restart + re-run doctor:

coderclaw doctor
coderclaw gateway restart

Pin (source) by date

Pick a commit from a date (example: “state of main as of 2026-01-01”):

git fetch origin
git checkout "$(git rev-list -n 1 --before=\"2026-01-01\" origin/main)"

Then reinstall deps + restart:

pnpm install
pnpm build
coderclaw gateway restart

If you want to go back to latest later:

git checkout main
git pull

If you’re stuck