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.
- Shell: Bash, Zsh, PowerShell, or CMD. On Windows, Git for Windows is required.
- Location: Anthropic supported countries
Additional dependencies
- ripgrep: usually included with Claude Code. If search fails, see search troubleshooting.
Install Claude Code
To install Claude Code, use one of the following methods:- Native Install (Recommended)
- Homebrew
- WinGet
macOS, Linux, WSL:Windows PowerShell:Windows 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. Install it first if you don’t have it.Native installations automatically update in the background to keep you on the latest version.
Set up on Windows
Claude Code on Windows requires Git for Windows or WSL. You can launchclaude 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, 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:
Alpine Linux and musl-based distributions
The native installer on Alpine and other musl/uClibc-based distributions requireslibgcc, 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:
USE_BUILTIN_RIPGREP to 0 in your settings.json file:
Verify your installation
After installing, confirm Claude Code is working:claude doctor:
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 Vertex AI, or Microsoft Foundry. After installing, log in by runningclaude and following the browser prompts. 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 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 andclaude 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
/config → Auto-update channel, or add it to your settings.json file:
Disable auto-updates
SetDISABLE_AUTOUPDATER to "1" in the env key of your settings.json file:
Update manually
To apply an update immediately without waiting for the next background check, run: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
- macOS, Linux, WSL
- Windows PowerShell
- Windows CMD
- macOS, Linux, WSL
- Windows PowerShell
- Windows 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: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+ installed. Install the package globally:Binary integrity and code signing
Each release publishes amanifest.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 withgpg and curl. On Windows, run them in Git Bash or WSL. Step 4 includes a PowerShell option.
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:
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.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.
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
Homebrew installation
Remove the Homebrew cask:WinGet installation
Remove the WinGet package:npm
Remove the global npm package:Remove configuration files
To remove Claude Code settings and cached data:- macOS, Linux, WSL
- Windows PowerShell