How do Claude Code updates differ between the native installer and Homebrew, WinGet or apt, and what does autoUpdatesChannel control?
answer
- who runs the upgrade
- background update, applied on next start
- latest by default, stable a week behind
- Homebrew picks the channel by cask
- DISABLE_AUTOUPDATER vs DISABLE_UPDATES
basics
~20 sNative installs update themselves in the background; Homebrew, WinGet, apt, dnf and apk installs do not by default. autoUpdatesChannel chooses latest (default) or stable for native updates; Homebrew and the Linux repositories choose the channel by cask or repository.
solid answer
~40 sThe **native installer** (`curl -fsSL https://claude.ai/install.sh | bash`, or the PowerShell and CMD equivalents) checks for updates at startup and while running, downloads in the background, and applies the new version on the next start. **Homebrew, WinGet, apt, dnf and apk** installs do not auto-update by default: you run `brew upgrade`, `winget upgrade` or your system upgrade, and `CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1` opts Homebrew and WinGet into a background upgrade. `autoUpdatesChannel` picks `"latest"` (the default when unset) or `"stable"`, typically a week old and skipping releases with major regressions; it governs native auto-updates and `claude update`. Homebrew ignores it - the `claude-code` cask is stable and `claude-code@latest` is latest - and apt, dnf and apk pick the channel by repository. `claude update` applies an update now, and `claude doctor` shows the last update attempt.
code
json · 4 lines{
"autoUpdatesChannel": "stable",
"minimumVersion": "2.1.100"
}go deeper
Recall that the native installer updates itself while Homebrew and WinGet need brew upgrade or winget upgrade, and that claude update applies an update now.
Explain latest against stable, that latest is the default, and that Homebrew and the Linux repositories pick the channel by cask or repository instead of autoUpdatesChannel.
Choose the update controls for a team: stable plus minimumVersion for predictability, DISABLE_UPDATES when you ship versions yourself, and why mixed installers drift.
Balance fast access to fixes and new models against regression risk when you standardise one install method and channel across many machines.
## Two ways to get updates Claude Code ships often, so how a machine gets new versions matters as much as how it was installed. The **install method** decides who runs the upgrade; the **release channel** decides which version is offered. | Install method | Updates itself? | Channel or package | Manual upgrade | |---|---|---|---| | Native installer (`install.sh`, `install.ps1`, `install.cmd`) | yes, in the background | `autoUpdatesChannel` setting | `claude update` | | Homebrew | no, unless opted in | cask name: `claude-code` = stable, `claude-code@latest` = latest | `brew upgrade claude-code` | | WinGet | no, unless opted in | one package, `Anthropic.ClaudeCode` | `winget upgrade Anthropic.ClaudeCode` | | apt, dnf, apk | no | the repository you registered (`stable` or `latest`) | your system upgrade command | ## How native auto-update works - Claude Code **checks on startup and periodically while running**. - The new version **downloads and installs in the background** and takes effect the **next time you start** Claude Code; the running session is not swapped underneath you. - On macOS and Linux the launcher `~/.local/bin/claude` is a symlink into `~/.local/share/claude/versions/`. - `claude doctor` - a read-only check that runs without starting a session - reports the most recent update attempt along with install health and settings-file errors. ## Package managers Homebrew, WinGet, apt, dnf and apk installs **do not auto-update by default**. For Homebrew and WinGet you can set the environment variable `CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1`: Claude Code then runs the upgrade command in the background and shows a restart prompt when it succeeds. On WinGet that upgrade can fail while Claude Code is running, because Windows locks the executable; Claude Code then shows the manual command. **apt, dnf and apk stay manual** because their upgrade commands need elevated privileges. ## Release channels `autoUpdatesChannel` takes one of two values: 1. `"latest"` - the default when the key is unset: every release as soon as it ships. 2. `"stable"` - a version typically about **one week old**, skipping releases with major regressions. You set it under `/config` -> **Auto-update channel** or in a settings file. `claude install stable` or `claude install latest` also saves the channel, and passing `stable` to the native install script makes it the default for auto-updates. Two traps: - **Homebrew ignores the key.** The plain `claude-code` cask already tracks stable, so a Homebrew user and a native-installer user on default settings run different versions. `claude update` on a Homebrew install defers to `brew upgrade`. - **A newly launched model can require a version newer than stable serves.** To use it now, move to latest. Switching from latest to stable in `/config` asks whether to allow a downgrade or stay put; staying writes `minimumVersion` with your current version, a floor that auto-updates and `claude update` will not go below. Switching back to latest clears it. ## Installing a specific version, and npm The native install script accepts a channel or an exact version: `curl -fsSL https://claude.ai/install.sh | bash -s stable` installs from stable and makes it your auto-update default, and `bash -s 2.1.89` installs exactly that release. `claude --version` confirms what landed, and `claude install stable` or `claude install latest` reinstalls the native binary on a channel later. Claude Code is also published to npm as `@anthropic-ai/claude-code`. The npm package installs the **same native binary** through a per-platform optional dependency, so it does not run on your Node.js at runtime. Two habits matter there: - upgrade with `npm install -g @anthropic-ai/claude-code@latest`, not `npm update -g`, which respects the original semver range and may not move you to the newest release; - never use `sudo npm install -g`; fix the permission problem instead. If an npm global install cannot auto-update because its directory is not writable, Claude Code shows a one-time notice and `claude doctor` lists the fixes. ## Turning updates off - `DISABLE_AUTOUPDATER=1` (in the `env` block of settings) stops the **background** check only; `claude update` and `claude install` still work. `claude doctor` then shows `disabled (set by env: DISABLE_AUTOUPDATER)`. - `DISABLE_UPDATES=1` blocks **every** update path, including the manual ones. Use it when you distribute Claude Code through your own tooling and users must stay on the version you ship. An organization can enforce one channel or a minimum version through managed settings; that enforcement is the managed-policy material, not this one.
- What is the difference between DISABLE_AUTOUPDATER and DISABLE_UPDATES?`DISABLE_AUTOUPDATER=1` stops only the background check; users can still run `claude update` or `claude install`. `DISABLE_UPDATES=1` blocks every update path, manual ones included. Pick the second when you ship Claude Code through your own channel and need everyone on the version you provide.
- A developer on the stable channel cannot select a model that was released yesterday. Why, and what is the fix?A newly launched model can need a Claude Code version newer than the stable channel serves yet, because stable runs about a week behind. Switching the channel to latest - in `/config`, in `autoUpdatesChannel`, or with the `claude-code@latest` cask on Homebrew - and updating makes the model available.
- Homebrew installs update themselves like the native installer
- autoUpdatesChannel defaults to stable
- autoUpdatesChannel switches a Homebrew install between channels
- DISABLE_AUTOUPDATER also blocks claude update
- A background update replaces the running session's version immediately