Skip to main content

Updating

Keep Velaclaw up to date. The fastest way to update. It detects your install type (npm or git), fetches the latest version, runs velaclaw doctor, and restarts the gateway.
To switch channels or target a specific version:
--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.

How install type affects updates

Velaclaw can update in-place when the original install is still discoverable:
  • npm/pnpm/bun global install: velaclaw update reinstalls the global velaclaw package from the configured channel.
  • Git/source install: velaclaw update updates the checkout, rebuilds it, and keeps the global wrapper pointed at that checkout.
  • Container install: velaclaw update does not update the running image. Rebuild or pull the image, then restart the container.
For source installs, use a real git clone with an upstream branch. A raw GitHub zip/tarball or manually copied source directory cannot be updated safely because there is no remote branch to fetch from. If a checkout has no branch upstream but does have origin/main, the updater uses origin/main as a safe fallback.

Repair an older source install

If velaclaw update reports no-upstream, fix the checkout once:
If your old install was not a git checkout at all, switch it to the managed git install path:

Alternative: re-run the installer

Add --no-onboard to skip onboarding. For source installs, pass --install-method git --no-onboard.

Alternative: manual npm, pnpm, or bun

Auto-updater

The auto-updater is off by default. Enable it in ~/.Zavianx/velaclaw-dev.json:
The gateway also logs an update hint on startup (disable with update.checkOnStart: false).

After updating

Rollback

Pin a version (npm)

Tip: npm view velaclaw version shows the current published version.

Pin a commit (source)

To return to latest: git checkout main && git pull.

If you are stuck

  • Run velaclaw doctor again and read the output carefully.
  • For velaclaw update --channel dev on source checkouts, the updater auto-bootstraps pnpm when needed. If you see a pnpm/corepack bootstrap error, install pnpm manually (or re-enable corepack) and rerun the update.
  • Check: Troubleshooting
  • Ask in Discord: https://discord.gg/BMtnggD9SM