How to Install Claude Code on Windows, Mac, and Linux (2026)

Maximin
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 claude in a project folder and follow the browser prompt. You need a paid Claude plan or a Console account.
  • Check the install with claude --version and claude doctor.
  • It updates itself in the background. Run claude update to 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 guide

Claude 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

  1. Open your terminal in a project folder.
  2. Type claude and press Enter.
  3. Follow the browser prompt to log in with your Claude account.
  4. Run claude --version to see the installed version, and claude doctor to check the install and your settings.
The video is in French. Turn on YouTube’s auto-translated subtitles to follow along.

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 guide

How to update or uninstall Claude Code

Installed withUpdateUninstall
Official installerAutomatic, or claude updateDelete the claude binary and its folder (see the docs)
Homebrewbrew upgrade claude-codebrew uninstall --cask claude-code
WinGetwinget upgrade Anthropic.ClaudeCodewinget uninstall Anthropic.ClaudeCode
npmnpm install -g @anthropic-ai/claude-code@latestnpm uninstall -g @anthropic-ai/claude-code
Update and uninstall commands by install method.

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

About the author

Maximin

I’m a software engineer, and I help businesses and individuals turn their ideas into real projects with AI agents.

Installed? Now set it up right

Get the free guideSee the project

Ready to Build
Your Project?

Get complete source code from my public builds.
Explore a project, study it, and make it your own.

Browse projects