← All guides

Guide · Install · ★☆☆☆☆

How to install Claude Code on Windows

Claude Code installs on Windows with one command. You don't need Node.js or WSL. Here is the whole path, from a plan to your first session, and the fixes for the errors beginners hit most.

By Arthur Hsiao · Last updated · 4 min read

What you need. Windows 10 (version 1809) or newer, a paid Claude plan, and a terminal. The free claude.ai plan does not include Claude Code. The cheapest paid plan, Pro, is enough to start: see Claude Pro vs Max.

1Open PowerShell

Press the Windows key, type PowerShell and open it. A normal window is fine, you don't need "Run as administrator".

2Run the install command

irm https://claude.ai/install.ps1 | iex

This downloads Anthropic's installer and runs it. It puts claude.exe in C:\Users\<you>\.local\bin. It shows no progress while it downloads, so give it a minute.

Only run install commands from the official page. The one-liner above runs code from the internet on your PC, so copy it from Anthropic's setup page, not from a random blog or video. Setup steps change, and that page is the one that is kept up to date.

Other ways, if you prefer them. In Command Prompt (CMD):

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

With WinGet:

winget install Anthropic.ClaudeCode

The PowerShell and CMD installs update themselves in the background. WinGet does not: run winget upgrade Anthropic.ClaudeCode yourself now and then.

What you don't need. Node.js is only for the older npm install, so skip it. WSL (Linux inside Windows) is optional too. Git for Windows is recommended but not required: with it Claude Code can use Git Bash, without it Claude Code uses PowerShell. Install Git for Windows if you plan to use Git, and you will.

3Check that it worked

Close PowerShell and open a new window. The new window matters: the old one doesn't know about the new program yet. Then run:

claude --version

On this PC it prints:

2.1.325 (Claude Code)

Your number will be different, that's fine. If you see a version, it's installed. For a deeper check, claude doctor prints a report on the install and your settings without starting a session.

4Start Claude Code and sign in

Go to a project folder (any folder works for now) and start it:

cd C:\Users\you\Documents\my-project
claude

The first time, it opens your browser so you can sign in with your Claude account. Come back to the terminal when it says you're logged in. After that, claude goes straight in.

Type a plain request such as explain what this folder contains, and Claude Code answers. It asks before it edits a file or runs a command.

5Fix: "claude is not recognized"

This means Windows can't find claude.exe. The install worked, but the folder isn't on your PATH (the list of places Windows looks for programs). Check in PowerShell:

Test-Path "$env:USERPROFILE\.local\bin\claude.exe"
  • False: the install didn't finish. Run the install command again.
  • True: the file is there, so add its folder to your PATH:
$p = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$p;$env:USERPROFILE\.local\bin", 'User')

Then close the terminal and open a new one. If you're using the terminal inside VS Code, quit VS Code completely and reopen it: it reads the PATH when it starts.

6Fix: you see two claude programs

If you once installed with npm, you can have two copies. This PC has both:

where.exe claude
C:\Users\<you>\.local\bin\claude.exe
C:\Users\<you>\AppData\Roaming\npm\claude
C:\Users\<you>\AppData\Roaming\npm\claude.cmd

Windows runs the first one it finds, so two copies can mean the wrong version runs. Keep the one in .local\bin and remove the npm copy:

npm uninstall -g @anthropic-ai/claude-code

7Fix: "Not logged in"

Start claude and type /login. It opens the browser sign-in again. Make sure you sign in with the account that has the paid plan, not a free one.

Next: build your first project with Claude Code for beginners. It also explains when to use Claude chat instead. Claude Code plan mode is the first habit worth learning.