Skip to content

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

Mac Terminal after you install Claude Code with the official installer: successfully installed, version 2.1.304, location and a PATH note

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.

The whole install in four moves
  1. Open a terminal

    Terminal on a Mac, PowerShell on Windows

  2. Paste the installer

    The official claude.ai install line for your system

  3. Check the version

    claude --version prints a number

  4. 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

Claude pricing cards showing the Free plan without Claude Code and the Pro plan marked Claude Code included
The Free plan has no "Claude Code included" badge; Pro (shown) and Max do. Claude's pricing page, October 2026.
$0

to download and install Claude Code

$20

a month for Claude Pro, billed monthly

4 GB

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 itHow it updates
Desktop app (no terminal at all)A download from AnthropicIts own Check for Updates menu
Native installer (most people, recommended)One pasted commandBy itself, in the background
VS Code extension (VS Code users)VS Code 1.94 or newerWith the extension
Homebrew (Mac Homebrew users)brew install --cask claude-code, which follows the stable channelManually: brew upgrade claude-code
WinGet (Windows WinGet users)winget install Anthropic.ClaudeCodeManually: winget upgrade Anthropic.ClaudeCode
apt, dnf or apk (Linux servers)Anthropic's signed package repositoryWith 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.

  1. Install and sign in with the account that has your paid plan.
  2. Open the Code tab at the top of the sidebar. An upgrade prompt means that account is on the free plan.
  3. 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.
  4. 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:

Terminal
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:

Terminal
claude --version

A version number followed by (Claude Code) means you are ready:

Mac Terminal showing claude --version returning 2.1.303 (Claude Code) after the install
A real check from a separate run on a Mac in October 2026, hence 2.1.303 rather than the 2.1.304 install at the top. Yours will be higher, since Claude Code updates often.

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:

PowerShell
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:

Command Prompt
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:

  1. Install the extension. Press Cmd + Shift + X (Mac) or Ctrl + Shift + X (Windows), search for Claude Code and install Anthropic's extension.
  2. Open the panel with the Spark icon at the top right of an open file, or ✻ Claude Code in the status bar.
  3. 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:

Terminal
mkdir -p ~/claude-projects/first-test
cd ~/claude-projects/first-test
claude

On Windows, in PowerShell:

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:

Claude Code login screen: Claude account with subscription, Anthropic Console account with API usage billing, or a 3rd-party platform
Option 1 bills your plan. Option 2 bills per token on a Console account, which is the surprise bill many beginners run into.

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":

Claude Code first launch asking Is this a project you created or one you trust, with Yes, I trust this folder selected
Claude Code asks once per folder, and it can read, edit and run files only inside the folder you trust. Started in your home folder, it asks again every time.

Run a safe first task

Start with a question that changes nothing, then a tiny change you can see:

First question, changes nothing
What files are in this folder, and what kinds of tasks could you help me with here? Don't create or change anything yet.
First visible change
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:

Claude Code in manual mode asking Do you want to create hello.html, with the file's HTML shown above the options
The first prompt changed nothing. The second one stopped here until we chose Yes.

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

Claude Code reporting it created hello.html and listing three ways to open it: from the prompt, from Finder or from a browser
Its closing message. Note the honest line: it says it has not opened the page to check how it looks.
The hello.html page Claude Code created on the first task, open in a browser with the heading My first Claude Code page
The finished page, opened with a double-click in Finder.

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 in to version and the new number, or Claude Code is up to date.
  • claude doctor runs 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:

Terminal
rm -f ~/.local/bin/claude
rm -rf ~/.local/share/claude

On Windows, in PowerShell:

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 seeWhat it meansFix
zsh: command not found: claude (Mac) or 'claude' is not recognized (Windows)It installed, but your terminal can't find it yetOpen 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 installerRetry in a few minutes. "App unavailable in region" in the output means Claude Code isn't offered in your country
'irm' is not recognizedYou are in Command Prompt, not PowerShellOpen 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 PowerShellUse the PowerShell line from Step 2
Claude Code does not support 32-bit WindowsYou opened Windows PowerShell (x86)Close it and open Windows PowerShell without "(x86)"
OAuth error: Invalid codeThe login code expired or was cut offPress Enter to retry and finish the browser step quickly
API Error: 403 Request not allowedThat account has no active paid planCheck your plan at claude.ai/settings, then run /login
Credit balance is too low while you pay for a planClaude Code is using an old API keyRun /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:

Terminal
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Mac terminal showing zsh command not found claude, the two PATH fix lines, and claude --version working afterwards
A real reproduction on a Mac, October 2026: the same two lines turn "command not found" into a working version check.

On Windows, run these two lines in PowerShell, then close and reopen PowerShell:

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):

Terminal
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?

The install finished but your Mac says "command not found: claude". What should you try first?

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.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

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