Install Claude Code on Windows and Mac in 4 Steps (2026)
Which install method to pick, step-by-step setup on Mac, Linux, Windows, VS Code and JetBrains, a safe first task, and fixes for the errors people actually hit.
By Yotam DahanUpdated 14 min readClaude Code
To install Claude Code, open Terminal on a Mac (or Linux) and run curl -fsSL https://claude.ai/install.sh | bash, or open PowerShell on Windows and run irm https://claude.ai/install.ps1 | iex. Then open a new window, type claude and sign in with a paid Claude account in your browser. Setting up Claude Code this way takes a few minutes and needs no coding knowledge. If you would rather never touch a terminal, install the Claude desktop app instead: Claude Code is built into its Code tab.
This walkthrough of how to install Claude Code follows Anthropic's official setup docs, checked again on November 18, 2026, and every terminal screenshot is a real run on a Mac. Still deciding? Read what is Claude Code first.
Open a terminal
Terminal on a Mac, PowerShell on Windows
Paste the installer
The official claude.ai install line for your system
Check the version
claude --version prints a number
Sign in
Run claude in a project folder and log in
Before you start your Claude Code setup
Most failed installs trace back to one of these four:
0 of 4 done

to download and install Claude Code
a month for Claude Pro, billed monthly
of RAM, the minimum Anthropic lists
Price from claude.com/pricing (before tax) and requirements from Anthropic's setup docs, checked November 18, 2026.
Is Claude Code safe to install?
Yes, as long as the command comes from Anthropic. The official installers download only from claude.ai and downloads.claude.ai, the Mac and Windows programs are signed by Anthropic (and notarized by Apple on a Mac), and everything lands in your own user folder.
Claude Code download or install: which method to pick
Every Claude Code installation below ends with the same program (the terminal version is also called the CLI); the routes differ in how you get it and how it updates.
| Method (best for) | How to get it | How it updates |
|---|---|---|
| Desktop app (no terminal at all) | A download from Anthropic | Its own Check for Updates menu |
| Native installer (most people, recommended) | One pasted command | By itself, in the background |
| VS Code extension (VS Code users) | VS Code 1.94 or newer | With the extension |
| Homebrew (Mac Homebrew users) | brew install --cask claude-code, which follows the stable channel | Manually: brew upgrade claude-code |
| WinGet (Windows WinGet users) | winget install Anthropic.ClaudeCode | Manually: winget upgrade Anthropic.ClaudeCode |
| apt, dnf or apk (Linux servers) | Anthropic's signed package repository | With your system upgrades |
Claude Code on npm: developers can also use npm (npm install -g @anthropic-ai/claude-code, Node.js 22 or later); nobody else needs Node.js.
The no-terminal way: the Claude Code desktop app
The desktop app is Claude's regular app with a Code tab that runs Claude Code on your computer's files. Anthropic's desktop quickstart links the download: one for Mac (Intel and Apple silicon), one for Windows, one for Windows on ARM and a Linux beta.
- Install and sign in with the account that has your paid plan.
- Open the Code tab at the top of the sidebar. An upgrade prompt means that account is on the free plan.
- Pick a folder. Under the prompt box, choose the top entry under Local, then open an empty test folder with the folder control next to it.
- Ask for something. In Manual mode, Claude shows each change and waits for your OK.
The app carries its own copy of Claude Code and updates through its Check for Updates… menu item (under Claude on a Mac, Help on Windows).
Install Claude Code on Mac or Linux
These steps install the Claude Code CLI, the terminal version, with Anthropic's native installer.
Step 1: open Terminal
Press Cmd + Space, type Terminal and press Enter. The window with a blinking cursor is where you type commands.
Step 2: paste the official Claude Code installer
Paste this line with Cmd + V and press Enter:
curl -fsSL https://claude.ai/install.sh | bash
Nothing seems to happen for a while, so leave the window alone until you see Claude Code successfully installed! The terminal at the top of this guide is that run on our Mac; if the same yellow setup note appears under yours, run the line it suggests.
Step 3: check that Claude Code is installed
Open a new Terminal window (only a new window sees the new program) and run:
claude --version
A version number followed by (Claude Code) means you are ready:

If you see zsh: command not found: claude instead, jump to the PATH fix.
Install Claude Code on Windows
Claude Code runs natively on Windows 10 and 11, so you need neither WSL (the Windows Subsystem for Linux) nor administrator rights.
Step 1: open PowerShell, not Command Prompt
Press Win + X and choose Windows PowerShell or Terminal. Lines should start with PS C:\; without the PS, you are in Command Prompt (CMD).
Step 2: install Claude Code (Windows PowerShell line)
Paste this with Ctrl + V or a right-click and press Enter:
irm https://claude.ai/install.ps1 | iex
irm downloads the installer and iex runs it; you are done at Claude Code successfully installed! In Command Prompt, use this line instead:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
Step 3: check that it worked
Open a new PowerShell window and run claude --version. A version number means you are ready; 'claude' is not recognized means you need the Windows PATH fix.
Do I need Git for Claude Code?
Not to get started. Git for Windows, free from git-scm.com, gives Claude Code a Bash shell; without it, Claude Code uses PowerShell, which covers most beginner tasks. A Mac needs nothing extra.
Install Claude Code in VS Code or JetBrains
In Visual Studio Code 1.94 or newer, Anthropic's extension puts Claude Code in a side panel:
- Install the extension. Press Cmd + Shift + X (Mac) or Ctrl + Shift + X (Windows), search for
Claude Codeand install Anthropic's extension. - Open the panel with the Spark icon at the top right of an open file, or ✻ Claude Code in the status bar.
- Sign in and finish the login in your browser.
Typing claude in VS Code's own terminal still needs the Mac or Windows install above. JetBrains IDEs such as IntelliJ IDEA and PyCharm use the Claude Code JetBrains plugin, which runs that terminal install inside the IDE, so install from the terminal first.
Start Claude Code and sign in for the first time
Make a test folder and start Claude Code in it. On a Mac:
mkdir -p ~/claude-projects/first-test
cd ~/claude-projects/first-test
claude
On Windows, in PowerShell:
mkdir -Force "$HOME\claude-projects\first-test"
cd "$HOME\claude-projects\first-test"
claude
Claude Code asks for a color theme (arrow keys, then Enter), then a sign-in method. Pick option 1 to use your Pro or Max plan:

Log in in the browser that opens (no browser? press c to copy the link), press Enter at Login successful, then answer the folder check. You just made this folder, so choose "Yes, I trust this folder":

Run a safe first task
Start with a question that changes nothing, then a tiny change you can see:
What files are in this folder, and what kinds of tasks could you help me with here? Don't create or change anything yet.Create a file called hello.html: a simple page with a heading that says "My first Claude Code page" and one short paragraph explaining what you just did. Then tell me how to open it.New terminal sessions start in auto mode, where a background safety check approves each action for you. While you are learning, press Shift+Tab until the line under the prompt reads manual mode on, so Claude Code asks before every file and command.
In October 2026 we ran both prompts in a fresh folder (the screenshots below are from that session). In manual mode, Claude Code showed the whole file before creating it:

Nine seconds after our Yes it was done, with three ways to open the file:

Installing is lesson one of the setup module in our Claude Code course for non-coders (early access, open for pre-order). The same module then covers the CLAUDE.md file, skills and MCP, and later modules build and publish a landing page and an agent for invoices, email and quotes.
How to update Claude Code, or uninstall it
- Native installs update themselves in the background; the new version applies at your next start.
- To update Claude Code right away, run
claude update. It prints a line ending into versionand the new number, orClaude Code is up to date. claude doctorruns a read-only health check, including the result of the last automatic update.- Homebrew, WinGet and Linux package installs don't update themselves by default. Use the upgrade commands from the method table.
To uninstall Claude Code from a native install on a Mac, run:
rm -f ~/.local/bin/claude
rm -rf ~/.local/share/claude
On Windows, in PowerShell:
Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force
Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force
Homebrew and WinGet installs come off with brew uninstall --cask claude-code or winget uninstall Anthropic.ClaudeCode. Your settings stay in the .claude folder and .claude.json file in your home folder until you delete them.
Troubleshooting: the errors people actually hit
Match the message you see to a fix from Anthropic's installation troubleshooting page, which also covers rarer cases such as TLS errors behind a company proxy or a file locked by antivirus.
| What you see | What it means | Fix |
|---|---|---|
zsh: command not found: claude (Mac) or 'claude' is not recognized (Windows) | It installed, but your terminal can't find it yet | Open a new window. Still failing? Use the PATH fix below |
syntax error near unexpected token '<' | The install address sent back a web page, not the installer | Retry in a few minutes. "App unavailable in region" in the output means Claude Code isn't offered in your country |
'irm' is not recognized | You are in Command Prompt, not PowerShell | Open PowerShell, or use the Command Prompt line from Step 2 |
The token '&&' is not a valid statement separator or A parameter cannot be found that matches parameter name 'fsSL' | You pasted the Command Prompt or the Mac line into PowerShell | Use the PowerShell line from Step 2 |
Claude Code does not support 32-bit Windows | You opened Windows PowerShell (x86) | Close it and open Windows PowerShell without "(x86)" |
OAuth error: Invalid code | The login code expired or was cut off | Press Enter to retry and finish the browser step quickly |
API Error: 403 Request not allowed | That account has no active paid plan | Check your plan at claude.ai/settings, then run /login |
Credit balance is too low while you pay for a plan | Claude Code is using an old API key | Run /status, remove ANTHROPIC_API_KEY from your environment and run /login |
Claude Code command not found or not recognized
The program installed fine, but an open window keeps its old list of program folders (the PATH). Try a new window first; if that fails, add the folder yourself. On a Mac, the first line saves the setting and the second applies it now:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

On Windows, run these two lines in PowerShell, then close and reopen PowerShell:
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')
Why the Claude Code install looks stuck
A few silent minutes are normal on a slow connection. If it sits much longer, press Ctrl + C and test whether your network reaches Anthropic's download server (in PowerShell, type curl.exe):
curl -sI https://downloads.claude.ai/claude-code-releases/latest
A first line with 200 means it is reachable, so run the installer again; a 403, a timeout or no output means a firewall, proxy or region block. The install also needs roughly 512 MB of free memory.
Quick check0 of 2 correct
You pasted the install line on Windows and got "'irm' is not recognized". What happened?
Not quite.
irm is a PowerShell command. Open PowerShell, or use the Command Prompt install line instead.
The install finished but your Mac says "command not found: claude". What should you try first?
Not quite.
An open window keeps its old PATH. If a new window still can't find it, use the two PATH lines above.
What to do next
Today, in the same test folder, run prompts 1 to 4 of the first-week prompt pack below: they show what Claude Code may touch, list your files, create one and rehearse undo, the controls you need before real work. Then build a complete first project with the Claude Code tutorial for beginners. The free first lesson of our Claude Code course for non-coders is open on the course page, and the course itself is in early access, open for pre-order.
Copy-paste first-week prompt pack
12 prompts to run in your first week with Claude Code, from safe read-only questions to a small build, each with what to check in the answer.
Enter your email and the full section opens right here.
Frequently asked questions
Where do I download Claude Code?
For the terminal version there is no file to download by hand: the official install command fetches Claude Code from claude.ai. For the no-terminal route, download the Claude desktop app from the link on Anthropic's desktop quickstart page, and Claude Code is built into its Code tab.
Can I install Claude Code on a company laptop?
Usually yes, because it installs into your own user folder. If your company filters web traffic, ask IT to allow claude.ai, claude.com, platform.claude.com, api.anthropic.com and downloads.claude.ai, the hosts Anthropic's network requirements list for sign-in, the API and updates, and check your company's AI policy before you open client files.
How do I check that my Windows PC can run Claude Code?
Press Win + R, type winver and press Enter: Windows 10 needs version 1809 or later (later versions are named 1903 up to 22H2), and Windows 11 works. Then open Settings > System > About, where System type must say 64-bit operating system.
Can I use Claude Code without installing anything?
Yes, if your project lives on GitHub. Claude Code on the web at claude.ai/code, and the Code tab in the Claude phone app, run sessions on Anthropic's cloud computers and count toward the same plan limits. To work on files stored on your own computer, you need the desktop app or the terminal install.
How do I log in to Claude Code with a different account?
Type /login inside Claude Code to sign in with another account, or /logout to sign out completely so the next launch asks you to log in again. To keep a work and a personal account side by side, Anthropic's authentication docs show how to give each account its own configuration folder.
Keep reading
What Is Claude Code? A Plain-English Guide for 2026
What is Claude Code? Anthropic's AI agent that edits files on your computer: how it differs from chat, what it costs, 6 business uses and a real invoice test.
Claude Code · 11 min readClaude Code Tutorial: How to Use Claude Code in 9 Steps
Learn how to use Claude Code step by step on a real project: build a one-page business site with plan mode, permissions and rewind, plus 10 beginner tips.
Claude Code · 16 min readCLAUDE.md File: Best Practices, Examples and 3 Templates
What is a CLAUDE.md file? Its role in Claude Code memory, where it goes on Mac and Windows, best practices, 3 copy-ready templates and fixes when it fails.
Claude Code · 16 min read
