To install Claude Code, you need exactly one command in a terminal on any system: on Mac and Linux it's curl -fsSL https://claude.ai/install.sh | bash, on Windows in PowerShell it's irm https://claude.ai/install.ps1 | iex. After that you change into a project folder, type claude, and sign in with your Claude account in the browser. You don't need Node.js and you don't need administrator rights, but you do need a paid plan: according to Anthropic, the free plan doesn't include Claude Code. Every command in this post is taken word for word from Anthropic's documentation as of November 10, 2026, and I say where each one comes from.
I've used Claude Code every day since it came out, on a MacBook Pro and on a Linux machine. My AI workforce built on Claude runs in working folders, each with its own CLAUDE.md, mostly in the terminal. Installation is the smallest part of that, but it's the step where the typical stumbling blocks sit: wrong shell, missing PATH, free account. Everything else I write about Claude is collected on the Claude page.
What you need before you install
Three things to sort out first: account, system, and terminal. On the account, Anthropic's setup documentation is unambiguous: Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account, and the free claude.ai plan isn't enough. Current prices are listed with sources in Claude Pricing and Plans Explained: Pro 20 dollars a month, Max 100 dollars, Ultra (called Max 20x until October 30, 2026) 200 dollars a month, Team from 20 dollars per seat billed annually, 25 dollars billed monthly. I didn't start on Max; I use it now because the workforce runs in long sessions. Pro is enough to get started.
On the system, the same docs list these minimums: macOS 13 or newer, Windows 10 from version 1809 or Windows Server 2019, Ubuntu 20.04, Debian 10, or Alpine 3.19, each with at least 4 GB of RAM and a 64-bit processor (x64 or ARM64). 32-bit Windows isn't supported. You also need an internet connection and an account in one of the countries Anthropic supports.
Node.js is no longer a requirement. The recommended native installer downloads a ready-made binary that runs without Node. Only if you choose the npm route do you need Node.js 22 or newer according to the docs, and even there npm only fetches the same native binary. So if you're looking for a Claude Code download, there is no classic setup file to double-click: the installer is a short script that fetches the right file for your system. The exception is the desktop app, which includes Claude Code as an interface and is offered for macOS, Windows, and as a beta for Linux according to the documentation overview, again only with a paid plan. If you don't want to install anything at all, you can run Claude Code in the browser; how that works is in Claude Code on the Web: Cloud Sessions.
Installing Claude Code on Windows: three ways
For Windows, the docs describe three ways that differ in requirements and capabilities. Which one to pick depends on what else you work with:
Sandboxing means the operating system draws a boundary around the shell commands Claude Code runs on your machine, and you decide which files and network addresses those commands may reach. According to the sandboxing docs, that works on macOS, Linux, and WSL 2, but not on native Windows. How to set up permissions and the sandbox is in Claude Code Security: Permissions and Sandbox.
The native route is the simplest for most people. Open PowerShell (not Command Prompt and not "Windows PowerShell (x86)") and run the command from the docs:
irm https://claude.ai/install.ps1 | iex
According to the docs, you explicitly don't need to run as administrator. If you prefer the classic Command Prompt, use the CMD variant curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd, and if you use the Windows package manager, winget install Anthropic.ClaudeCode. The docs call Git for Windows optional but recommend it for the native route: without it, Claude Code works through PowerShell; with it, it uses Git Bash. If it can't find Git Bash, add the path to your settings.json:
{
"env": {
"CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
}
}
For WSL 2, you don't install Claude Code on Windows itself but inside your Linux distribution, using the Linux command from the next section, and then start claude in the WSL terminal. On WSL 1, Anthropic's troubleshooting page documents a known failure with the message Exec format error. The fix is switching to WSL 2 with wsl --set-version <your distribution name> 2.
I don't work on Windows myself, but I have walked customers through the installation there. What I took away from it: people who don't write software usually end up with the Claude desktop app instead of the terminal. It includes Claude Code as an interface, and then nobody needs the install commands above. What the app does beyond Claude Code and how to install it is covered in Claude Desktop: Download, Features, MCP.
Installing Claude Code on Linux
On Linux, the command is the same as on the Mac:
curl -fsSL https://claude.ai/install.sh | bash
That applies to Ubuntu and Debian, and equally inside WSL. For Alpine the docs add one step: bash and curl are not preinstalled there, libgcc, libstdc++, and ripgrep are needed at runtime, and USE_BUILTIN_RIPGREP then goes to 0 in your settings.json. In addition, Anthropic provides signed package repositories for apt, dnf, and apk at downloads.claude.ai according to the docs; after adding one, something like sudo apt install claude-code is all it takes. Copy the exact lines for adding the repository and the fingerprint of the signing key straight from the docs, so you don't fall for a typo of mine. A third route is npm install -g @anthropic-ai/claude-code, which the docs pair with a clear warning: never run it with sudo.
Besides the Mac, I also run Claude Code on my DGX Spark, and there it runs on Linux. The routine is the same: open a terminal, run the command, change into the project folder.
Verify, sign in, and stay up to date
After installing, open a new terminal window so the PATH is reloaded, then check:
claude --version
The output is a version number followed by "(Claude Code)", for example 2.1.322 (Claude Code). Which version is currently the newest is shown in the Claude Code changelog. If you want a deeper check, claude doctor shows the installation type, version, and possible problems. Then change into a project folder and start your first session:
cd your-project
claude
On first start, your browser opens and you sign in with your Claude account. In WSL 2, over SSH, or inside a container, the browser doesn't open automatically. According to the docs, you then press c to copy the login URL, open it in the browser on your own machine, and paste the code you get there into the terminal; if pasting doesn't work, use claude auth login. How to keep Claude Code running on a remote machine is in Claude Code on a Server: tmux, Remote Control.
The folder you start claude in is the working directory, and that's the real lever. On my setup, every AI employee has its own folder with a CLAUDE.md that says who they are and what they're allowed to do, like Sebastian, who measures my site for Google, Bing and AI search. What such a file looks like is in CLAUDE.md: Claude Code's Memory.
On updates: the native installer updates itself in the background, and the new version takes effect the next time you start it. If you want to intervene, use claude update. Homebrew, WinGet, and the apt, dnf, and apk repositories don't update on their own: there you run brew upgrade claude-code (or brew upgrade claude-code@latest), winget upgrade Anthropic.ClaudeCode, or the update in your normal system routine. For Homebrew and WinGet, the docs say Claude Code runs the upgrade itself if you set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE to 1. If you'd rather stay on the stable channel, set "autoUpdatesChannel": "stable" in settings.json. To uninstall, the docs list rm -f ~/.local/bin/claude && rm -rf ~/.local/share/claude for Mac and Linux, and Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force plus the folder $env:USERPROFILE\.local\share\claude for Windows.
Seven error messages and how to fix them
Anthropic's troubleshooting page lists the most common messages. Almost all of them share one cause: the right command in the wrong shell.
'irm' is not recognized as an internal or external command
You're in Command Prompt (CMD), not PowerShell. Open PowerShell from the Start menu and run irm https://claude.ai/install.ps1 | iex there, or stay in Command Prompt and use the CMD variant of the installer, curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd.
The token '&&' is not a valid statement separator
The reverse case: you're in PowerShell and entered the CMD command. In PowerShell, the command is irm https://claude.ai/install.ps1 | iex.
A parameter cannot be found that matches parameter name 'fsSL'
You entered the Mac and Linux command in PowerShell. There, curl is an alias for Invoke-WebRequest and doesn't know the -fsSL flags. Here too, the PowerShell command irm https://claude.ai/install.ps1 | iex is the fix.
command not found: claude or 'claude' is not recognized
The installation finished, but the folder ~/.local/bin (Windows: %USERPROFILE%\.local\bin) isn't on your PATH. The installer reports this itself with Native installation exists but ~/.local/bin is not in your PATH. A new terminal window usually does it. To check on Windows whether the binary is there at all, run Test-Path "$env:USERPROFILE\.local\bin\claude.exe" in PowerShell. If it prints True, only the PATH entry is missing; the docs add it permanently like this, then you reopen the terminal:
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')
On a Mac with the default Zsh shell it's these two lines; on Linux with Bash, use ~/.bashrc instead of ~/.zshrc:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Note that the VS Code extension doesn't create a claude command in your terminal.
running scripts is disabled on this system
PowerShell's execution policy is blocking the launcher scripts from the npm installation, not the native installer. Fix per the docs: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser, or just install natively.
syntax error near unexpected token '<' or 403
The installer received an HTML page instead of the script. In Command Prompt the same failure reads < was unexpected at this time; without a page, curl reports curl: (22) The requested URL returned error: 403. If the output says "App unavailable in region", Claude Code isn't available in your country; otherwise a proxy, a firewall, or a brief disruption is usually behind it. Try again after a few minutes, or install with WinGet or Homebrew.
Claude Code does not support 32-bit Windows
Either your Windows really is 32-bit, in which case it won't work, or you opened "Windows PowerShell (x86)" on a 64-bit machine. To see which case you're in, run [Environment]::Is64BitOperatingSystem in the same window: if it prints True, close it and open "Windows PowerShell" without the suffix.
If none of these seven messages matches, claude doctor is the next step before you reinstall.
Frequently asked questions
Do I need Node.js to install Claude Code?
No. The native installer Anthropic recommends downloads a ready-made binary without Node.js. Only the npm package requires Node.js 22 or newer according to the docs, and even there Claude Code runs without Node at runtime. On an older Node version, npm prints an EBADENGINE warning, but the installation still completes.
Does Claude Code work with the free Claude account?
No. Anthropic's documentation lists a Pro, Max, Ultra, Team, Enterprise, or Console account as a requirement. On the free plan you can use Claude in the browser, but you can't start Claude Code. What the plans cost and which one is enough to get started is covered in Claude Code Pricing: Plan or API?.
Windows: PowerShell or WSL, which is better for me?
If your projects and tools run on Windows, take the native route through PowerShell; it needs nothing else and no administrator rights. WSL 2 is worth it if you work with Linux tools or want command sandboxing, which the docs say is only supported there. WSL 1 is the fallback of last resort.
Why does my terminal say "claude is not recognized" even though the installation finished?
Because the installation folder isn't on your terminal's PATH yet. Close the terminal and open it again; on Windows, the PATH command from the error messages section helps otherwise. Also check that you're in the same environment you installed in: an installation inside WSL isn't visible from Windows PowerShell.
Do I have to update Claude Code myself?
Not with the native installer, which updates itself in the background according to the docs. Homebrew, WinGet, apt, dnf, and apk don't update automatically by default; there you run the update yourself like for any other package. claude update triggers an update manually at any time.
Where do I find the Claude Code download for Windows?
There's no setup file to download, just the install command for PowerShell or the WinGet package Anthropic.ClaudeCode. If you want a classic windowed application, the Claude desktop app offers an interface that includes Claude Code, again only with a paid plan.
What's the difference between the Claude Code CLI and the desktop app?
The CLI is the tool in the terminal that you start with claude and that works in your current folder. The desktop app brings the same function into a windowed interface according to the docs. I use both depending on the task, mostly the terminal, because that is what I am used to. With customers who don't write software it is usually the other way around: they stay with the desktop app. If you'd rather have an interface than a terminal, Claude Code or Cowork: What For? helps you decide.
Where you go from here
After claude --version, Claude Code is installed, and that's all it is. The next step is your first task in a small, real folder, and that's what I wrote Claude Code: A Guide for Beginners for: ask for a summary of what's in the folder first, before you approve the first change. Once that works, set up a CLAUDE.md so you don't re-explain the context every session; what mine looks like is in CLAUDE.md: Claude Code's Memory. After that, turn recurring tasks into Claude Skills: How to Create and Use Them. The whole sequence, from the Claude app to your own AI workforce, is in Learn Claude: The Path in Five Stages. If you want to keep an eye on context, cost and limits while you work, set up a status bar: Claude Code Statusline: Setup and Examples.
The ready-made AI employees, each with its own personnel file as a CLAUDE.md, are in my community. They assume exactly this installation: a terminal, a plan, a folder. And because the personnel file is a Markdown file, it isn't tied to this one tool: what survives a switch is in CLAUDE.md vs AGENTS.md: What Survives. If you want to use Codex next to it as a second reviewer, the installation is covered in Install Codex on Windows, Mac and Linux.