How to Install Claude Code on Windows, Mac, and Linux (2026)
- Published
- 3 min read
- 3 min read
Key takeaways
- Mac, Linux, and WSL:
curl -fsSL https://claude.ai/install.sh | bash - Windows PowerShell:
irm https://claude.ai/install.ps1 | iex. No admin rights needed. - You don't need Node.js with the official installer. Only the npm install needs Node.js 22 or later.
- Log in on first launch: type
claudein a project folder and follow the browser prompt. You need a paid Claude plan or a Console account. - Check the install with
claude --versionandclaude doctor. - It updates itself in the background. Run
claude updateto update now.
Installed? Now set it up right
The free guide covers the 5 settings that change everything, with every prompt ready to copy.
Get the free guideClaude Code requirements
- Mac: macOS 13 or later.
- Windows: Windows 10 version 1809 or later, or Windows Server 2019 or later.
- Linux: Ubuntu 20.04+, Debian 10+, or Alpine Linux 3.19+.
- Computer: 4 GB of RAM or more, x64 or ARM64 processor, and an internet connection.
- Account: Pro, Max, Ultra, Team, Enterprise, or a Claude Console account. The free Claude plan doesn't include Claude Code. See is Claude Code free?
How to install Claude Code on Mac and Linux
Open the Terminal app and paste this command:
curl -fsSL https://claude.ai/install.sh | bash
With Homebrew on Mac: brew install --cask claude-code. The same command works in WSL on Windows.
How to install Claude Code on Windows
Open PowerShell (not as administrator) and paste:
irm https://claude.ai/install.ps1 | iex
- From CMD instead:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd - With WinGet:
winget install Anthropic.ClaudeCode - Install Git for Windows too. It is optional, but Anthropic recommends it so Claude Code can use Bash. Without it, Claude Code uses PowerShell.
If you see The token '&&' is not a valid statement separator, you pasted the CMD command into PowerShell. Use the PowerShell command above.
Install Claude Code with npm
If you already use Node.js 22 or later, you can run npm install -g @anthropic-ai/claude-code. Don't use sudo. The official installer is simpler, because it doesn't need Node.js and updates itself.
Log in and check that Claude Code works
- Open your terminal in a project folder.
- Type
claudeand press Enter. - Follow the browser prompt to log in with your Claude account.
- Run
claude --versionto see the installed version, andclaude doctorto check the install and your settings.
Installed? The next step is how to use Claude Code: the model, the modes, memory, and skills.
Get the free Claude Code guide
The install in 4 steps, then the 5 settings to know, with every prompt ready to copy.
Download the guideHow to update or uninstall Claude Code
| Installed with | Update | Uninstall |
|---|---|---|
| Official installer | Automatic, or claude update | Delete the claude binary and its folder (see the docs) |
| Homebrew | brew upgrade claude-code | brew uninstall --cask claude-code |
| WinGet | winget upgrade Anthropic.ClaudeCode | winget uninstall Anthropic.ClaudeCode |
| npm | npm install -g @anthropic-ai/claude-code@latest | npm uninstall -g @anthropic-ai/claude-code |
Frequently asked questions
How do I install Claude Code?
Run curl -fsSL https://claude.ai/install.sh | bash on Mac or Linux, or irm https://claude.ai/install.ps1 | iex in Windows PowerShell. Then type claude to log in.
Does Claude Code work on Windows?
Yes, natively on Windows 10 (1809+) and Windows 11, or inside WSL. Git for Windows is recommended so it can use Bash.
Do I need Node.js to install Claude Code?
No. The official installer doesn't need it. Only the npm install needs Node.js 22 or later.
Is Claude Code free to install?
Yes, but you need a paid Claude plan (from $17 a month) or API credits to use it. See the prices