modified
--- a/setup.md +++ b/setup.md @@ -22,7 +22,7 @@ ## Install Claude Code -Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>), [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>), or [Linux](</docs/en/desktop-linux>). +Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/claude-code/desktop-download?platform=mac&utm_source=claude_code&utm_medium=docs>), [Windows](<https://claude.ai/claude-code/desktop-download?platform=win&utm_source=claude_code&utm_medium=docs>), or [Linux](</docs/en/desktop-linux>). To install Claude Code, open a terminal and run the command for your system. If you haven’t used a terminal before, the [terminal guide](</docs/en/terminal-guide>) shows how to open one and paste the command.
modified
--- a/setup.md +++ b/setup.md @@ -121,9 +121,28 @@ ### Auto-updates -Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` in your shell to see the result of the last update attempt Claude Code recorded. On a native installation, if it reports a failed attempt, see [`Auto-update failed` in the session footer](</docs/en/troubleshoot-install#auto-update-failed>) for what to do next. On macOS and Linux, the native installer manages the launcher at `~/.local/bin/claude` as a symlink into `~/.local/share/claude/versions/`. If you replace that launcher with your own script or symlink, auto-update and `claude update` leave it in place: new versions still install under the `versions/` directory, and your launcher decides which version runs. With a custom launcher, Claude Code also keeps every installed version on disk because it can’t tell which version the launcher needs. `claude doctor` reports a launcher that the native installer didn’t create. To let Claude Code manage the launcher again, remove `~/.local/bin/claude` and run `claude update`. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. +Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` in your shell to see the result of the last update attempt Claude Code recorded. On a native installation, if it reports a failed attempt, see [`Auto-update failed` in the session footer](</docs/en/troubleshoot-install#auto-update-failed>) for what to do next. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default; see below to opt in for Homebrew and WinGet. To upgrade Homebrew manually, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.To have Claude Code run the upgrade command for you on Homebrew or WinGet, set [`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`](</docs/en/env-vars>) to `1`. Claude Code then runs the upgrade in the background when a new version is available and shows a restart prompt on success. The upgrade targets only the Claude Code package and does not affect other software you have installed.On WinGet the upgrade may fail while Claude Code is running because Windows locks the executable. In that case Claude Code shows the manual command instead. apt, dnf, and apk continue to require a manual upgrade because those commands need elevated privileges.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space. + +#### Custom launchers + +On macOS and Linux, the native installer manages the launcher at `~/.local/bin/claude` as a symlink into `~/.local/share/claude/versions/`. If you replace it with your own script, your script stays in place through auto-update and `claude update`. New versions still install under `versions/`, but you keep running whichever version your launcher starts. With a custom launcher, Claude Code also keeps every installed version on disk because it can’t tell which version the launcher needs. `claude doctor` reports that the launcher `was not created by the native installer`. + +#### Restore the managed launcher + +To let Claude Code manage `~/.local/bin/claude` again, replace your custom launcher with a symlink to an installed version: + + 1. If you want to keep your launcher, copy `~/.local/bin/claude` to another folder. Step 3 overwrites it. + 2. In your shell, list the installed versions: + + ls ~/.local/share/claude/versions/ + + 3. Create the symlink. For `VERSION`, use a version number from the list. + + ln -sfn ~/.local/share/claude/versions/VERSION ~/.local/bin/claude + + 4. Run `claude doctor` and check that the launcher warning is gone. ### Configure release channel
modified
--- a/setup.md +++ b/setup.md @@ -158,7 +158,7 @@ #### Set version limits for your organization -In [managed settings](</docs/en/managed-settings>), `minimumVersion` enforces an organization-wide minimum that user and project settings can’t override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. Updates also respect the `requiredMaximumVersion` ceiling. See [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) and [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>). +In [managed settings](</docs/en/managed-settings>), `minimumVersion` enforces an organization-wide minimum that user and project settings can’t override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. See [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) and [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>). ### Disable auto-updates
modified
--- a/setup.md +++ b/setup.md @@ -144,7 +144,7 @@ To move a native installation to the `"stable"` release channel without a downgrade, set [`minimumVersion`](</docs/en/settings-reference#minimumversion>) to the version you’re running. Background auto-updates and `claude update` refuse to install any version below the minimum. Set the minimum in `/config` to have Claude Code fill in your current version, or in your settings file to type the number yourself: - * **In`/config`**: switch **Auto-update channel** to stable, then select **Stay on current version**. If you switch back to latest in `/config`, Claude Code clears the minimum. + * **In`/config`**: switch **Auto-update channel** to stable, then select the option to stay on your current version. If you switch back to latest in `/config`, Claude Code clears the minimum. * **In your[settings file](</docs/en/settings>)**: run `claude --version` in your shell, and set `minimumVersion` to the number at the start of the output. In the same edit, set `autoUpdatesChannel` to `"stable"`. This `~/.claude/settings.json` switches an installation on version 2.1.323 to stable: @@ -178,11 +178,11 @@ claude update -When an update installs, the command reports `Successfully updated from <old version> to version <new version>`. If you’re already on the newest version, it reports `Claude Code is up to date (<version>)`. Installs managed by Homebrew, WinGet, or apk report `Claude is up to date!` instead. +When an update installs, the command prints a line that ends with `to version <new version>`. If you’re already on the newest version, it reports `Claude Code is up to date (<version>)`. Installs managed by Homebrew, WinGet, or apk report `Claude is up to date!` instead. ## Advanced installation options -These options are for version pinning, Linux package managers, npm, network storage, and verifying binary integrity. +These options are for installing a specific version, Linux package managers, npm, network storage, and verifying binary integrity. ### Install a specific version
modified
--- a/setup.md +++ b/setup.md @@ -138,18 +138,27 @@ "autoUpdatesChannel": "stable" } -A newly launched model can require a Claude Code version newer than the stable channel serves. To run the model now, move to the latest channel. For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/managed-settings>). Homebrew installations choose a channel by cask name instead of this setting: `claude-code` tracks stable and `claude-code@latest` tracks latest. Installations from the apt, dnf, and apk repositories choose a channel by repository instead of this setting. To switch one, follow Install with Linux package managers. +With this setting, a native installation updates to the stable version even when that version is older than yours. To avoid the downgrade, also pin a minimum version. A newly launched model can require a Claude Code version newer than the stable channel serves. To run the model now, move to the latest channel. For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/managed-settings>). Homebrew installations choose a channel by cask name instead of this setting: `claude-code` tracks stable and `claude-code@latest` tracks latest. Installations from the apt, dnf, and apk repositories choose a channel by repository instead of this setting. To switch one, follow Install with Linux package managers. ### Pin a minimum version -The `minimumVersion` setting establishes a floor. Background auto-updates and `claude update` refuse to install any version below this value, so moving to the `"stable"` channel does not downgrade you if you are already on a newer `"latest"` build. Switching from `"latest"` to `"stable"` via `/config` prompts you to either stay on the current version or allow the downgrade. Choosing to stay sets `minimumVersion` to that version. Switching back to `"latest"` clears it. Add it to your [settings.json file](</docs/en/settings>) to pin a floor explicitly: +To move a native installation to the `"stable"` release channel without a downgrade, set [`minimumVersion`](</docs/en/settings-reference#minimumversion>) to the version you’re running. Background auto-updates and `claude update` refuse to install any version below the minimum. Set the minimum in `/config` to have Claude Code fill in your current version, or in your settings file to type the number yourself: + + * **In`/config`**: switch **Auto-update channel** to stable, then select **Stay on current version**. If you switch back to latest in `/config`, Claude Code clears the minimum. + * **In your[settings file](</docs/en/settings>)**: run `claude --version` in your shell, and set `minimumVersion` to the number at the start of the output. In the same edit, set `autoUpdatesChannel` to `"stable"`. + +This `~/.claude/settings.json` switches an installation on version 2.1.323 to stable: { "autoUpdatesChannel": "stable", - "minimumVersion": "2.1.100" + "minimumVersion": "2.1.323" } -In [managed settings](</docs/en/managed-settings>), this enforces an organization-wide minimum that user and project settings cannot override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. Updates also respect the `requiredMaximumVersion` ceiling. See [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) and [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>). +The installation stays on 2.1.323 until the stable channel serves a newer version. + +#### Set version limits for your organization + +In [managed settings](</docs/en/managed-settings>), `minimumVersion` enforces an organization-wide minimum that user and project settings can’t override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. Updates also respect the `requiredMaximumVersion` ceiling. See [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) and [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>). ### Disable auto-updates @@ -295,9 +304,9 @@ If `npm --version` prints a version starting with `12` in your shell, follow [Fix an npm 12 install](</docs/en/troubleshoot-install#fix-an-npm-12-install>) instead. Don’t install with `sudo`. Claude Code runs npm without `sudo` when it updates itself, so an install that needs `sudo` can’t update automatically. -You can also install Claude Code as a global npm package. The npm package requires [Node.js 22 or later](<https://nodejs.org/en/download>). On an older Node.js version, npm prints an `EBADENGINE` warning during install rather than failing; the install completes and `claude` still runs, since the package downloads a native binary that doesn’t use your Node.js at runtime. - - npm install -g @anthropic-ai/claude-code +You can also install Claude Code as a global npm package. The npm package requires [Node.js 22 or later](<https://nodejs.org/en/download>). On an older Node.js version, npm by default prints an `EBADENGINE` warning and completes the install rather than failing. The installed `claude` still runs, since the package downloads a native binary that doesn’t use your Node.js at runtime. + + npm install -g @anthropic-ai/claude-code@latest The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshoot-install#native-binary-not-found-after-npm-install>) if the binary is missing after install. To upgrade an npm installation, run `npm install -g @anthropic-ai/claude-code@latest`. Avoid `npm update -g`, which respects the semver range from the original install and may not move you to the newest release.
modified
Show diff (382 lines)
--- a/setup.md +++ b/setup.md @@ -1,10 +1,6 @@ This page covers system requirements, platform-specific installation details, updates, and uninstallation. For a guided walkthrough of your first session, see the [quickstart](</docs/en/quickstart>). If you’ve never used a terminal before, see the [terminal guide](</docs/en/terminal-guide>). -## - -​ - -System requirements +## System requirements Claude Code runs on the following platforms and configurations: @@ -19,20 +15,12 @@ * **Shell** : Bash, Zsh, PowerShell, or CMD. * **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>) -### - -​ - -Additional dependencies +### Additional dependencies * **ripgrep** : usually included with Claude Code. If search fails, see [search troubleshooting](</docs/en/troubleshooting#search-and-discovery-issues>). * **Git** : optional. If git is installed, [`claude plugin eval`](</docs/en/plugin-evals#requirements>) requires 2.31 or later. [Uploads of a local repository to a cloud session](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) from macOS, Linux, or WSL need git 2.31 or later. Run `git --version` to see your version. -## - -​ - -Install Claude Code +## Install Claude Code Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>), [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>), or [Linux](</docs/en/desktop-linux>). @@ -76,11 +64,7 @@ Claude Code opens an interactive session in your terminal. If you encounter any issues during installation, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). -### - -​ - -Set up on Windows +### Set up on Windows You can run Claude Code natively on Windows or inside WSL. Pick based on where your projects are located and which features you need: @@ -90,11 +74,7 @@ WSL 2| WSL 2 enabled| Supported| Linux toolchains or sandboxed command execution WSL 1| WSL 1 enabled| Not supported| If WSL 2 is unavailable -#### - -​ - -Install on native Windows +#### Install on native Windows Run the install command from PowerShell or CMD. You do not need to run as Administrator. Installing [Git for Windows](<https://git-scm.com/downloads/win>) is optional. It provides Git Bash, which the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>) and the [Monitor tool](</docs/en/tools-reference#monitor-tool>) need. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from any terminal. @@ -109,41 +89,17 @@ When Git for Windows is installed, the PowerShell tool is available alongside Bash: on by default for claude.ai and Console accounts, and enabled with `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` in Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry sessions. Set it to `0` to turn the tool off. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. -#### - -​ - -Install in WSL +#### Install in WSL Open your WSL distribution and run the Linux installer from the install instructions. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. -### - -​ - -Alpine Linux and musl-based distributions - -Installing Claude Code on Alpine and other musl/uClibc-based distributions requires `bash` and `curl` for the install command, and `libgcc`, `libstdc++`, and `ripgrep` at runtime. Alpine doesn’t include `bash` or `curl` by default, so the documented install command fails with a `not found` error until you install them. Install these packages using your distribution’s package manager, then set `USE_BUILTIN_RIPGREP=0`. This example installs the required packages on Alpine: - - apk add bash curl libgcc libstdc++ ripgrep - -On Alpine, `ripgrep` is in the community repository. If `apk` reports that the package is missing, add the community repository to `/etc/apk/repositories`, using your Alpine version: - - echo "https://dl-cdn.alpinelinux.org/alpine/v3.22/community" >> /etc/apk/repositories - -Run `apk update` to refresh the package index, and retry the `apk add` command. Then set `USE_BUILTIN_RIPGREP` to `0` in your [`settings.json`](</docs/en/settings-reference#all-settings>) file: - - { - "env": { - "USE_BUILTIN_RIPGREP": "0" - } - } - -## - -​ - -Verify your installation +### Alpine Linux and musl-based distributions + +On Alpine and other musl-based distributions, the install command requires `bash` and `curl`, and Claude Code itself requires `bash` or `zsh`. Alpine doesn’t include `bash` or `curl` by default, so the documented install command fails with a `not found` error until you install them. This example installs the required packages on Alpine: + + apk add bash curl + +## Verify your installation After installing, confirm Claude Code is working: @@ -155,37 +111,21 @@ `claude doctor` prints read-only installation and settings diagnostics without starting a session, including install health, settings-file validation errors, and any warnings with suggested fixes. -## - -​ - -Authenticate +## Authenticate Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. If you’ve set the `ANTHROPIC_API_KEY` environment variable and you approve the key when Claude Code asks whether to use it, Claude Code skips the login prompt. See [Authentication](</docs/en/authentication>) for all account types and team setup options. -## - -​ - -Update Claude Code +## Update Claude Code Native installations automatically update in the background. You can configure the release channel to control whether you receive updates immediately or on a delayed stable schedule, or disable auto-updates entirely. Homebrew, WinGet, and Linux package manager installations require manual updates by default. -### - -​ - -Auto-updates +### Auto-updates Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` in your shell to see the result of the last update attempt Claude Code recorded. On a native installation, if it reports a failed attempt, see [`Auto-update failed` in the session footer](</docs/en/troubleshoot-install#auto-update-failed>) for what to do next. On macOS and Linux, the native installer manages the launcher at `~/.local/bin/claude` as a symlink into `~/.local/share/claude/versions/`. If you replace that launcher with your own script or symlink, auto-update and `claude update` leave it in place: new versions still install under the `versions/` directory, and your launcher decides which version runs. With a custom launcher, Claude Code also keeps every installed version on disk because it can’t tell which version the launcher needs. `claude doctor` reports a launcher that the native installer didn’t create. To let Claude Code manage the launcher again, remove `~/.local/bin/claude` and run `claude update`. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default; see below to opt in for Homebrew and WinGet. To upgrade Homebrew manually, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.To have Claude Code run the upgrade command for you on Homebrew or WinGet, set [`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`](</docs/en/env-vars>) to `1`. Claude Code then runs the upgrade in the background when a new version is available and shows a restart prompt on success. The upgrade targets only the Claude Code package and does not affect other software you have installed.On WinGet the upgrade may fail while Claude Code is running because Windows locks the executable. In that case Claude Code shows the manual command instead. apt, dnf, and apk continue to require a manual upgrade because those commands need elevated privileges.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space. -### - -​ - -Configure release channel +### Configure release channel Control which release channel Claude Code follows for auto-updates and `claude update` with the `autoUpdatesChannel` setting: @@ -200,11 +140,7 @@ A newly launched model can require a Claude Code version newer than the stable channel serves. To run the model now, move to the latest channel. For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/managed-settings>). Homebrew installations choose a channel by cask name instead of this setting: `claude-code` tracks stable and `claude-code@latest` tracks latest. Installations from the apt, dnf, and apk repositories choose a channel by repository instead of this setting. To switch one, follow Install with Linux package managers. -### - -​ - -Pin a minimum version +### Pin a minimum version The `minimumVersion` setting establishes a floor. Background auto-updates and `claude update` refuse to install any version below this value, so moving to the `"stable"` channel does not downgrade you if you are already on a newer `"latest"` build. Switching from `"latest"` to `"stable"` via `/config` prompts you to either stay on the current version or allow the downgrade. Choosing to stay sets `minimumVersion` to that version. Switching back to `"latest"` clears it. Add it to your [settings.json file](</docs/en/settings>) to pin a floor explicitly: @@ -215,11 +151,7 @@ In [managed settings](</docs/en/managed-settings>), this enforces an organization-wide minimum that user and project settings cannot override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. Updates also respect the `requiredMaximumVersion` ceiling. See [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) and [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>). -### - -​ - -Disable auto-updates +### Disable auto-updates Set `DISABLE_AUTOUPDATER` to `"1"` in the `env` key of your [`settings.json`](</docs/en/settings-reference#all-settings>) file: @@ -231,11 +163,7 @@ On a native or npm installation, confirm the change took effect by running `claude doctor` and checking that the `Auto-updates` line shows `disabled (set by env: DISABLE_AUTOUPDATER)` instead of `enabled`. `DISABLE_AUTOUPDATER` only stops the background check; `claude update` and `claude install` still work. To block all update paths, including manual updates, set [`DISABLE_UPDATES`](</docs/en/env-vars>) instead. Use this when you distribute Claude Code through your own channels and need users to stay on the version you provide. -### - -​ - -Update manually +### Update manually To apply an update immediately without waiting for the next background check, run: @@ -243,19 +171,11 @@ When an update installs, the command reports `Successfully updated from <old version> to version <new version>`. If you’re already on the newest version, it reports `Claude Code is up to date (<version>)`. Installs managed by Homebrew, WinGet, or apk report `Claude is up to date!` instead. -## - -​ - -Advanced installation options +## Advanced installation options These options are for version pinning, Linux package managers, npm, network storage, and verifying binary integrity. -### - -​ - -Install a specific version +### Install a specific version The native installer accepts either a specific version number or a release channel (`latest` or `stable`). The channel you choose at install time becomes your default for auto-updates. See configure release channel for more information. To install the latest version (default): @@ -301,11 +221,7 @@ To confirm which version installed, run `claude --version`: the command prints the exact version you passed, such as `2.1.89 (Claude Code)`. -### - -​ - -Install with Linux package managers +### Install with Linux package managers Claude Code publishes signed apt, dnf, and apk repositories. Each repository offers two channels: `stable` serves a version that is typically about one week old, skipping releases with major regressions, and `latest` serves every release as soon as it ships. The commands below configure the `stable` channel, which fits most users; each tab also shows the `latest` repository URL. Package manager installations do not auto-update through Claude Code; updates arrive through your normal system upgrade workflow. All repositories are signed with the Claude Code release signing key. Before trusting the key, verify it as described in each tab. @@ -366,7 +282,7 @@ wget -O /etc/apk/keys/claude-code.rsa.pub \ https://downloads.claude.ai/keys/claude-code.rsa.pub echo "https://downloads.claude.ai/claude-code/apk/stable" >> /etc/apk/repositories - apk add claude-code + apk add bash claude-code To switch to the `latest` channel, remove the `stable` repository line and add the `latest` repository: @@ -375,11 +291,7 @@ Verify the downloaded key with `sha256sum /etc/apk/keys/claude-code.rsa.pub`, which should report `395759c1f7449ef4cdef305a42e820f3c766d6090d142634ebdb049f113168b6`.To upgrade later, run `apk update && apk upgrade claude-code`. -### - -​ - -Install with npm +### Install with npm If `npm --version` prints a version starting with `12` in your shell, follow [Fix an npm 12 install](</docs/en/troubleshoot-install#fix-an-npm-12-install>) instead. Don’t install with `sudo`. Claude Code runs npm without `sudo` when it updates itself, so an install that needs `sudo` can’t update automatically. @@ -391,11 +303,7 @@ Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshoot-install#permission-errors-during-installation>). -### - -​ - -Install on network storage +### Install on network storage A running session reads parts of the Claude Code executable from disk as it works, not only at startup. If the file becomes unreadable mid-session, for example because it was truncated or deleted on network storage, the session crashes. On Linux, your shell reports this as a `Bus error`. When home directories live on network storage, such as an NFS home mounted on several machines, lay out installs so that each session’s executable stays readable until the session ends: @@ -406,19 +314,11 @@ The native installer deletes old versions from `~/.local/share/claude/versions/` on its own, which matters when that directory is on shared storage. Besides the version the launcher points to and any version a session on the same machine is running, it keeps the two newest versions and deletes the rest. A session on another machine that is running a deleted version loses its binary. With a custom launcher, Claude Code keeps every installed version and leaves cleanup to you. -### - -​ - -Binary integrity and code signing +### Binary integrity and code signing Each release publishes a `manifest.json` containing SHA256 checksums for every platform binary. The manifest is signed with an Anthropic GPG key, so verifying the signature on the manifest transitively verifies every binary it lists. -#### - -​ - -Verify the manifest signature +#### Verify the manifest signature Steps 1-3 require a POSIX shell with `gpg` and `curl`. On Windows, run them in Git Bash or WSL. Step 4 includes a PowerShell option. @@ -479,11 +379,7 @@ Manifest signatures are available for releases from `2.1.89` onward. Earlier releases publish checksums in `manifest.json` without a detached signature. -#### - -​ - -Platform code signatures +#### Platform code signatures In addition to the signed manifest, individual binaries carry platform-native code signatures where supported. @@ -491,19 +387,11 @@ * **Windows** : signed by “Anthropic, PBC”. Verify with `Get-AuthenticodeSignature .\claude.exe`. * **Linux** : binaries are not individually code-signed. If you download directly from the `claude-code-releases` bucket or use the native installer, verify integrity with the manifest signature above. If you install with apt, dnf, or apk, your package manager verifies signatures automatically using the repository signing key. -## - -​ - -Uninstall Claude Code +## Uninstall Claude Code To remove Claude Code, follow the instructions for your installation method. If `claude` still runs afterward, you likely have a second installation or a leftover shell alias from an older installer. See [Check for conflicting installations](</docs/en/troubleshoot-install#check-for-conflicting-installations>) to find and remove it. -### - -​ - -Uninstall a native installation +### Uninstall a native installation Remove the Claude Code binary and version files: @@ -517,11 +405,7 @@ Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force -### - -​ - -Uninstall with Homebrew +### Uninstall with Homebrew Remove the Homebrew cask you installed. If you installed the stable cask: @@ -531,21 +415,13 @@ brew uninstall --cask claude-code@latest -### - -​ - -Uninstall with WinGet +### Uninstall with WinGet Remove the WinGet package: winget uninstall Anthropic.ClaudeCode -### - -​ - -Uninstall with apt, dnf, or apk +### Uninstall with apt, dnf, or apk Remove the package and the repository configuration: @@ -565,21 +441,13 @@ sed -i '\|downloads.claude.ai/claude-code/apk|d' /etc/apk/repositories rm /etc/apk/keys/claude-code.rsa.pub -### - -​ - -Uninstall with npm +### Uninstall with npm Remove the global npm package: npm uninstall -g @anthropic-ai/claude-code -### - -​ - -Remove configuration files +### Remove configuration files Removing configuration files will delete all your settings, allowed tools, MCP server configurations, and session history.
modified
--- a/setup.md +++ b/setup.md @@ -329,7 +329,7 @@ gpg --show-keys /etc/apt/keyrings/claude-code.asc -The fingerprint gpg prints should be `31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE`. If gpg reports that the file can’t be opened or contains no valid OpenPGP data, the download failed or returned the wrong content: confirm your network can reach `downloads.claude.ai`, then rerun the download command.Register the repository on the `stable` channel and install: +The only fingerprint gpg prints should be `31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE`. If gpg reports that the file can’t be opened or contains no valid OpenPGP data, the download failed or returned the wrong content. Confirm your network can reach `downloads.claude.ai`, then rerun the download command.Register the repository on the `stable` channel and install: echo "deb [signed-by=/etc/apt/keyrings/claude-code.asc] https://downloads.claude.ai/claude-code/apt/stable stable main" \ | sudo tee /etc/apt/sources.list.d/claude-code.list @@ -455,9 +455,9 @@ Verify the detached signature against the manifest. - gpg --verify manifest.json.sig manifest.json - -A valid result reports `Good signature from "Anthropic Claude Code Release Signing <security@anthropic.com>"`.`gpg` also prints `WARNING: This key is not certified with a trusted signature!` for any freshly imported key. This is expected. The `Good signature` line confirms the cryptographic check passed. The fingerprint comparison in Step 1 confirms the key itself is authentic. + gpg --with-fingerprint --verify manifest.json.sig manifest.json + +A valid result reports `Good signature from "Anthropic Claude Code Release Signing <security@anthropic.com>"`. With default settings, `gpg` also prints `WARNING: This key is not certified with a trusted signature!` for a freshly imported key. This is expected. The `Good signature` line confirms the cryptographic check passed.To check that Anthropic’s key signed the manifest, compare the `Primary key fingerprint` line at the end of the output with the fingerprint this page lists in Step 1. If they match and the output shows no `BAD signature`, continue to Step 4. Otherwise, don’t use this manifest. 4
modified
--- a/setup.md +++ b/setup.md @@ -26,6 +26,7 @@ Additional dependencies * **ripgrep** : usually included with Claude Code. If search fails, see [search troubleshooting](</docs/en/troubleshooting#search-and-discovery-issues>). + * **Git** : optional. If git is installed, [`claude plugin eval`](</docs/en/plugin-evals#requirements>) requires 2.31 or later. [Uploads of a local repository to a cloud session](</docs/en/claude-code-on-the-web#send-local-repositories-without-github>) from macOS, Linux, or WSL need git 2.31 or later. Run `git --version` to see your version. ##
modified
--- a/setup.md +++ b/setup.md @@ -160,7 +160,7 @@ Authenticate -Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. If you’ve set the `ANTHROPIC_API_KEY` environment variable and you approve the key when Claude Code asks whether to use it, Claude Code skips the login prompt. See [Authentication](</docs/en/authentication>) for all account types and team setup options. +Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. If you’ve set the `ANTHROPIC_API_KEY` environment variable and you approve the key when Claude Code asks whether to use it, Claude Code skips the login prompt. See [Authentication](</docs/en/authentication>) for all account types and team setup options. ##
modified
--- a/setup.md +++ b/setup.md @@ -380,6 +380,8 @@ Install with npm +If `npm --version` prints a version starting with `12` in your shell, follow [Fix an npm 12 install](</docs/en/troubleshoot-install#fix-an-npm-12-install>) instead. Don’t install with `sudo`. Claude Code runs npm without `sudo` when it updates itself, so an install that needs `sudo` can’t update automatically. + You can also install Claude Code as a global npm package. The npm package requires [Node.js 22 or later](<https://nodejs.org/en/download>). On an older Node.js version, npm prints an `EBADENGINE` warning during install rather than failing; the install completes and `claude` still runs, since the package downloads a native binary that doesn’t use your Node.js at runtime. npm install -g @anthropic-ai/claude-code
modified
--- a/setup.md +++ b/setup.md @@ -176,7 +176,7 @@ Auto-updates -Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` to see the result of the most recent update attempt. On macOS and Linux, the native installer manages the launcher at `~/.local/bin/claude` as a symlink into `~/.local/share/claude/versions/`. If you replace that launcher with your own script or symlink, auto-update and `claude update` leave it in place: new versions still install under the `versions/` directory, and your launcher decides which version runs. With a custom launcher, Claude Code also keeps every installed version on disk because it can’t tell which version the launcher needs. `claude doctor` reports a launcher that the native installer didn’t create. To let Claude Code manage the launcher again, remove `~/.local/bin/claude` and run `claude update`. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. +Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` in your shell to see the result of the last update attempt Claude Code recorded. On a native installation, if it reports a failed attempt, see [`Auto-update failed` in the session footer](</docs/en/troubleshoot-install#auto-update-failed>) for what to do next. On macOS and Linux, the native installer manages the launcher at `~/.local/bin/claude` as a symlink into `~/.local/share/claude/versions/`. If you replace that launcher with your own script or symlink, auto-update and `claude update` leave it in place: new versions still install under the `versions/` directory, and your launcher decides which version runs. With a custom launcher, Claude Code also keeps every installed version on disk because it can’t tell which version the launcher needs. `claude doctor` reports a launcher that the native installer didn’t create. To let Claude Code manage the launcher again, remove `~/.local/bin/claude` and run `claude update`. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default; see below to opt in for Homebrew and WinGet. To upgrade Homebrew manually, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.To have Claude Code run the upgrade command for you on Homebrew or WinGet, set [`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`](</docs/en/env-vars>) to `1`. Claude Code then runs the upgrade in the background when a new version is available and shows a restart prompt on success. The upgrade targets only the Claude Code package and does not affect other software you have installed.On WinGet the upgrade may fail while Claude Code is running because Windows locks the executable. In that case Claude Code shows the manual command instead. apt, dnf, and apk continue to require a manual upgrade because those commands need elevated privileges.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space.
modified
--- a/setup.md +++ b/setup.md @@ -176,7 +176,7 @@ Auto-updates -Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` to see the result of the most recent update attempt. On macOS and Linux, the native installer manages the launcher at `~/.local/bin/claude` as a symlink into `~/.local/share/claude/versions/`. If you replace that launcher with your own script or symlink, auto-update and `claude update` leave it in place: new versions still install under the `versions/` directory, and your launcher decides which version runs. Before v2.1.207, the auto-updater replaced a custom launcher at that path with its own symlink on every update. With a custom launcher, Claude Code also keeps every installed version on disk because it can’t tell which version the launcher needs. `claude doctor` reports a launcher that the native installer didn’t create. To let Claude Code manage the launcher again, remove `~/.local/bin/claude` and run `claude update`. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. +Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` to see the result of the most recent update attempt. On macOS and Linux, the native installer manages the launcher at `~/.local/bin/claude` as a symlink into `~/.local/share/claude/versions/`. If you replace that launcher with your own script or symlink, auto-update and `claude update` leave it in place: new versions still install under the `versions/` directory, and your launcher decides which version runs. With a custom launcher, Claude Code also keeps every installed version on disk because it can’t tell which version the launcher needs. `claude doctor` reports a launcher that the native installer didn’t create. To let Claude Code manage the launcher again, remove `~/.local/bin/claude` and run `claude update`. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default; see below to opt in for Homebrew and WinGet. To upgrade Homebrew manually, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.To have Claude Code run the upgrade command for you on Homebrew or WinGet, set [`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`](</docs/en/env-vars>) to `1`. Claude Code then runs the upgrade in the background when a new version is available and shows a restart prompt on success. The upgrade targets only the Claude Code package and does not affect other software you have installed.On WinGet the upgrade may fail while Claude Code is running because Windows locks the executable. In that case Claude Code shows the manual command instead. apt, dnf, and apk continue to require a manual upgrade because those commands need elevated privileges.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space.
modified
--- a/setup.md +++ b/setup.md @@ -500,7 +500,7 @@ ​ -Native installation +Uninstall a native installation Remove the Claude Code binary and version files: @@ -518,7 +518,7 @@ ​ -Homebrew installation +Uninstall with Homebrew Remove the Homebrew cask you installed. If you installed the stable cask: @@ -532,7 +532,7 @@ ​ -WinGet installation +Uninstall with WinGet Remove the WinGet package: @@ -542,7 +542,7 @@ ​ -apt / dnf / apk +Uninstall with apt, dnf, or apk Remove the package and the repository configuration: @@ -566,7 +566,7 @@ ​ -npm +Uninstall with npm Remove the global npm package:
modified
--- a/setup.md +++ b/setup.md @@ -47,7 +47,7 @@ curl -fsSL https://claude.ai/install.sh | bash -**Windows PowerShell:** +On Windows, your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Windows PowerShell:** irm https://claude.ai/install.ps1 | iex @@ -55,7 +55,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -When the installer finishes, open a new terminal window and run `claude --version`. A working installation prints a version number. If your shell says `claude` isn’t found or isn’t recognized, the install directory isn’t on your PATH yet: see [Fix your PATH](</docs/en/troubleshoot-install#command-not-found-claude-after-installation>).If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.If the install command fails with `syntax error near unexpected token '<'`, a `403`, or another curl error, see [Troubleshoot installation](</docs/en/troubleshoot-install#find-your-error>) to match the error to a fix and for alternative install methods.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. +The install command shows no progress while it downloads Claude Code. When the installer finishes, open a new terminal window and run `claude --version`. A working installation prints a version number. If your shell says `claude` isn’t found or isn’t recognized, the install directory isn’t on your PATH yet: see [Fix your PATH](</docs/en/troubleshoot-install#command-not-found-claude-after-installation>).If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell.If the install command fails with `syntax error near unexpected token '<'`, a `403`, or any other error, see [Troubleshoot installation](</docs/en/troubleshoot-install#find-your-error>) to match the error to a fix and for alternative install methods.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. Native installations automatically update in the background to keep you on the latest version. @@ -89,7 +89,13 @@ WSL 2| WSL 2 enabled| Supported| Linux toolchains or sandboxed command execution WSL 1| WSL 1 enabled| Not supported| If WSL 2 is unavailable -**Option 1: Native Windows** Run the install command from PowerShell or CMD. You do not need to run as Administrator. Installing [Git for Windows](<https://git-scm.com/downloads/win>) is optional. It provides Git Bash, which the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>) and the [Monitor tool](</docs/en/tools-reference#monitor-tool>) need. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from any terminal. +#### + +​ + +Install on native Windows + +Run the install command from PowerShell or CMD. You do not need to run as Administrator. Installing [Git for Windows](<https://git-scm.com/downloads/win>) is optional. It provides Git Bash, which the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>) and the [Monitor tool](</docs/en/tools-reference#monitor-tool>) need. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from any terminal. * **Without Git for Windows** , Claude Code runs shell commands via the [PowerShell tool](</docs/en/tools-reference#powershell-tool>). * **With Git for Windows** , Claude Code uses Git Bash for the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>). If Claude Code can’t find Git Bash, set the path in your [settings.json file](</docs/en/settings>): @@ -100,7 +106,15 @@ } } -When Git for Windows is installed, the PowerShell tool is available alongside Bash: on by default for claude.ai and Console accounts, and enabled with `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` in Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry sessions. Set it to `0` to turn the tool off. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. +When Git for Windows is installed, the PowerShell tool is available alongside Bash: on by default for claude.ai and Console accounts, and enabled with `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` in Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry sessions. Set it to `0` to turn the tool off. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. + +#### + +​ + +Install in WSL + +Open your WSL distribution and run the Linux installer from the install instructions. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. ### @@ -146,7 +160,7 @@ Authenticate -Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. If the `ANTHROPIC_API_KEY` environment variable is set, Claude Code prompts you once to approve the key instead of opening a browser. See [Authentication](</docs/en/authentication>) for all account types and team setup options. +Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. If you’ve set the `ANTHROPIC_API_KEY` environment variable and you approve the key when Claude Code asks whether to use it, Claude Code skips the login prompt. See [Authentication](</docs/en/authentication>) for all account types and team setup options. ##
modified
--- a/setup.md +++ b/setup.md @@ -183,7 +183,7 @@ "autoUpdatesChannel": "stable" } -For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/managed-settings>). Homebrew installations choose a channel by cask name instead of this setting: `claude-code` tracks stable and `claude-code@latest` tracks latest. +A newly launched model can require a Claude Code version newer than the stable channel serves. To run the model now, move to the latest channel. For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/managed-settings>). Homebrew installations choose a channel by cask name instead of this setting: `claude-code` tracks stable and `claude-code@latest` tracks latest. Installations from the apt, dnf, and apk repositories choose a channel by repository instead of this setting. To switch one, follow Install with Linux package managers. ###
modified
--- a/setup.md +++ b/setup.md @@ -89,7 +89,7 @@ WSL 2| WSL 2 enabled| Supported| Linux toolchains or sandboxed command execution WSL 1| WSL 1 enabled| Not supported| If WSL 2 is unavailable -**Option 1: Native Windows** Run the install command from PowerShell or CMD. You do not need to run as Administrator. Installing [Git for Windows](<https://git-scm.com/downloads/win>) is optional. It enables the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>) by providing Git Bash. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from any terminal. +**Option 1: Native Windows** Run the install command from PowerShell or CMD. You do not need to run as Administrator. Installing [Git for Windows](<https://git-scm.com/downloads/win>) is optional. It provides Git Bash, which the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>) and the [Monitor tool](</docs/en/tools-reference#monitor-tool>) need. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from any terminal. * **Without Git for Windows** , Claude Code runs shell commands via the [PowerShell tool](</docs/en/tools-reference#powershell-tool>). * **With Git for Windows** , Claude Code uses Git Bash for the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>). If Claude Code can’t find Git Bash, set the path in your [settings.json file](</docs/en/settings>): @@ -234,7 +234,7 @@ Advanced installation options -These options are for version pinning, Linux package managers, npm, and verifying binary integrity. +These options are for version pinning, Linux package managers, npm, network storage, and verifying binary integrity. ### @@ -366,13 +366,28 @@ Install with npm -You can also install Claude Code as a global npm package. As of v2.1.198, the npm package requires [Node.js 22 or later](<https://nodejs.org/en/download>). On an older Node.js version, npm prints an `EBADENGINE` warning during install rather than failing; the install completes and `claude` still runs, since the package downloads a native binary that doesn’t use your Node.js at runtime. +You can also install Claude Code as a global npm package. The npm package requires [Node.js 22 or later](<https://nodejs.org/en/download>). On an older Node.js version, npm prints an `EBADENGINE` warning during install rather than failing; the install completes and `claude` still runs, since the package downloads a native binary that doesn’t use your Node.js at runtime. npm install -g @anthropic-ai/claude-code The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshoot-install#native-binary-not-found-after-npm-install>) if the binary is missing after install. To upgrade an npm installation, run `npm install -g @anthropic-ai/claude-code@latest`. Avoid `npm update -g`, which respects the semver range from the original install and may not move you to the newest release. Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshoot-install#permission-errors-during-installation>). + +### + +​ + +Install on network storage + +A running session reads parts of the Claude Code executable from disk as it works, not only at startup. If the file becomes unreadable mid-session, for example because it was truncated or deleted on network storage, the session crashes. On Linux, your shell reports this as a `Bus error`. When home directories live on network storage, such as an NFS home mounted on several machines, lay out installs so that each session’s executable stays readable until the session ends: + + * **Install on local disk** : put the binary on each machine’s local filesystem, for example with a Linux package manager or your own deployment tooling. A per-user npm prefix and the native installer’s default `~/.local/share/claude/versions/` directory both sit in the home directory. + * **Keep each version in its own directory** : upgrading an npm installation in place with `npm install -g` deletes the previous binary. On storage that several machines share, that removes the file that sessions on the other machines are still running. Install each new version next to the old ones and move users to it. + * **Delete an old version only when no machine can still be running it** : a machine can’t see processes running on other machines, so checking for running processes before you delete isn’t enough. + * **Turn off Claude Code’s own updates** : set [`DISABLE_UPDATES`](</docs/en/env-vars>) and install new versions with your own tooling. Otherwise an auto-update of an npm installation on one machine runs the same in-place upgrade and removes the binary that sessions on other machines are running. Setting `DISABLE_AUTOUPDATER` alone isn’t enough, because users can still run `claude update` and `claude install`. See Disable auto-updates. + +The native installer deletes old versions from `~/.local/share/claude/versions/` on its own, which matters when that directory is on shared storage. Besides the version the launcher points to and any version a session on the same machine is running, it keeps the two newest versions and deletes the rest. A session on another machine that is running a deleted version loses its binary. With a custom launcher, Claude Code keeps every installed version and leaves cleanup to you. ###
modified
--- a/setup.md +++ b/setup.md @@ -33,9 +33,9 @@ Install Claude Code -Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>), [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>), or [Linux](</docs/en/desktop-linux>).New to the terminal? See the [terminal guide](</docs/en/terminal-guide>) for step-by-step instructions. - -To install Claude Code, use one of the following methods: +Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>), [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>), or [Linux](</docs/en/desktop-linux>). + +To install Claude Code, open a terminal and run the command for your system. If you haven’t used a terminal before, the [terminal guide](</docs/en/terminal-guide>) shows how to open one and paste the command. * Native Install (Recommended) @@ -55,7 +55,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.If the install command fails with `syntax error near unexpected token '<'`, a `403`, or another curl error, see [Troubleshoot installation](</docs/en/troubleshoot-install#find-your-error>) to match the error to a fix and for alternative install methods.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. +When the installer finishes, open a new terminal window and run `claude --version`. A working installation prints a version number. If your shell says `claude` isn’t found or isn’t recognized, the install directory isn’t on your PATH yet: see [Fix your PATH](</docs/en/troubleshoot-install#command-not-found-claude-after-installation>).If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.If the install command fails with `syntax error near unexpected token '<'`, a `403`, or another curl error, see [Troubleshoot installation](</docs/en/troubleshoot-install#find-your-error>) to match the error to a fix and for alternative install methods.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. Native installations automatically update in the background to keep you on the latest version.
modified
--- a/setup.md +++ b/setup.md @@ -146,7 +146,7 @@ Authenticate -Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free Claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. If the `ANTHROPIC_API_KEY` environment variable is set, Claude Code prompts you once to approve the key instead of opening a browser. See [Authentication](</docs/en/authentication>) for all account types and team setup options. +Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. If the `ANTHROPIC_API_KEY` environment variable is set, Claude Code prompts you once to approve the key instead of opening a browser. See [Authentication](</docs/en/authentication>) for all account types and team setup options. ##
modified
--- a/setup.md +++ b/setup.md @@ -214,7 +214,7 @@ } } -`DISABLE_AUTOUPDATER` only stops the background check; `claude update` and `claude install` still work. To block all update paths, including manual updates, set [`DISABLE_UPDATES`](</docs/en/env-vars>) instead. Use this when you distribute Claude Code through your own channels and need users to stay on the version you provide. +On a native or npm installation, confirm the change took effect by running `claude doctor` and checking that the `Auto-updates` line shows `disabled (set by env: DISABLE_AUTOUPDATER)` instead of `enabled`. `DISABLE_AUTOUPDATER` only stops the background check; `claude update` and `claude install` still work. To block all update paths, including manual updates, set [`DISABLE_UPDATES`](</docs/en/env-vars>) instead. Use this when you distribute Claude Code through your own channels and need users to stay on the version you provide. ###
modified
--- a/setup.md +++ b/setup.md @@ -100,7 +100,7 @@ } } -When Git for Windows is installed, the PowerShell tool is rolling out progressively as an additional option alongside Bash. Set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` to opt in or `0` to opt out. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. +When Git for Windows is installed, the PowerShell tool is available alongside Bash: on by default for claude.ai and Console accounts, and enabled with `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` in Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry sessions. Set it to `0` to turn the tool off. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. ### @@ -116,7 +116,7 @@ echo "https://dl-cdn.alpinelinux.org/alpine/v3.22/community" >> /etc/apk/repositories -Run `apk update` to refresh the package index, and retry the `apk add` command. Then set `USE_BUILTIN_RIPGREP` to `0` in your [`settings.json`](</docs/en/settings#available-settings>) file: +Run `apk update` to refresh the package index, and retry the `apk add` command. Then set `USE_BUILTIN_RIPGREP` to `0` in your [`settings.json`](</docs/en/settings-reference#all-settings>) file: { "env": { @@ -183,7 +183,7 @@ "autoUpdatesChannel": "stable" } -For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/permissions#managed-settings>). Homebrew installations choose a channel by cask name instead of this setting: `claude-code` tracks stable and `claude-code@latest` tracks latest. +For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/managed-settings>). Homebrew installations choose a channel by cask name instead of this setting: `claude-code` tracks stable and `claude-code@latest` tracks latest. ### @@ -198,7 +198,7 @@ "minimumVersion": "2.1.100" } -In [managed settings](</docs/en/permissions#managed-settings>), this enforces an organization-wide minimum that user and project settings cannot override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. Updates also respect the `requiredMaximumVersion` ceiling. See [available settings](</docs/en/settings#available-settings>). +In [managed settings](</docs/en/managed-settings>), this enforces an organization-wide minimum that user and project settings cannot override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. Updates also respect the `requiredMaximumVersion` ceiling. See [`requiredMinimumVersion`](</docs/en/settings-reference#requiredminimumversion>) and [`requiredMaximumVersion`](</docs/en/settings-reference#requiredmaximumversion>). ### @@ -206,7 +206,7 @@ Disable auto-updates -Set `DISABLE_AUTOUPDATER` to `"1"` in the `env` key of your [`settings.json`](</docs/en/settings#available-settings>) file: +Set `DISABLE_AUTOUPDATER` to `"1"` in the `env` key of your [`settings.json`](</docs/en/settings-reference#all-settings>) file: { "env": {
modified
--- a/setup.md +++ b/setup.md @@ -284,6 +284,8 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 2.1.89 && del install.cmd +To confirm which version installed, run `claude --version`: the command prints the exact version you passed, such as `2.1.89 (Claude Code)`. + ### ​ @@ -298,15 +300,22 @@ * apk -For Debian and Ubuntu. The install commands below download the signing key with `curl`, which fresh Debian and Ubuntu installations may not include. If the download fails with `sudo: curl: command not found`, install curl first: - - sudo apt install curl - -The following commands configure the `stable` channel: +For Debian and Ubuntu. The install commands below download the signing key with `curl` and verify it with `gpg`, which fresh Debian and Ubuntu installations may not include. If either command reports `command not found`, install both first: + + sudo apt install curl gnupg + +Download the signing key: sudo install -d -m 0755 /etc/apt/keyrings sudo curl -fsSL https://downloads.claude.ai/keys/claude-code.asc \ -o /etc/apt/keyrings/claude-code.asc + +If this download fails, `apt update` later fails with `NO_PUBKEY BAA929FF1A7ECACE`. Confirm the key downloaded and belongs to Anthropic before continuing: + + gpg --show-keys /etc/apt/keyrings/claude-code.asc + +The fingerprint gpg prints should be `31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE`. If gpg reports that the file can’t be opened or contains no valid OpenPGP data, the download failed or returned the wrong content: confirm your network can reach `downloads.claude.ai`, then rerun the download command.Register the repository on the `stable` channel and install: + echo "deb [signed-by=/etc/apt/keyrings/claude-code.asc] https://downloads.claude.ai/claude-code/apt/stable stable main" \ | sudo tee /etc/apt/sources.list.d/claude-code.list sudo apt update @@ -317,7 +326,7 @@ echo "deb [signed-by=/etc/apt/keyrings/claude-code.asc] https://downloads.claude.ai/claude-code/apt/latest latest main" \ | sudo tee /etc/apt/sources.list.d/claude-code.list -Verify the GPG key fingerprint before trusting it: `gpg --show-keys /etc/apt/keyrings/claude-code.asc` should report `31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE`.To upgrade later, run `sudo apt update && sudo apt upgrade claude-code`. +To upgrade later, run `sudo apt update && sudo apt upgrade claude-code`. For Fedora and RHEL. The following commands configure the `stable` channel:
modified
--- a/setup.md +++ b/setup.md @@ -73,7 +73,7 @@ claude -If you encounter any issues during installation, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). +Claude Code opens an interactive session in your terminal. If you encounter any issues during installation, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). ### @@ -108,11 +108,15 @@ Alpine Linux and musl-based distributions -The native installer on Alpine and other musl/uClibc-based distributions requires `libgcc`, `libstdc++`, and `ripgrep`. Install these using your distribution’s package manager, then set `USE_BUILTIN_RIPGREP=0`. This example installs the required packages on Alpine: - - apk add libgcc libstdc++ ripgrep - -Then set `USE_BUILTIN_RIPGREP` to `0` in your [`settings.json`](</docs/en/settings#available-settings>) file: +Installing Claude Code on Alpine and other musl/uClibc-based distributions requires `bash` and `curl` for the install command, and `libgcc`, `libstdc++`, and `ripgrep` at runtime. Alpine doesn’t include `bash` or `curl` by default, so the documented install command fails with a `not found` error until you install them. Install these packages using your distribution’s package manager, then set `USE_BUILTIN_RIPGREP=0`. This example installs the required packages on Alpine: + + apk add bash curl libgcc libstdc++ ripgrep + +On Alpine, `ripgrep` is in the community repository. If `apk` reports that the package is missing, add the community repository to `/etc/apk/repositories`, using your Alpine version: + + echo "https://dl-cdn.alpinelinux.org/alpine/v3.22/community" >> /etc/apk/repositories + +Run `apk update` to refresh the package index, and retry the `apk add` command. Then set `USE_BUILTIN_RIPGREP` to `0` in your [`settings.json`](</docs/en/settings#available-settings>) file: { "env": { @@ -130,17 +134,19 @@ claude --version -If this fails with `command not found` or another error, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). For a more detailed check of your installation and configuration, run [`claude doctor`](</docs/en/troubleshooting#get-more-help>): +A working installation prints a version number such as `2.1.211 (Claude Code)`. If this fails with `command not found` or another error, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). For a more detailed check of your installation and configuration, run [`claude doctor`](</docs/en/troubleshooting#get-more-help>): claude doctor +`claude doctor` prints read-only installation and settings diagnostics without starting a session, including install health, settings-file validation errors, and any warnings with suggested fixes. + ## ​ Authenticate -Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free Claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. See [Authentication](</docs/en/authentication>) for all account types and team setup options. +Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free Claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. If the `ANTHROPIC_API_KEY` environment variable is set, Claude Code prompts you once to approve the key instead of opening a browser. See [Authentication](</docs/en/authentication>) for all account types and team setup options. ## @@ -219,6 +225,8 @@ To apply an update immediately without waiting for the next background check, run: claude update + +When an update installs, the command reports `Successfully updated from <old version> to version <new version>`. If you’re already on the newest version, it reports `Claude Code is up to date (<version>)`. Installs managed by Homebrew, WinGet, or apk report `Claude is up to date!` instead. ##
modified
--- a/setup.md +++ b/setup.md @@ -156,7 +156,7 @@ Auto-updates -Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` to see the result of the most recent update attempt. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. +Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` to see the result of the most recent update attempt. On macOS and Linux, the native installer manages the launcher at `~/.local/bin/claude` as a symlink into `~/.local/share/claude/versions/`. If you replace that launcher with your own script or symlink, auto-update and `claude update` leave it in place: new versions still install under the `versions/` directory, and your launcher decides which version runs. Before v2.1.207, the auto-updater replaced a custom launcher at that path with its own symlink on every update. With a custom launcher, Claude Code also keeps every installed version on disk because it can’t tell which version the launcher needs. `claude doctor` reports a launcher that the native installer didn’t create. To let Claude Code manage the launcher again, remove `~/.local/bin/claude` and run `claude update`. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default; see below to opt in for Homebrew and WinGet. To upgrade Homebrew manually, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.To have Claude Code run the upgrade command for you on Homebrew or WinGet, set [`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`](</docs/en/env-vars>) to `1`. Claude Code then runs the upgrade in the background when a new version is available and shows a restart prompt on success. The upgrade targets only the Claude Code package and does not affect other software you have installed.On WinGet the upgrade may fail while Claude Code is running because Windows locks the executable. In that case Claude Code shows the manual command instead. apt, dnf, and apk continue to require a manual upgrade because those commands need elevated privileges.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space.
modified
--- a/setup.md +++ b/setup.md @@ -33,7 +33,7 @@ Install Claude Code -Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>), [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>), or [Linux](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>).New to the terminal? See the [terminal guide](</docs/en/terminal-guide>) for step-by-step instructions. +Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>), [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>), or [Linux](</docs/en/desktop-linux>).New to the terminal? See the [terminal guide](</docs/en/terminal-guide>) for step-by-step instructions. To install Claude Code, use one of the following methods:
modified
--- a/setup.md +++ b/setup.md @@ -290,7 +290,11 @@ * apk -For Debian and Ubuntu. The following commands configure the `stable` channel: +For Debian and Ubuntu. The install commands below download the signing key with `curl`, which fresh Debian and Ubuntu installations may not include. If the download fails with `sudo: curl: command not found`, install curl first: + + sudo apt install curl + +The following commands configure the `stable` channel: sudo install -d -m 0755 /etc/apt/keyrings sudo curl -fsSL https://downloads.claude.ai/keys/claude-code.asc \
modified
--- a/setup.md +++ b/setup.md @@ -140,7 +140,7 @@ Authenticate -Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free Claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Vertex AI](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. See [Authentication](</docs/en/authentication>) for all account types and team setup options. +Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free Claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. See [Authentication](</docs/en/authentication>) for all account types and team setup options. ## @@ -410,7 +410,7 @@ Check the binary against the manifest -Compare the SHA256 checksum of your downloaded binary with the value listed under `platforms.<platform>.checksum` in `manifest.json`. +Compare the SHA256 checksum of the binary with the value listed under `platforms.<platform>.checksum` in `manifest.json`. The commands below assume a `claude` binary in the current directory. To verify an installed native binary instead, run the command against `~/.local/share/claude/versions/VERSION`, replacing VERSION with the release you set in Step 2. * Linux
modified
--- a/setup.md +++ b/setup.md @@ -345,7 +345,7 @@ Install with npm -You can also install Claude Code as a global npm package. The package requires [Node.js 18 or later](<https://nodejs.org/en/download>). +You can also install Claude Code as a global npm package. As of v2.1.198, the npm package requires [Node.js 22 or later](<https://nodejs.org/en/download>). On an older Node.js version, npm prints an `EBADENGINE` warning during install rather than failing; the install completes and `claude` still runs, since the package downloads a native binary that doesn’t use your Node.js at runtime. npm install -g @anthropic-ai/claude-code
modified
--- a/setup.md +++ b/setup.md @@ -33,7 +33,7 @@ Install Claude Code -Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>) or [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>).New to the terminal? See the [terminal guide](</docs/en/terminal-guide>) for step-by-step instructions. +Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>), [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>), or [Linux](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>).New to the terminal? See the [terminal guide](</docs/en/terminal-guide>) for step-by-step instructions. To install Claude Code, use one of the following methods:
modified
--- a/setup.md +++ b/setup.md @@ -55,7 +55,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. +If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.If the install command fails with `syntax error near unexpected token '<'`, a `403`, or another curl error, see [Troubleshoot installation](</docs/en/troubleshoot-install#find-your-error>) to match the error to a fix and for alternative install methods.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. Native installations automatically update in the background to keep you on the latest version.
modified
--- a/setup.md +++ b/setup.md @@ -282,7 +282,7 @@ Install with Linux package managers -Claude Code publishes signed apt, dnf, and apk repositories. Replace `stable` with `latest` for the rolling channel. Package manager installations do not auto-update through Claude Code; updates arrive through your normal system upgrade workflow. All repositories are signed with the Claude Code release signing key. Before trusting the key, verify it as described in each tab. +Claude Code publishes signed apt, dnf, and apk repositories. Each repository offers two channels: `stable` serves a version that is typically about one week old, skipping releases with major regressions, and `latest` serves every release as soon as it ships. The commands below configure the `stable` channel, which fits most users; each tab also shows the `latest` repository URL. Package manager installations do not auto-update through Claude Code; updates arrive through your normal system upgrade workflow. All repositories are signed with the Claude Code release signing key. Before trusting the key, verify it as described in each tab. * apt @@ -290,7 +290,7 @@ * apk -For Debian and Ubuntu. To use the rolling channel, change both `stable` occurrences in the `deb` line: the URL path and the suite name. +For Debian and Ubuntu. The following commands configure the `stable` channel: sudo install -d -m 0755 /etc/apt/keyrings sudo curl -fsSL https://downloads.claude.ai/keys/claude-code.asc \ @@ -300,9 +300,14 @@ sudo apt update sudo apt install claude-code +To use the `latest` channel instead, both the URL path and the suite name change. Use this `deb` line: + + echo "deb [signed-by=/etc/apt/keyrings/claude-code.asc] https://downloads.claude.ai/claude-code/apt/latest latest main" \ + | sudo tee /etc/apt/sources.list.d/claude-code.list + Verify the GPG key fingerprint before trusting it: `gpg --show-keys /etc/apt/keyrings/claude-code.asc` should report `31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE`.To upgrade later, run `sudo apt update && sudo apt upgrade claude-code`. -For Fedora and RHEL: +For Fedora and RHEL. The following commands configure the `stable` channel: sudo tee /etc/yum.repos.d/claude-code.repo <<'EOF' [claude-code] @@ -314,15 +319,24 @@ EOF sudo dnf install claude-code +To use the `latest` channel instead, set `baseurl` to the `latest` repository: + + baseurl=https://downloads.claude.ai/claude-code/rpm/latest + dnf downloads the key on first install and prompts you to confirm the fingerprint. Verify it matches `31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE` before accepting.To upgrade later, run `sudo dnf upgrade claude-code`. -For Alpine Linux: +For Alpine Linux. The following commands configure the `stable` channel: wget -O /etc/apk/keys/claude-code.rsa.pub \ https://downloads.claude.ai/keys/claude-code.rsa.pub echo "https://downloads.claude.ai/claude-code/apk/stable" >> /etc/apk/repositories apk add claude-code +To switch to the `latest` channel, remove the `stable` repository line and add the `latest` repository: + + sed -i '\|downloads.claude.ai/claude-code/apk/stable|d' /etc/apk/repositories + echo "https://downloads.claude.ai/claude-code/apk/latest" >> /etc/apk/repositories + Verify the downloaded key with `sha256sum /etc/apk/keys/claude-code.rsa.pub`, which should report `395759c1f7449ef4cdef305a42e820f3c766d6090d142634ebdb049f113168b6`.To upgrade later, run `apk update && apk upgrade claude-code`. ###
modified
--- a/setup.md +++ b/setup.md @@ -192,7 +192,7 @@ "minimumVersion": "2.1.100" } -In [managed settings](</docs/en/permissions#managed-settings>), this enforces an organization-wide minimum that user and project settings cannot override. +In [managed settings](</docs/en/permissions#managed-settings>), this enforces an organization-wide minimum that user and project settings cannot override. The `minimumVersion` pin only constrains updates. To make Claude Code refuse to start outside a version range, use the managed settings `requiredMinimumVersion` and `requiredMaximumVersion` instead. Updates also respect the `requiredMaximumVersion` ceiling. See [available settings](</docs/en/settings#available-settings>). ###
modified
--- a/setup.md +++ b/setup.md @@ -1,9 +1,3 @@ -> ## Documentation Index -> -> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt> -> -> Use this file to discover all available pages before exploring further. - This page covers system requirements, platform-specific installation details, updates, and uninstallation. For a guided walkthrough of your first session, see the [quickstart](</docs/en/quickstart>). If you’ve never used a terminal before, see the [terminal guide](</docs/en/terminal-guide>). ##
modified
--- a/setup.md +++ b/setup.md @@ -162,7 +162,7 @@ Auto-updates -Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. +Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. Run `claude doctor` to see the result of the most recent update attempt. If an npm global install can’t auto-update because the npm global directory isn’t writable, Claude Code shows a one-time notice at startup, and `claude doctor` lists the available fixes. See [permission errors during installation](</docs/en/troubleshoot-install#permission-errors-during-installation>) for details. Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default; see below to opt in for Homebrew and WinGet. To upgrade Homebrew manually, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.To have Claude Code run the upgrade command for you on Homebrew or WinGet, set [`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`](</docs/en/env-vars>) to `1`. Claude Code then runs the upgrade in the background when a new version is available and shows a restart prompt on success. The upgrade targets only the Claude Code package and does not affect other software you have installed.On WinGet the upgrade may fail while Claude Code is running because Windows locks the executable. In that case Claude Code shows the manual command instead. apt, dnf, and apk continue to require a manual upgrade because those commands need elevated privileges.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space.
modified
--- a/setup.md +++ b/setup.md @@ -22,7 +22,7 @@ * Alpine Linux 3.19+ * **Hardware** : 4 GB+ RAM, x64 or ARM64 processor * **Network** : internet connection required. See [network configuration](</docs/en/network-config#network-access-requirements>). - * **Shell** : Bash, Zsh, PowerShell, or CMD. On native Windows, [Git for Windows](<https://git-scm.com/downloads/win>) is recommended; Claude Code falls back to PowerShell when Git Bash is absent. WSL setups do not require Git for Windows. + * **Shell** : Bash, Zsh, PowerShell, or CMD. * **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>) ### @@ -91,19 +91,22 @@ Option| Requires| [Sandboxing](</docs/en/sandboxing>)| When to use ---|---|---|--- -Native Windows| [Git for Windows](<https://git-scm.com/downloads/win>) recommended; PowerShell used if absent| Not supported| Windows-native projects and tools +Native Windows| None; [Git for Windows](<https://git-scm.com/downloads/win>) is optional| Not supported| Windows-native projects and tools WSL 2| WSL 2 enabled| Supported| Linux toolchains or sandboxed command execution WSL 1| WSL 1 enabled| Not supported| If WSL 2 is unavailable -**Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. You do not need to run as Administrator. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from PowerShell, CMD, or Git Bash. When Git Bash is installed, Claude Code uses it internally to execute commands regardless of where you launched it. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): - - { - "env": { - "CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe" - } - } - -Claude Code can also run PowerShell natively on Windows. When Git Bash is installed, the PowerShell tool is rolling out progressively as an additional option: set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` to opt in or `0` to opt out. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. +**Option 1: Native Windows** Run the install command from PowerShell or CMD. You do not need to run as Administrator. Installing [Git for Windows](<https://git-scm.com/downloads/win>) is optional. It enables the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>) by providing Git Bash. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from any terminal. + + * **Without Git for Windows** , Claude Code runs shell commands via the [PowerShell tool](</docs/en/tools-reference#powershell-tool>). + * **With Git for Windows** , Claude Code uses Git Bash for the [Bash tool](</docs/en/tools-reference#bash-tool-behavior>). If Claude Code can’t find Git Bash, set the path in your [settings.json file](</docs/en/settings>): + + { + "env": { + "CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe" + } + } + +When Git for Windows is installed, the PowerShell tool is rolling out progressively as an additional option alongside Bash. Set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` to opt in or `0` to opt out. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. ###
modified
--- a/setup.md +++ b/setup.md @@ -338,7 +338,7 @@ npm install -g @anthropic-ai/claude-code -The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshoot-install#native-binary-not-found-after-npm-install>) if the binary is missing after install. +The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshoot-install#native-binary-not-found-after-npm-install>) if the binary is missing after install. To upgrade an npm installation, run `npm install -g @anthropic-ai/claude-code@latest`. Avoid `npm update -g`, which respects the semver range from the original install and may not move you to the newest release. Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshoot-install#permission-errors-during-installation>).
modified
--- a/setup.md +++ b/setup.md @@ -151,7 +151,7 @@ Update Claude Code -Native installations automatically update in the background. You can configure the release channel to control whether you receive updates immediately or on a delayed stable schedule, or disable auto-updates entirely. Homebrew, WinGet, and Linux package manager installations require manual updates. +Native installations automatically update in the background. You can configure the release channel to control whether you receive updates immediately or on a delayed stable schedule, or disable auto-updates entirely. Homebrew, WinGet, and Linux package manager installations require manual updates by default. ### @@ -161,7 +161,7 @@ Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. -Homebrew, WinGet, apt, dnf, and apk installations do not auto-update. For Homebrew, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space. +Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default; see below to opt in for Homebrew and WinGet. To upgrade Homebrew manually, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.To have Claude Code run the upgrade command for you on Homebrew or WinGet, set [`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`](</docs/en/env-vars>) to `1`. Claude Code then runs the upgrade in the background when a new version is available and shows a restart prompt on success. The upgrade targets only the Claude Code package and does not affect other software you have installed.On WinGet the upgrade may fail while Claude Code is running because Windows locks the executable. In that case Claude Code shows the manual command instead. apt, dnf, and apk continue to require a manual upgrade because those commands need elevated privileges.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space. ###
modified
--- a/setup.md +++ b/setup.md @@ -433,7 +433,7 @@ Uninstall Claude Code -To remove Claude Code, follow the instructions for your installation method. +To remove Claude Code, follow the instructions for your installation method. If `claude` still runs afterward, you likely have a second installation or a leftover shell alias from an older installer. See [Check for conflicting installations](</docs/en/troubleshoot-install#check-for-conflicting-installations>) to find and remove it. ###
modified
--- a/setup.md +++ b/setup.md @@ -1,3 +1,9 @@ +> ## Documentation Index +> +> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt> +> +> Use this file to discover all available pages before exploring further. + This page covers system requirements, platform-specific installation details, updates, and uninstallation. For a guided walkthrough of your first session, see the [quickstart](</docs/en/quickstart>). If you’ve never used a terminal before, see the [terminal guide](</docs/en/terminal-guide>). ## @@ -16,7 +22,7 @@ * Alpine Linux 3.19+ * **Hardware** : 4 GB+ RAM, x64 or ARM64 processor * **Network** : internet connection required. See [network configuration](</docs/en/network-config#network-access-requirements>). - * **Shell** : Bash, Zsh, PowerShell, or CMD. Native Windows setups recommend [Git for Windows](<https://git-scm.com/downloads/win>); PowerShell is used as a fallback when Git Bash is absent. WSL setups do not require Git for Windows. + * **Shell** : Bash, Zsh, PowerShell, or CMD. On native Windows, [Git for Windows](<https://git-scm.com/downloads/win>) is recommended; Claude Code falls back to PowerShell when Git Bash is absent. WSL setups do not require Git for Windows. * **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>) ### @@ -73,7 +79,7 @@ claude -If you encounter any issues during installation, see the [troubleshooting guide](</docs/en/troubleshooting>). +If you encounter any issues during installation, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). ### @@ -97,7 +103,7 @@ } } -Claude Code can also run PowerShell natively on Windows. The PowerShell tool is rolling out progressively; set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` to opt in or `0` to opt out. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. +Claude Code can also run PowerShell natively on Windows. When Git Bash is installed, the PowerShell tool is rolling out progressively as an additional option: set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` to opt in or `0` to opt out. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. ### @@ -127,7 +133,7 @@ claude --version -For a more detailed check of your installation and configuration, run [`claude doctor`](</docs/en/troubleshooting#get-more-help>): +If this fails with `command not found` or another error, see [Troubleshoot installation and login](</docs/en/troubleshoot-install>). For a more detailed check of your installation and configuration, run [`claude doctor`](</docs/en/troubleshooting#get-more-help>): claude doctor @@ -332,9 +338,9 @@ npm install -g @anthropic-ai/claude-code -The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshooting#native-binary-not-found-after-npm-install>) if the binary is missing after install. - -Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshooting#permission-errors-during-installation>). +The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshoot-install#native-binary-not-found-after-npm-install>) if the binary is missing after install. + +Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshoot-install#permission-errors-during-installation>). ###
modified
--- a/setup.md +++ b/setup.md @@ -16,7 +16,7 @@ * Alpine Linux 3.19+ * **Hardware** : 4 GB+ RAM, x64 or ARM64 processor * **Network** : internet connection required. See [network configuration](</docs/en/network-config#network-access-requirements>). - * **Shell** : Bash, Zsh, PowerShell, or CMD. Native Windows setups require [Git for Windows](<https://git-scm.com/downloads/win>). WSL setups do not. + * **Shell** : Bash, Zsh, PowerShell, or CMD. Native Windows setups recommend [Git for Windows](<https://git-scm.com/downloads/win>); PowerShell is used as a fallback when Git Bash is absent. WSL setups do not require Git for Windows. * **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>) ### @@ -55,7 +55,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it. +If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.[Git for Windows](<https://git-scm.com/downloads/win>) is recommended on native Windows so Claude Code can use the Bash tool. If Git for Windows is not installed, Claude Code uses PowerShell as the shell tool instead. WSL setups do not need Git for Windows. Native installations automatically update in the background to keep you on the latest version. @@ -85,11 +85,11 @@ Option| Requires| [Sandboxing](</docs/en/sandboxing>)| When to use ---|---|---|--- -Native Windows| [Git for Windows](<https://git-scm.com/downloads/win>)| Not supported| Windows-native projects and tools +Native Windows| [Git for Windows](<https://git-scm.com/downloads/win>) recommended; PowerShell used if absent| Not supported| Windows-native projects and tools WSL 2| WSL 2 enabled| Supported| Linux toolchains or sandboxed command execution WSL 1| WSL 1 enabled| Not supported| If WSL 2 is unavailable -**Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. You do not need to run as Administrator. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from PowerShell, CMD, or Git Bash. Claude Code uses Git Bash internally to execute commands regardless of where you launched it. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): +**Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. You do not need to run as Administrator. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from PowerShell, CMD, or Git Bash. When Git Bash is installed, Claude Code uses it internally to execute commands regardless of where you launched it. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): { "env": {
modified
--- a/setup.md +++ b/setup.md @@ -205,6 +205,8 @@ } } +`DISABLE_AUTOUPDATER` only stops the background check; `claude update` and `claude install` still work. To block all update paths, including manual updates, set [`DISABLE_UPDATES`](</docs/en/env-vars>) instead. Use this when you distribute Claude Code through your own channels and need users to stay on the version you provide. + ### ​
modified
Show diff (134 lines)
--- a/setup.md +++ b/setup.md @@ -69,7 +69,7 @@ WinGet installations do not auto-update. Run `winget upgrade Anthropic.ClaudeCode` periodically to get the latest features and security fixes. -After installation completes, open a terminal in the project you want to work in and start Claude Code: +You can also install with [apt, dnf, or apk](</docs/en/setup#install-with-linux-package-managers>) on Debian, Fedora, RHEL, and Alpine. After installation completes, open a terminal in the project you want to work in and start Claude Code: claude @@ -145,7 +145,7 @@ Update Claude Code -Native installations automatically update in the background. You can configure the release channel to control whether you receive updates immediately or on a delayed stable schedule, or disable auto-updates entirely. Homebrew and WinGet installations require manual updates. +Native installations automatically update in the background. You can configure the release channel to control whether you receive updates immediately or on a delayed stable schedule, or disable auto-updates entirely. Homebrew, WinGet, and Linux package manager installations require manual updates. ### @@ -155,7 +155,7 @@ Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. -Homebrew and WinGet installations do not auto-update. For Homebrew, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space. +Homebrew, WinGet, apt, dnf, and apk installations do not auto-update. For Homebrew, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`. For Linux package managers, see the upgrade commands in Install with Linux package managers.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space. ### @@ -221,7 +221,7 @@ Advanced installation options -These options are for version pinning, migrating from npm, and verifying binary integrity. +These options are for version pinning, Linux package managers, npm, and verifying binary integrity. ### @@ -270,6 +270,55 @@ & ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.1.89 curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 2.1.89 && del install.cmd + +### + +​ + +Install with Linux package managers + +Claude Code publishes signed apt, dnf, and apk repositories. Replace `stable` with `latest` for the rolling channel. Package manager installations do not auto-update through Claude Code; updates arrive through your normal system upgrade workflow. All repositories are signed with the Claude Code release signing key. Before trusting the key, verify it as described in each tab. + + * apt + + * dnf + + * apk + +For Debian and Ubuntu. To use the rolling channel, change both `stable` occurrences in the `deb` line: the URL path and the suite name. + + sudo install -d -m 0755 /etc/apt/keyrings + sudo curl -fsSL https://downloads.claude.ai/keys/claude-code.asc \ + -o /etc/apt/keyrings/claude-code.asc + echo "deb [signed-by=/etc/apt/keyrings/claude-code.asc] https://downloads.claude.ai/claude-code/apt/stable stable main" \ + | sudo tee /etc/apt/sources.list.d/claude-code.list + sudo apt update + sudo apt install claude-code + +Verify the GPG key fingerprint before trusting it: `gpg --show-keys /etc/apt/keyrings/claude-code.asc` should report `31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE`.To upgrade later, run `sudo apt update && sudo apt upgrade claude-code`. + +For Fedora and RHEL: + + sudo tee /etc/yum.repos.d/claude-code.repo <<'EOF' + [claude-code] + name=Claude Code + baseurl=https://downloads.claude.ai/claude-code/rpm/stable + enabled=1 + gpgcheck=1 + gpgkey=https://downloads.claude.ai/keys/claude-code.asc + EOF + sudo dnf install claude-code + +dnf downloads the key on first install and prompts you to confirm the fingerprint. Verify it matches `31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE` before accepting.To upgrade later, run `sudo dnf upgrade claude-code`. + +For Alpine Linux: + + wget -O /etc/apk/keys/claude-code.rsa.pub \ + https://downloads.claude.ai/keys/claude-code.rsa.pub + echo "https://downloads.claude.ai/claude-code/apk/stable" >> /etc/apk/repositories + apk add claude-code + +Verify the downloaded key with `sha256sum /etc/apk/keys/claude-code.rsa.pub`, which should report `395759c1f7449ef4cdef305a42e820f3c766d6090d142634ebdb049f113168b6`.To upgrade later, run `apk update && apk upgrade claude-code`. ### @@ -368,7 +417,7 @@ * **macOS** : signed by “Anthropic PBC” and notarized by Apple. Verify with `codesign --verify --verbose ./claude`. * **Windows** : signed by “Anthropic, PBC”. Verify with `Get-AuthenticodeSignature .\claude.exe`. - * **Linux** : use the manifest signature above to verify integrity. Linux binaries are not individually code-signed. + * **Linux** : binaries are not individually code-signed. If you download directly from the `claude-code-releases` bucket or use the native installer, verify integrity with the manifest signature above. If you install with apt, dnf, or apk, your package manager verifies signatures automatically using the repository signing key. ## @@ -419,6 +468,30 @@ Remove the WinGet package: winget uninstall Anthropic.ClaudeCode + +### + +​ + +apt / dnf / apk + +Remove the package and the repository configuration: + + * apt + + * dnf + + * apk + + sudo apt remove claude-code + sudo rm /etc/apt/sources.list.d/claude-code.list /etc/apt/keyrings/claude-code.asc + + sudo dnf remove claude-code + sudo rm /etc/yum.repos.d/claude-code.repo + + apk del claude-code + sed -i '\|downloads.claude.ai/claude-code/apk|d' /etc/apk/repositories + rm /etc/apk/keys/claude-code.rsa.pub ###
modified
--- a/setup.md +++ b/setup.md @@ -323,7 +323,7 @@ Set `VERSION` to the release you want to verify. - REPO=https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases + REPO=https://downloads.claude.ai/claude-code-releases VERSION=2.1.89 curl -fsSLO "$REPO/$VERSION/manifest.json" curl -fsSLO "$REPO/$VERSION/manifest.json.sig"
modified
--- a/setup.md +++ b/setup.md @@ -275,35 +275,13 @@ ​ -Deprecated npm installation - -npm installation is deprecated. The native installer is faster, requires no dependencies, and auto-updates in the background. Use the native installation method when possible. - -#### - -​ - -Migrate from npm to native - -If you previously installed Claude Code with npm, switch to the native installer: - - # Install the native binary - curl -fsSL https://claude.ai/install.sh | bash - - # Remove the old npm installation - npm uninstall -g @anthropic-ai/claude-code - -You can also run `claude install` from an existing npm installation to install the native binary alongside it, then remove the npm version. - -#### - -​ - Install with npm -If you need npm installation for compatibility reasons, you must have [Node.js 18+](<https://nodejs.org/en/download>) installed. Install the package globally: +You can also install Claude Code as a global npm package. The package requires [Node.js 18 or later](<https://nodejs.org/en/download>). npm install -g @anthropic-ai/claude-code + +The npm package installs the same native binary as the standalone installer. npm pulls the binary in through a per-platform optional dependency such as `@anthropic-ai/claude-code-darwin-arm64`, and a postinstall step links it into place. The installed `claude` binary does not itself invoke Node. Supported npm install platforms are `darwin-arm64`, `darwin-x64`, `linux-x64`, `linux-arm64`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64`, and `win32-arm64`. Your package manager must allow optional dependencies. See [troubleshooting](</docs/en/troubleshooting#native-binary-not-found-after-npm-install>) if the binary is missing after install. Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshooting#permission-errors-during-installation>).
modified
--- a/setup.md +++ b/setup.md @@ -97,7 +97,7 @@ } } -Claude Code can also run PowerShell natively on Windows as an opt-in preview. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. +Claude Code can also run PowerShell natively on Windows. The PowerShell tool is rolling out progressively; set `CLAUDE_CODE_USE_POWERSHELL_TOOL=1` to opt in or `0` to opt out. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. ### @@ -180,6 +180,21 @@ ​ +Pin a minimum version + +The `minimumVersion` setting establishes a floor. Background auto-updates and `claude update` refuse to install any version below this value, so moving to the `"stable"` channel does not downgrade you if you are already on a newer `"latest"` build. Switching from `"latest"` to `"stable"` via `/config` prompts you to either stay on the current version or allow the downgrade. Choosing to stay sets `minimumVersion` to that version. Switching back to `"latest"` clears it. Add it to your [settings.json file](</docs/en/settings>) to pin a floor explicitly: + + { + "autoUpdatesChannel": "stable", + "minimumVersion": "2.1.100" + } + +In [managed settings](</docs/en/permissions#managed-settings>), this enforces an organization-wide minimum that user and project settings cannot override. + +### + +​ + Disable auto-updates Set `DISABLE_AUTOUPDATER` to `"1"` in the `env` key of your [`settings.json`](</docs/en/settings#available-settings>) file: @@ -445,7 +460,7 @@ Removing configuration files will delete all your settings, allowed tools, MCP server configurations, and session history. -To remove Claude Code settings and cached data: +The VS Code extension, the JetBrains plugin, and the Desktop app also write to `~/.claude/`. If any of them is still installed, the directory is recreated the next time it runs. To remove Claude Code completely, uninstall the [VS Code extension](</docs/en/vs-code#uninstall-the-extension>), the JetBrains plugin, and the Desktop app before deleting these files. To remove Claude Code settings and cached data: * macOS, Linux, WSL
modified
--- a/setup.md +++ b/setup.md @@ -318,7 +318,7 @@ Display the fingerprint of the imported key. - gpg --fingerprint [[email protected]](</cdn-cgi/l/email-protection>) + gpg --fingerprint security@anthropic.com Confirm the output includes this fingerprint: @@ -343,7 +343,7 @@ gpg --verify manifest.json.sig manifest.json -A valid result reports `Good signature from "Anthropic Claude Code Release Signing <[[email protected]](</cdn-cgi/l/email-protection>)>"`.`gpg` also prints `WARNING: This key is not certified with a trusted signature!` for any freshly imported key. This is expected. The `Good signature` line confirms the cryptographic check passed. The fingerprint comparison in Step 1 confirms the key itself is authentic. +A valid result reports `Good signature from "Anthropic Claude Code Release Signing <security@anthropic.com>"`.`gpg` also prints `WARNING: This key is not certified with a trusted signature!` for any freshly imported key. This is expected. The `Good signature` line confirms the cryptographic check passed. The fingerprint comparison in Step 1 confirms the key itself is authentic. 4
modified
--- a/setup.md +++ b/setup.md @@ -55,7 +55,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. Use the PowerShell command above instead. Your prompt shows `PS C:\` when you’re in PowerShell.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it. +If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it. Native installations automatically update in the background to keep you on the latest version.
modified
--- a/setup.md +++ b/setup.md @@ -16,7 +16,7 @@ * Alpine Linux 3.19+ * **Hardware** : 4 GB+ RAM, x64 or ARM64 processor * **Network** : internet connection required. See [network configuration](</docs/en/network-config#network-access-requirements>). - * **Shell** : Bash, Zsh, PowerShell, or CMD. On Windows, [Git for Windows](<https://git-scm.com/downloads/win>) is required. + * **Shell** : Bash, Zsh, PowerShell, or CMD. Native Windows setups require [Git for Windows](<https://git-scm.com/downloads/win>). WSL setups do not. * **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>) ### @@ -55,7 +55,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. Use the PowerShell command above instead. Your prompt shows `PS C:\` when you’re in PowerShell.**Windows requires[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. +If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. Use the PowerShell command above instead. Your prompt shows `PS C:\` when you’re in PowerShell.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it. Native installations automatically update in the background to keep you on the latest version. @@ -81,7 +81,15 @@ Set up on Windows -Claude Code on Windows requires [Git for Windows](<https://git-scm.com/downloads/win>) or WSL. You can launch `claude` from PowerShell, CMD, or Git Bash. Claude Code uses Git Bash internally to run commands. You do not need to run PowerShell as Administrator. **Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): +You can run Claude Code natively on Windows or inside WSL. Pick based on where your projects are located and which features you need: + +Option| Requires| [Sandboxing](</docs/en/sandboxing>)| When to use +---|---|---|--- +Native Windows| [Git for Windows](<https://git-scm.com/downloads/win>)| Not supported| Windows-native projects and tools +WSL 2| WSL 2 enabled| Supported| Linux toolchains or sandboxed command execution +WSL 1| WSL 1 enabled| Not supported| If WSL 2 is unavailable + +**Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. You do not need to run as Administrator. Whether you install from PowerShell or CMD only affects which install command you run. Your prompt shows `PS C:\Users\YourName>` in PowerShell and `C:\Users\YourName>` without the `PS` in CMD. If you’re new to the terminal, the [terminal guide](</docs/en/terminal-guide#windows>) walks through each step. After installation, launch `claude` from PowerShell, CMD, or Git Bash. Claude Code uses Git Bash internally to execute commands regardless of where you launched it. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): { "env": { @@ -89,7 +97,7 @@ } } -Claude Code can also run PowerShell natively on Windows as an opt-in preview. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Both WSL 1 and WSL 2 are supported. WSL 2 supports [sandboxing](</docs/en/sandboxing>) for enhanced security. WSL 1 does not support sandboxing. +Claude Code can also run PowerShell natively on Windows as an opt-in preview. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Open your WSL distribution and run the Linux installer from the install instructions above. You install and launch `claude` inside the WSL terminal, not from PowerShell or CMD. ###
modified
--- a/setup.md +++ b/setup.md @@ -61,7 +61,9 @@ brew install --cask claude-code -Homebrew installations do not auto-update. Run `brew upgrade claude-code` periodically to get the latest features and security fixes. +Homebrew offers two casks. `claude-code` tracks the stable release channel, which is typically about a week behind and skips releases with major regressions. `claude-code@latest` tracks the latest channel and receives new versions as soon as they ship. + +Homebrew installations do not auto-update. Run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed, to get the latest features and security fixes. winget install Anthropic.ClaudeCode @@ -145,7 +147,7 @@ Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. -Homebrew and WinGet installations do not auto-update. Use `brew upgrade claude-code` or `winget upgrade Anthropic.ClaudeCode` to update manually.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup claude-code` periodically to reclaim disk space. +Homebrew and WinGet installations do not auto-update. For Homebrew, run `brew upgrade claude-code` or `brew upgrade claude-code@latest`, depending on which cask you installed. For WinGet, run `winget upgrade Anthropic.ClaudeCode`.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup` periodically to reclaim disk space. ### @@ -164,7 +166,7 @@ "autoUpdatesChannel": "stable" } -For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/permissions#managed-settings>). +For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/permissions#managed-settings>). Homebrew installations choose a channel by cask name instead of this setting: `claude-code` tracks stable and `claude-code@latest` tracks latest. ### @@ -399,9 +401,13 @@ Homebrew installation -Remove the Homebrew cask: +Remove the Homebrew cask you installed. If you installed the stable cask: brew uninstall --cask claude-code + +If you installed the latest cask: + + brew uninstall --cask claude-code@latest ###
modified
--- a/setup.md +++ b/setup.md @@ -14,7 +14,7 @@ * Ubuntu 20.04+ * Debian 10+ * Alpine Linux 3.19+ - * **Hardware** : 4 GB+ RAM + * **Hardware** : 4 GB+ RAM, x64 or ARM64 processor * **Network** : internet connection required. See [network configuration](</docs/en/network-config#network-access-requirements>). * **Shell** : Bash, Zsh, PowerShell, or CMD. On Windows, [Git for Windows](<https://git-scm.com/downloads/win>) is required. * **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>)
modified
--- a/setup.md +++ b/setup.md @@ -33,7 +33,7 @@ Install Claude Code -Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>) or [Windows](<https://claude.ai/api/desktop/win32/x64/exe/latest/redirect?utm_source=claude_code&utm_medium=docs>).New to the terminal? See the [terminal guide](</docs/en/terminal-guide>) for step-by-step instructions. +Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>) or [Windows](<https://claude.com/download?utm_source=claude_code&utm_medium=docs>).New to the terminal? See the [terminal guide](</docs/en/terminal-guide>) for step-by-step instructions. To install Claude Code, use one of the following methods: @@ -127,7 +127,7 @@ Authenticate -Claude Code requires a Pro, Max, Teams, Enterprise, or Console account. The free Claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Vertex AI](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. See [Authentication](</docs/en/authentication>) for all account types and team setup options. +Claude Code requires a Pro, Max, Team, Enterprise, or Console account. The free Claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Vertex AI](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. See [Authentication](</docs/en/authentication>) for all account types and team setup options. ## @@ -240,11 +240,11 @@ * Windows CMD - curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58 - - & ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 1.0.58 - - curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 1.0.58 && del install.cmd + curl -fsSL https://claude.ai/install.sh | bash -s 2.1.89 + + & ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.1.89 + + curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 2.1.89 && del install.cmd ### @@ -296,7 +296,7 @@ Verify the manifest signature -The following steps require a POSIX shell with `gpg` and `curl`. On Windows, run them in Git Bash or WSL. +Steps 1-3 require a POSIX shell with `gpg` and `curl`. On Windows, run them in Git Bash or WSL. Step 4 includes a PowerShell option. 1
modified
Show diff (102 lines)
--- a/setup.md +++ b/setup.md @@ -55,7 +55,7 @@ curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd -**Windows requires[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. +If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. Use the PowerShell command above instead. Your prompt shows `PS C:\` when you’re in PowerShell.**Windows requires[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. Native installations automatically update in the background to keep you on the latest version. @@ -288,12 +288,84 @@ Binary integrity and code signing -You can verify the integrity of Claude Code binaries using SHA256 checksums and code signatures. - - * SHA256 checksums for all platforms are published in the release manifests at `https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/{VERSION}/manifest.json`. Replace `{VERSION}` with a version number such as `2.0.30`. - * Signed binaries are distributed for the following platforms: - * **macOS** : signed by “Anthropic PBC” and notarized by Apple - * **Windows** : signed by “Anthropic, PBC” +Each release publishes a `manifest.json` containing SHA256 checksums for every platform binary. The manifest is signed with an Anthropic GPG key, so verifying the signature on the manifest transitively verifies every binary it lists. + +#### + +​ + +Verify the manifest signature + +The following steps require a POSIX shell with `gpg` and `curl`. On Windows, run them in Git Bash or WSL. + +1 + +Download and import the public key + +The release signing key is published at a fixed URL. + + curl -fsSL https://downloads.claude.ai/keys/claude-code.asc | gpg --import + +Display the fingerprint of the imported key. + + gpg --fingerprint [[email protected]](</cdn-cgi/l/email-protection>) + +Confirm the output includes this fingerprint: + + 31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE + +2 + +Download the manifest and signature + +Set `VERSION` to the release you want to verify. + + REPO=https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases + VERSION=2.1.89 + curl -fsSLO "$REPO/$VERSION/manifest.json" + curl -fsSLO "$REPO/$VERSION/manifest.json.sig" + +3 + +Verify the signature + +Verify the detached signature against the manifest. + + gpg --verify manifest.json.sig manifest.json + +A valid result reports `Good signature from "Anthropic Claude Code Release Signing <[[email protected]](</cdn-cgi/l/email-protection>)>"`.`gpg` also prints `WARNING: This key is not certified with a trusted signature!` for any freshly imported key. This is expected. The `Good signature` line confirms the cryptographic check passed. The fingerprint comparison in Step 1 confirms the key itself is authentic. + +4 + +Check the binary against the manifest + +Compare the SHA256 checksum of your downloaded binary with the value listed under `platforms.<platform>.checksum` in `manifest.json`. + + * Linux + + * macOS + + * Windows PowerShell + + sha256sum claude + + shasum -a 256 claude + + (Get-FileHash claude.exe -Algorithm SHA256).Hash.ToLower() + +Manifest signatures are available for releases from `2.1.89` onward. Earlier releases publish checksums in `manifest.json` without a detached signature. + +#### + +​ + +Platform code signatures + +In addition to the signed manifest, individual binaries carry platform-native code signatures where supported. + + * **macOS** : signed by “Anthropic PBC” and notarized by Apple. Verify with `codesign --verify --verbose ./claude`. + * **Windows** : signed by “Anthropic, PBC”. Verify with `Get-AuthenticodeSignature .\claude.exe`. + * **Linux** : use the manifest signature above to verify integrity. Linux binaries are not individually code-signed. ##
modified
Show diff (368 lines)
--- a/setup.md +++ b/setup.md @@ -45,66 +45,30 @@ **macOS, Linux, WSL:** -Report incorrect code - -Copy - -Ask AI - - curl -fsSL https://claude.ai/install.sh | bash + curl -fsSL https://claude.ai/install.sh | bash **Windows PowerShell:** -Report incorrect code - -Copy - -Ask AI - - irm https://claude.ai/install.ps1 | iex + irm https://claude.ai/install.ps1 | iex **Windows CMD:** -Report incorrect code - -Copy - -Ask AI - - curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd + curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd **Windows requires[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. Native installations automatically update in the background to keep you on the latest version. -Report incorrect code - -Copy - -Ask AI - brew install --cask claude-code Homebrew installations do not auto-update. Run `brew upgrade claude-code` periodically to get the latest features and security fixes. -Report incorrect code - -Copy - -Ask AI - winget install Anthropic.ClaudeCode WinGet installations do not auto-update. Run `winget upgrade Anthropic.ClaudeCode` periodically to get the latest features and security fixes. After installation completes, open a terminal in the project you want to work in and start Claude Code: -Report incorrect code - -Copy - -Ask AI - claude If you encounter any issues during installation, see the [troubleshooting guide](</docs/en/troubleshooting>). @@ -116,12 +80,6 @@ Set up on Windows Claude Code on Windows requires [Git for Windows](<https://git-scm.com/downloads/win>) or WSL. You can launch `claude` from PowerShell, CMD, or Git Bash. Claude Code uses Git Bash internally to run commands. You do not need to run PowerShell as Administrator. **Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): - -Report incorrect code - -Copy - -Ask AI { "env": { @@ -139,21 +97,9 @@ The native installer on Alpine and other musl/uClibc-based distributions requires `libgcc`, `libstdc++`, and `ripgrep`. Install these using your distribution’s package manager, then set `USE_BUILTIN_RIPGREP=0`. This example installs the required packages on Alpine: -Report incorrect code - -Copy - -Ask AI - apk add libgcc libstdc++ ripgrep Then set `USE_BUILTIN_RIPGREP` to `0` in your [`settings.json`](</docs/en/settings#available-settings>) file: - -Report incorrect code - -Copy - -Ask AI { "env": { @@ -169,21 +115,9 @@ After installing, confirm Claude Code is working: -Report incorrect code - -Copy - -Ask AI - claude --version For a more detailed check of your installation and configuration, run [`claude doctor`](</docs/en/troubleshooting#get-more-help>): - -Report incorrect code - -Copy - -Ask AI claude doctor @@ -225,12 +159,6 @@ * `"stable"`: use a version that is typically about one week old, skipping releases with major regressions Configure this via `/config` → **Auto-update channel** , or add it to your [settings.json file](</docs/en/settings>): - -Report incorrect code - -Copy - -Ask AI { "autoUpdatesChannel": "stable" @@ -245,12 +173,6 @@ Disable auto-updates Set `DISABLE_AUTOUPDATER` to `"1"` in the `env` key of your [`settings.json`](</docs/en/settings#available-settings>) file: - -Report incorrect code - -Copy - -Ask AI { "env": { @@ -266,12 +188,6 @@ To apply an update immediately without waiting for the next background check, run: -Report incorrect code - -Copy - -Ask AI - claude update ## @@ -296,28 +212,10 @@ * Windows CMD -Report incorrect code - -Copy - -Ask AI - curl -fsSL https://claude.ai/install.sh | bash -Report incorrect code - -Copy - -Ask AI - irm https://claude.ai/install.ps1 | iex -Report incorrect code - -Copy - -Ask AI - curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd To install the stable version: @@ -328,28 +226,10 @@ * Windows CMD -Report incorrect code - -Copy - -Ask AI - curl -fsSL https://claude.ai/install.sh | bash -s stable -Report incorrect code - -Copy - -Ask AI - & ([scriptblock]::Create((irm https://claude.ai/install.ps1))) stable -Report incorrect code - -Copy - -Ask AI - curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd stable && del install.cmd To install a specific version number: @@ -360,28 +240,10 @@ * Windows CMD -Report incorrect code - -Copy - -Ask AI - curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58 -Report incorrect code - -Copy - -Ask AI - & ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 1.0.58 -Report incorrect code - -Copy - -Ask AI - curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 1.0.58 && del install.cmd ### @@ -399,12 +261,6 @@ Migrate from npm to native If you previously installed Claude Code with npm, switch to the native installer: - -Report incorrect code - -Copy - -Ask AI # Install the native binary curl -fsSL https://claude.ai/install.sh | bash @@ -421,12 +277,6 @@ Install with npm If you need npm installation for compatibility reasons, you must have [Node.js 18+](<https://nodejs.org/en/download>) installed. Install the package globally: - -Report incorrect code - -Copy - -Ask AI npm install -g @anthropic-ai/claude-code @@ -465,21 +315,9 @@ * Windows PowerShell -Report incorrect code - -Copy - -Ask AI - rm -f ~/.local/bin/claude rm -rf ~/.local/share/claude -Report incorrect code - -Copy - -Ask AI - Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force @@ -491,12 +329,6 @@ Remove the Homebrew cask: -Report incorrect code - -Copy - -Ask AI - brew uninstall --cask claude-code ### @@ -507,12 +339,6 @@ Remove the WinGet package: -Report incorrect code - -Copy - -Ask AI - winget uninstall Anthropic.ClaudeCode ### @@ -523,12 +349,6 @@ Remove the global npm package: -Report incorrect code - -Copy - -Ask AI - npm uninstall -g @anthropic-ai/claude-code ### @@ -544,12 +364,6 @@ * macOS, Linux, WSL * Windows PowerShell - -Report incorrect code - -Copy - -Ask AI # Remove user settings and state rm -rf ~/.claude @@ -559,12 +373,6 @@ rm -rf .claude rm -f .mcp.json -Report incorrect code - -Copy - -Ask AI - # Remove user settings and state Remove-Item -Path "$env:USERPROFILE\.claude" -Recurse -Force Remove-Item -Path "$env:USERPROFILE\.claude.json" -Force
modified
--- a/setup.md +++ b/setup.md @@ -129,7 +129,7 @@ } } -**Option 2: WSL** Both WSL 1 and WSL 2 are supported. WSL 2 supports [sandboxing](</docs/en/sandboxing>) for enhanced security. WSL 1 does not support sandboxing. +Claude Code can also run PowerShell natively on Windows as an opt-in preview. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>) for setup and limitations. **Option 2: WSL** Both WSL 1 and WSL 2 are supported. WSL 2 supports [sandboxing](</docs/en/sandboxing>) for enhanced security. WSL 1 does not support sandboxing. ###
added
Show diff (577 lines)
--- a/setup.md +++ b/setup.md @@ -0,0 +1,574 @@ +This page covers system requirements, platform-specific installation details, updates, and uninstallation. For a guided walkthrough of your first session, see the [quickstart](</docs/en/quickstart>). If you’ve never used a terminal before, see the [terminal guide](</docs/en/terminal-guide>). + +## + +​ + +System requirements + +Claude Code runs on the following platforms and configurations: + + * **Operating system** : + * macOS 13.0+ + * Windows 10 1809+ or Windows Server 2019+ + * Ubuntu 20.04+ + * Debian 10+ + * Alpine Linux 3.19+ + * **Hardware** : 4 GB+ RAM + * **Network** : internet connection required. See [network configuration](</docs/en/network-config#network-access-requirements>). + * **Shell** : Bash, Zsh, PowerShell, or CMD. On Windows, [Git for Windows](<https://git-scm.com/downloads/win>) is required. + * **Location** : [Anthropic supported countries](<https://www.anthropic.com/supported-countries>) + +### + +​ + +Additional dependencies + + * **ripgrep** : usually included with Claude Code. If search fails, see [search troubleshooting](</docs/en/troubleshooting#search-and-discovery-issues>). + +## + +​ + +Install Claude Code + +Prefer a graphical interface? The [Desktop app](</docs/en/desktop-quickstart>) lets you use Claude Code without the terminal. Download it for [macOS](<https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect?utm_source=claude_code&utm_medium=docs>) or [Windows](<https://claude.ai/api/desktop/win32/x64/exe/latest/redirect?utm_source=claude_code&utm_medium=docs>).New to the terminal? See the [terminal guide](</docs/en/terminal-guide>) for step-by-step instructions. + +To install Claude Code, use one of the following methods: + + * Native Install (Recommended) + + * Homebrew + + * WinGet + +**macOS, Linux, WSL:** + +Report incorrect code + +Copy + +Ask AI + + curl -fsSL https://claude.ai/install.sh | bash + +**Windows PowerShell:** + +Report incorrect code + +Copy + +Ask AI + + irm https://claude.ai/install.ps1 | iex + +**Windows CMD:** + +Report incorrect code + +Copy + +Ask AI + + curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd + +**Windows requires[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. + +Native installations automatically update in the background to keep you on the latest version. + +Report incorrect code + +Copy + +Ask AI + + brew install --cask claude-code + +Homebrew installations do not auto-update. Run `brew upgrade claude-code` periodically to get the latest features and security fixes. + +Report incorrect code + +Copy + +Ask AI + + winget install Anthropic.ClaudeCode + +WinGet installations do not auto-update. Run `winget upgrade Anthropic.ClaudeCode` periodically to get the latest features and security fixes. + +After installation completes, open a terminal in the project you want to work in and start Claude Code: + +Report incorrect code + +Copy + +Ask AI + + claude + +If you encounter any issues during installation, see the [troubleshooting guide](</docs/en/troubleshooting>). + +### + +​ + +Set up on Windows + +Claude Code on Windows requires [Git for Windows](<https://git-scm.com/downloads/win>) or WSL. You can launch `claude` from PowerShell, CMD, or Git Bash. Claude Code uses Git Bash internally to run commands. You do not need to run PowerShell as Administrator. **Option 1: Native Windows with Git Bash** Install [Git for Windows](<https://git-scm.com/downloads/win>), then run the install command from PowerShell or CMD. If Claude Code can’t find your Git Bash installation, set the path in your [settings.json file](</docs/en/settings>): + +Report incorrect code + +Copy + +Ask AI + + { + "env": { + "CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe" + } + } + +**Option 2: WSL** Both WSL 1 and WSL 2 are supported. WSL 2 supports [sandboxing](</docs/en/sandboxing>) for enhanced security. WSL 1 does not support sandboxing. + +### + +​ + +Alpine Linux and musl-based distributions + +The native installer on Alpine and other musl/uClibc-based distributions requires `libgcc`, `libstdc++`, and `ripgrep`. Install these using your distribution’s package manager, then set `USE_BUILTIN_RIPGREP=0`. This example installs the required packages on Alpine: + +Report incorrect code + +Copy + +Ask AI + + apk add libgcc libstdc++ ripgrep + +Then set `USE_BUILTIN_RIPGREP` to `0` in your [`settings.json`](</docs/en/settings#available-settings>) file: + +Report incorrect code + +Copy + +Ask AI + + { + "env": { + "USE_BUILTIN_RIPGREP": "0" + } + } + +## + +​ + +Verify your installation + +After installing, confirm Claude Code is working: + +Report incorrect code + +Copy + +Ask AI + + claude --version + +For a more detailed check of your installation and configuration, run [`claude doctor`](</docs/en/troubleshooting#get-more-help>): + +Report incorrect code + +Copy + +Ask AI + + claude doctor + +## + +​ + +Authenticate + +Claude Code requires a Pro, Max, Teams, Enterprise, or Console account. The free Claude.ai plan does not include Claude Code access. You can also use Claude Code with a third-party API provider like [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Vertex AI](</docs/en/google-vertex-ai>), or [Microsoft Foundry](</docs/en/microsoft-foundry>). After installing, log in by running `claude` and following the browser prompts. See [Authentication](</docs/en/authentication>) for all account types and team setup options. + +## + +​ + +Update Claude Code + +Native installations automatically update in the background. You can configure the release channel to control whether you receive updates immediately or on a delayed stable schedule, or disable auto-updates entirely. Homebrew and WinGet installations require manual updates. + +### + +​ + +Auto-updates + +Claude Code checks for updates on startup and periodically while running. Updates download and install in the background, then take effect the next time you start Claude Code. + +Homebrew and WinGet installations do not auto-update. Use `brew upgrade claude-code` or `winget upgrade Anthropic.ClaudeCode` to update manually.**Known issue:** Claude Code may notify you of updates before the new version is available in these package managers. If an upgrade fails, wait and try again later.Homebrew keeps old versions on disk after upgrades. Run `brew cleanup claude-code` periodically to reclaim disk space. + +### + +​ + +Configure release channel + +Control which release channel Claude Code follows for auto-updates and `claude update` with the `autoUpdatesChannel` setting: + + * `"latest"`, the default: receive new features as soon as they’re released + * `"stable"`: use a version that is typically about one week old, skipping releases with major regressions + +Configure this via `/config` → **Auto-update channel** , or add it to your [settings.json file](</docs/en/settings>): + +Report incorrect code + +Copy + +Ask AI + + { + "autoUpdatesChannel": "stable" + } + +For enterprise deployments, you can enforce a consistent release channel across your organization using [managed settings](</docs/en/permissions#managed-settings>). + +### + +​ + +Disable auto-updates + +Set `DISABLE_AUTOUPDATER` to `"1"` in the `env` key of your [`settings.json`](</docs/en/settings#available-settings>) file: + +Report incorrect code + +Copy + +Ask AI + + { + "env": { + "DISABLE_AUTOUPDATER": "1" + } + } + +### + +​ + +Update manually + +To apply an update immediately without waiting for the next background check, run: + +Report incorrect code + +Copy + +Ask AI + + claude update + +## + +​ + +Advanced installation options + +These options are for version pinning, migrating from npm, and verifying binary integrity. + +### + +​ + +Install a specific version + +The native installer accepts either a specific version number or a release channel (`latest` or `stable`). The channel you choose at install time becomes your default for auto-updates. See configure release channel for more information. To install the latest version (default): + + * macOS, Linux, WSL + + * Windows PowerShell + + * Windows CMD + +Report incorrect code + +Copy + +Ask AI + + curl -fsSL https://claude.ai/install.sh | bash + +Report incorrect code + +Copy + +Ask AI + + irm https://claude.ai/install.ps1 | iex + +Report incorrect code + +Copy + +Ask AI + + curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd + +To install the stable version: + + * macOS, Linux, WSL + + * Windows PowerShell + + * Windows CMD + +Report incorrect code + +Copy + +Ask AI + + curl -fsSL https://claude.ai/install.sh | bash -s stable + +Report incorrect code + +Copy + +Ask AI + + & ([scriptblock]::Create((irm https://claude.ai/install.ps1))) stable + +Report incorrect code + +Copy + +Ask AI + + curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd stable && del install.cmd + +To install a specific version number: + + * macOS, Linux, WSL + + * Windows PowerShell + + * Windows CMD + +Report incorrect code + +Copy + +Ask AI + + curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58 + +Report incorrect code + +Copy + +Ask AI + + & ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 1.0.58 + +Report incorrect code + +Copy + +Ask AI + + curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 1.0.58 && del install.cmd + +### + +​ + +Deprecated npm installation + +npm installation is deprecated. The native installer is faster, requires no dependencies, and auto-updates in the background. Use the native installation method when possible. + +#### + +​ + +Migrate from npm to native + +If you previously installed Claude Code with npm, switch to the native installer: + +Report incorrect code + +Copy + +Ask AI + + # Install the native binary + curl -fsSL https://claude.ai/install.sh | bash + + # Remove the old npm installation + npm uninstall -g @anthropic-ai/claude-code + +You can also run `claude install` from an existing npm installation to install the native binary alongside it, then remove the npm version. + +#### + +​ + +Install with npm + +If you need npm installation for compatibility reasons, you must have [Node.js 18+](<https://nodejs.org/en/download>) installed. Install the package globally: + +Report incorrect code + +Copy + +Ask AI + + npm install -g @anthropic-ai/claude-code + +Do NOT use `sudo npm install -g` as this can lead to permission issues and security risks. If you encounter permission errors, see [troubleshooting permission errors](</docs/en/troubleshooting#permission-errors-during-installation>). + +### + +​ + +Binary integrity and code signing + +You can verify the integrity of Claude Code binaries using SHA256 checksums and code signatures. + + * SHA256 checksums for all platforms are published in the release manifests at `https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/{VERSION}/manifest.json`. Replace `{VERSION}` with a version number such as `2.0.30`. + * Signed binaries are distributed for the following platforms: + * **macOS** : signed by “Anthropic PBC” and notarized by Apple + * **Windows** : signed by “Anthropic, PBC” + +## + +​ + +Uninstall Claude Code + +To remove Claude Code, follow the instructions for your installation method. + +### + +​ + +Native installation + +Remove the Claude Code binary and version files: + + * macOS, Linux, WSL + + * Windows PowerShell + +Report incorrect code + +Copy + +Ask AI + + rm -f ~/.local/bin/claude + rm -rf ~/.local/share/claude + +Report incorrect code + +Copy + +Ask AI + + Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force + Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force + +### + +​ + +Homebrew installation + +Remove the Homebrew cask: + +Report incorrect code + +Copy + +Ask AI + + brew uninstall --cask claude-code + +### + +​ + +WinGet installation + +Remove the WinGet package: + +Report incorrect code + +Copy + +Ask AI + + winget uninstall Anthropic.ClaudeCode + +### + +​ + +npm + +Remove the global npm package: + +Report incorrect code + +Copy + +Ask AI + + npm uninstall -g @anthropic-ai/claude-code + +### + +​ + +Remove configuration files + +Removing configuration files will delete all your settings, allowed tools, MCP server configurations, and session history. + +To remove Claude Code settings and cached data: + + * macOS, Linux, WSL + + * Windows PowerShell + +Report incorrect code + +Copy + +Ask AI + + # Remove user settings and state + rm -rf ~/.claude + rm ~/.claude.json + + # Remove project-specific settings (run from your project directory) + rm -rf .claude + rm -f .mcp.json + +Report incorrect code + +Copy + +Ask AI + + # Remove user settings and state + Remove-Item -Path "$env:USERPROFILE\.claude" -Recurse -Force + Remove-Item -Path "$env:USERPROFILE\.claude.json" -Force + + # Remove project-specific settings (run from your project directory) + Remove-Item -Path ".claude" -Recurse -Force + Remove-Item -Path ".mcp.json" -Force