Skip to main content
This page covers system requirements, platform-specific installation details, updates, and uninstallation. For a guided walkthrough of your first session, see the quickstart. If you’ve never used a terminal before, see the 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, x64 or ARM64 processor
  • Network: internet connection required. See network configuration.
  • Shell: Bash, Zsh, PowerShell, or CMD.
  • Location: Anthropic supported countries

Additional dependencies

Install Claude Code

Prefer a graphical interface? The Desktop app lets you use Claude Code without the terminal. Download it for macOS, Windows, or Linux.New to the terminal? See the terminal guide for step-by-step instructions.
To install Claude Code, use one of the following methods: You can also install with apt, dnf, or apk 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 Code opens an interactive session in your terminal. If you encounter any issues during installation, see Troubleshoot installation and login.

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: Option 1: Native Windows Run the install command from PowerShell or CMD. You do not need to run as Administrator. Installing Git for Windows is optional. It enables the Bash tool 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 walks through each step. After installation, launch claude from any terminal.
  • Without Git for Windows, Claude Code runs shell commands via the PowerShell tool.
  • With Git for Windows, Claude Code uses Git Bash for the Bash tool. If Claude Code can’t find Git Bash, set the path in your settings.json file:
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 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.

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:
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:
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 file:

Verify your installation

After installing, confirm Claude Code is working:
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. For a more detailed check of your installation and configuration, run 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, Google Cloud’s Agent Platform, or 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 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, WinGet, and Linux package manager installations require manual updates by default.

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 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 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

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 /configAuto-update channel, or add it to your settings.json file:
For enterprise deployments, you can enforce a consistent release channel across your organization using managed settings. Homebrew installations choose a channel by cask name instead of this setting: claude-code tracks stable and claude-code@latest tracks latest.

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 to pin a floor explicitly:
In 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.

Disable auto-updates

Set DISABLE_AUTOUPDATER to "1" in the env key of your settings.json file:
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 instead. Use this when you distribute Claude Code through your own channels and need users to stay on the version you provide.

Update manually

To apply an update immediately without waiting for the next background check, run:
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

These options are for version pinning, Linux package managers, 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):
To install the stable version:
To install a specific version number:

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.
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:
The following commands configure the stable channel:
To use the latest channel instead, both the URL path and the suite name change. Use this deb line:
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.

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. 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.
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 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.

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

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

Download and import the public key

The release signing key is published at a fixed URL.
Display the fingerprint of the imported key.
Confirm the output includes this fingerprint:
2

Download the manifest and signature

Set VERSION to the release you want to verify.
3

Verify the signature

Verify the detached signature against the manifest.
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

Check the binary against the manifest

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.
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: 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

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 to find and remove it.

Native installation

Remove the Claude Code binary and version files:

Homebrew installation

Remove the Homebrew cask you installed. If you installed the stable cask:
If you installed the latest cask:

WinGet installation

Remove the WinGet package:

apt / dnf / apk

Remove the package and the repository configuration:

npm

Remove the global npm package:

Remove configuration files

Removing configuration files will delete all your settings, allowed tools, MCP server configurations, and session history.
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, the JetBrains plugin, and the Desktop app before deleting these files. To remove Claude Code settings and cached data: