6 6
7* **Operating Systems**: macOS 10.15+, Ubuntu 20.04+/Debian 10+, or Windows 10+ (with WSL 1, WSL 2, or Git for Windows)7* **Operating Systems**: macOS 10.15+, Ubuntu 20.04+/Debian 10+, or Windows 10+ (with WSL 1, WSL 2, or Git for Windows)
8* **Hardware**: 4 GB+ RAM8* **Hardware**: 4 GB+ RAM
9* **Software**: [Node.js 18+](https://nodejs.org/en/download) (only required for npm installation)9* **Network**: Internet connection required (see [network configuration](/en/network-config#network-access-requirements))
10* **Network**: Internet connection required for authentication and AI processing10* **Shell**: Works best in Bash or Zsh
11* **Shell**: Works best in Bash, Zsh or Fish
12* **Location**: [Anthropic supported countries](https://www.anthropic.com/supported-countries)11* **Location**: [Anthropic supported countries](https://www.anthropic.com/supported-countries)
13 12
14### Additional dependencies13### Additional dependencies
15 14
16* **ripgrep**: Usually included with Claude Code. If search fails, see [search troubleshooting](/en/troubleshooting#search-and-discovery-issues).15* **ripgrep**: Usually included with Claude Code. If search fails, see [search troubleshooting](/en/troubleshooting#search-and-discovery-issues).
16* **[Node.js 18+](https://nodejs.org/en/download)**: Only required for [deprecated npm installation](#npm-installation-deprecated)
17 17
18## Standard installation18## Installation
19 19
20To install Claude Code, use one of the following methods:20To install Claude Code, use one of the following methods:
21 21
46 ```46 ```
47 </Tab>47 </Tab>
48 48
49 <Tab title="NPM">49 <Tab title="WinGet">
50 If you have [Node.js 18 or newer installed](https://nodejs.org/en/download/):50 ```powershell theme={null}
51 51 winget install Anthropic.ClaudeCode
52 ```sh theme={null}
53 npm install -g @anthropic-ai/claude-code
54 ```52 ```
55 </Tab>53 </Tab>
56</Tabs>54</Tabs>
57 55
58<Note>
59 Some users may be automatically migrated to an improved installation method.
60</Note>
61
62After the installation process completes, navigate to your project and start Claude Code:56After the installation process completes, navigate to your project and start Claude Code:
63 57
64```bash theme={null}58```bash theme={null}
66claude60claude
67```61```
68 62
69## Windows setup63If you encounter any issues during installation, consult the [troubleshooting guide](/en/troubleshooting).
70
71**Option 1: Claude Code within WSL**
72
73* Both WSL 1 and WSL 2 are supported
74
75**Option 2: Claude Code on native Windows with Git Bash**
76
77* Requires [Git for Windows](https://git-scm.com/downloads/win)
78* For portable Git installations, specify the path to your `bash.exe`:
79 ```powershell theme={null}
80 $env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git\bin\bash.exe"
81 ```
82
83## Alternative installation methods
84
85Claude Code offers multiple installation methods to suit different environments.
86
87If you encounter any issues during installation, consult the [troubleshooting guide](/en/troubleshooting#linux-permission-issues).
88 64
89<Tip>65<Tip>
90 Run `claude doctor` after installation to check your installation type and version.66 Run `claude doctor` after installation to check your installation type and version.
91</Tip>67</Tip>
92 68
93### Native installation options69<Note>
70 **Alpine Linux and other musl/uClibc-based distributions**: The native installer requires `libgcc`, `libstdc++`, and `ripgrep`. For Alpine: `apk add libgcc libstdc++ ripgrep`. Set `USE_BUILTIN_RIPGREP=0`.
71</Note>
94 72
95The native installation is the recommended method and offers several benefits:73### Authentication
96 74
97* One self-contained executable75#### For individuals
98* No Node.js dependency
99* Improved auto-updater stability
100 76
101If you have an existing installation of Claude Code, use `claude install` to migrate to the native binary installation.771. **Claude Pro or Max plan** (recommended): Subscribe to Claude's [Pro or Max plan](https://claude.ai/pricing) 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.
782. **Claude Console**: Connect through the [Claude Console](https://console.anthropic.com) 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.
102 79
103For advanced installation options with the native installer:80#### For teams and organizations
81
821. **Claude for Teams or Enterprise** (recommended): Subscribe to [Claude for Teams](https://claude.com/pricing#team-&-enterprise) or [Claude for Enterprise](https://anthropic.com/contact-sales) 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.
832. **Claude Console with team billing**: Set up a shared [Claude Console](https://console.anthropic.com) organization with team billing. Invite team members and assign roles for usage tracking.
843. **Cloud providers**: Configure Claude Code to use [Amazon Bedrock, Google Vertex AI, or Microsoft Foundry](/en/third-party-integrations) for deployments with your existing cloud infrastructure.
85
86### Install a specific version
87
88To install a specific version of Claude Code with the native installer:
104 89
105**macOS, Linux, WSL:**90**macOS, Linux, WSL:**
106 91
115curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58100curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58
116```101```
117 102
118<Note>
119 **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`.
120</Note>
121
122**Windows PowerShell:**103**Windows PowerShell:**
123 104
124```powershell theme={null}105```powershell theme={null}
145curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 1.0.58 && del install.cmd126curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd 1.0.58 && del install.cmd
146```127```
147 128
148<Tip>129### Binary integrity and code signing
149 Make sure that you remove any outdated aliases or symlinks before installing.
150</Tip>
151
152**Binary integrity and code signing**
153 130
154* 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}` with `2.0.30`)131* 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}` with `2.0.30`)
155* Signed binaries are distributed for the following platforms:132* Signed binaries are distributed for the following platforms:
156 * macOS: Signed by "Anthropic PBC" and notarized by Apple133 * macOS: Signed by "Anthropic PBC" and notarized by Apple
157 * Windows: Signed by "Anthropic, PBC"134 * Windows: Signed by "Anthropic, PBC"
158 135
159### NPM installation136## NPM installation (deprecated)
160 137
161For environments where NPM is preferred or required:138NPM installation is deprecated. Use the [native installation](#installation) method when possible. To migrate an existing npm installation to native, run `claude install`.
139
140**Global npm installation**
162 141
163```sh theme={null}142```sh theme={null}
164npm install -g @anthropic-ai/claude-code143npm install -g @anthropic-ai/claude-code
169 If you encounter permission errors, see [configure Claude Code](/en/troubleshooting#linux-permission-issues) for recommended solutions.148 If you encounter permission errors, see [configure Claude Code](/en/troubleshooting#linux-permission-issues) for recommended solutions.
170</Warning>149</Warning>
171 150
172## Authentication options151## Windows setup
173
174### For individuals
175
1761. **Claude Pro or Max plan** (recommended): Subscribe to Claude's [Pro or Max plan](https://claude.ai/pricing) 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.
1772. **Claude Console**: Connect through the [Claude Console](https://console.anthropic.com) 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.
178
179### For teams and organizations
180
1811. **Claude for Teams or Enterprise** (recommended): Subscribe to [Claude for Teams](https://claude.com/pricing#team-&-enterprise) or [Claude for Enterprise](https://anthropic.com/contact-sales) 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.
1822. **Claude Console with team billing**: Set up a shared [Claude Console](https://console.anthropic.com) organization with team billing. Invite team members and assign roles for usage tracking.
1833. **Cloud providers**: Configure Claude Code to use [Amazon Bedrock, Google Vertex AI, or Microsoft Foundry](/en/third-party-integrations) for deployments with your existing cloud infrastructure.
184 152
185<Note>153**Option 1: Claude Code within WSL**
186 Claude Code securely stores your credentials. See [Credential Management](/en/iam#credential-management) for details.
187</Note>
188 154
189## Running on AWS or GCP155* Both WSL 1 and WSL 2 are supported
190 156
191By default, Claude Code uses the Claude API.157**Option 2: Claude Code on native Windows with Git Bash**
192 158
193For details on running Claude Code on AWS or GCP, see [third-party integrations](/en/third-party-integrations).159* Requires [Git for Windows](https://git-scm.com/downloads/win)
160* For portable Git installations, specify the path to your `bash.exe`:
161 ```powershell theme={null}
162 $env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git\bin\bash.exe"
163 ```
194 164
195## Update Claude Code165## Update Claude Code
196 166
203* **Notifications**: You'll see a notification when updates are installed173* **Notifications**: You'll see a notification when updates are installed
204* **Applying updates**: Updates take effect the next time you start Claude Code174* **Applying updates**: Updates take effect the next time you start Claude Code
205 175
176<Note>
177 Homebrew and WinGet installations do not auto-update. Use `brew upgrade claude-code` or `winget upgrade Anthropic.ClaudeCode` to update manually.
178
179 **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.
180</Note>
181
206**Disable auto-updates:**182**Disable auto-updates:**
207 183
208Set the `DISABLE_AUTOUPDATER` environment variable in your shell or [settings.json file](/en/settings):184Set the `DISABLE_AUTOUPDATER` environment variable in your shell or [settings.json file](/en/settings):
252brew uninstall --cask claude-code228brew uninstall --cask claude-code
253```229```
254 230
231### WinGet installation
232
233```powershell theme={null}
234winget uninstall Anthropic.ClaudeCode
235```
236
255### NPM installation237### NPM installation
256 238
257```bash theme={null}239```bash theme={null}