System requirements
- Operating Systems: macOS 10.15+, Ubuntu 20.04+/Debian 10+, or Windows 10+ (with WSL 1, WSL 2, or Git for Windows)
- Hardware: 4 GB+ RAM
- Software: Node.js 18+ (only required for npm installation)
- Network: Internet connection required for authentication and AI processing
- Shell: Works best in Bash, Zsh or Fish
- Location: Anthropic supported countries
Additional dependencies
- ripgrep: Usually included with Claude Code. If search fails, see search troubleshooting.
Standard installation
To install Claude Code, use one of the following methods:- Native Install (Recommended)
- Homebrew
- NPM
macOS, Linux, WSL:Windows PowerShell:Windows CMD:
Some users may be automatically migrated to an improved installation method.
Windows setup
Option 1: Claude Code within WSL- Both WSL 1 and WSL 2 are supported
- Requires Git for Windows
- For portable Git installations, specify the path to your
bash.exe:
Alternative installation methods
Claude Code offers multiple installation methods to suit different environments. If you encounter any issues during installation, consult the troubleshooting guide.Native installation options
The native installation is the recommended method and offers several benefits:- One self-contained executable
- No Node.js dependency
- Improved auto-updater stability
claude install to migrate to the native binary installation.
For advanced installation options with the native installer:
macOS, Linux, WSL:
Alpine Linux and other musl/uClibc-based distributions: The native build requires
libgcc, libstdc++, and ripgrep. For Alpine: apk add libgcc libstdc++ ripgrep. Set USE_BUILTIN_RIPGREP=0.- SHA256 checksums for all platforms are published in the release manifests, currently located at
https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/{VERSION}/manifest.json(example: replace{VERSION}with2.0.30) - Signed binaries are distributed for the following platforms:
- macOS: Signed by “Anthropic PBC” and notarized by Apple
- Windows: Signed by “Anthropic, PBC”
NPM installation
For environments where NPM is preferred or required:Authentication options
For individuals
- Claude Pro or Max plan (recommended): Subscribe to Claude’s Pro or Max plan for a unified subscription that includes both Claude Code and Claude on the web. Manage your account in one place and log in with your Claude.ai account.
- Claude Console: Connect through the Claude Console and complete the OAuth process. Requires active billing in the Anthropic Console. A “Claude Code” workspace is automatically created for usage tracking and cost management. You can’t create API keys for the Claude Code workspace; it’s dedicated exclusively for Claude Code usage.
For teams and organizations
- Claude for Teams or Enterprise (recommended): Subscribe to Claude for Teams or Claude for Enterprise for centralized billing, team management, and access to both Claude Code and Claude on the web. Team members log in with their Claude.ai accounts.
- Claude Console with team billing: Set up a shared Claude Console organization with team billing. Invite team members and assign roles for usage tracking.
- Cloud providers: Configure Claude Code to use Amazon Bedrock, Google Vertex AI, or Microsoft Foundry for deployments with your existing cloud infrastructure.
Claude Code securely stores your credentials. See Credential Management for details.
Running on AWS or GCP
By default, Claude Code uses the Claude API. For details on running Claude Code on AWS or GCP, see third-party integrations.Update Claude Code
Auto updates
Claude Code automatically keeps itself up to date to ensure you have the latest features and security fixes.- Update checks: Performed on startup and periodically while running
- Update process: Downloads and installs automatically in the background
- Notifications: You’ll see a notification when updates are installed
- Applying updates: Updates take effect the next time you start Claude Code
DISABLE_AUTOUPDATER environment variable in your shell or settings.json file: