To install Claude Code on Windows, open PowerShell, paste irm https://claude.ai/install.ps1 | iex and press Enter. Then open a new window and type claude to sign in. You need 64-bit Windows 10 or 11. Above all, you need a paid Claude plan or a Claude Console account. The free plan doesnât include Claude Code.
Install Claude Code on Windows: PowerShell or WSL
Thomas Poulain ·
What do you need to install Claude Code on Windows?
The official system requirements come down to four points.
- Windows 10 version 1809 or later, 64-bit.
- 4 GB of RAM and an x64 or ARM64 processor.
- An internet connection, from a country where Anthropic is available.
- An account that includes Claude Code: Pro, Max, Ultra, Team or Enterprise, or a Claude Console account.
The free claude.ai plan doesnât include Claude Code. Pro is the cheapest plan that does, and current prices are on the pricing page. With a Console account, you pay for API usage with no subscription.
You donât need administrator rights.
How do you install Claude Code on Windows?
Youâll use PowerShell, the terminal that comes with Windows. A terminal is a window where you type commands instead of clicking.
-
Install Git for Windows (optional). It lets Claude Code run Bash commands. Without it, Claude Code uses PowerShell. Download it from git-scm.com and keep the default choices.
-
Open PowerShell. Press
Win + X, then choose Windows PowerShell or Terminal. Each line starts withPS C:\Users\YourName>. Without thePS, youâre in CMD, the older command prompt. -
Run the installer. Paste this line with
Ctrl + Vor a right-click, then pressEnter.irm https://claude.ai/install.ps1 | iex -
Wait for it to finish. Nothing shows while it downloads, which is normal. It ends with âClaude Code successfully installed!â.
-
Open a new PowerShell window. The old one doesnât know the
claudecommand yet.
If youâd rather stay in CMD, use this line instead.
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
WinGet, the Windows package manager, also installs it with winget install Anthropic.ClaudeCode. That install doesnât update itself. The npm package @anthropic-ai/claude-code still exists and needs Node.js 22 or later.
How do you check that Claude Code is installed?
In the new window, ask for the version.
claude --version
You should see a number followed by (Claude Code), such as 2.1.332 (Claude Code). Yours will probably be newer.
For a full check-up, run claude doctor. It checks the install and your settings files without starting a session. Each warning comes with a suggested fix. Since v2.1.331, it also checks that the API can be reached.
How do you log in to Claude Code the first time?
Move into your project folder with cd, then start Claude Code.
cd C:\Users\YourName\projects\my-app
claude
Your browser opens so you can sign in with your Claude account. The terminal then shows Login successful. Press Enter to continue.
If the browser doesnât open, press c to copy the link, then paste it into your browser. If the page shows a code, paste it into the terminal at the Paste code here if prompted prompt.
To switch accounts later, type /login in a session. To keep two accounts, see Claude Code with multiple accounts.
Should you install Claude Code in WSL?
WSL (Windows Subsystem for Linux) runs Linux inside Windows. Claude Code works on both sides. If youâve never used WSL, stay on native Windows.
WSL 2 mostly helps if you work with Linux tools. It also supports the sandbox, which native Windows lacks. The sandbox limits the files and network that Claudeâs commands can reach.
To install in WSL, open your Linux distribution and run the Linux command. You then start claude from WSL, not from PowerShell.
curl -fsSL https://claude.ai/install.sh | bash
How do you update Claude Code on Windows?
With the installer, Claude Code updates itself in the background. The new version applies the next time you launch it.
To install it right away, run claude update. With WinGet, run winget upgrade Anthropic.ClaudeCode from time to time.
What if the installation fails?
The troubleshooting page matches each error message to a fix. The three errors below are the most frequent on Windows.
irm is not recognized, or The token '&&' is not a valid statement separator. You pasted the command meant for the other window. Open PowerShell and run irm https://claude.ai/install.ps1 | iex.
'claude' is not recognized. The Claude Code folder isnât in your PATH yet, the list of folders Windows searches for commands. Open a new window first, since an open window keeps its old PATH. If the error stays, run these two lines, then open a new window.
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')
The terminal inside VS Code keeps the editorâs PATH. In that case, restart VS Code too.
Could not create SSL/TLS secure channel. This mostly hits older Windows 10 systems. Run these two lines in the same window.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
irm https://claude.ai/install.ps1 | iex
How do you uninstall Claude Code on Windows?
If you used the installer, run these two lines in PowerShell.
Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force
Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force
With WinGet, run winget uninstall Anthropic.ClaudeCode instead.
Your settings and session history stay in %USERPROFILE%\.claude and %USERPROFILE%\.claude.json. Delete them only for a clean slate. The VS Code extension and the desktop app recreate them if theyâre still installed.
Remove-Item -Path "$env:USERPROFILE\.claude" -Recurse -Force
Remove-Item -Path "$env:USERPROFILE\.claude.json" -Force
Can you use Claude Code on Windows without a terminal?
Yes. The desktop app includes Claude Code in its Code tab, with nothing else to install. It comes for x64 and ARM64 Windows, and it also needs a paid plan.
What should you do after installing?
Before your first real task, add a CLAUDE.md file to your project. Claude Code reads your commands and conventions from it at the start of every session. What a CLAUDE.md file is shows how to write one.
Section 2.1 of module 2, Claude Code fundamentals covers installation and your first commands. New to tokens and context windows? The free module 0, AI basics for developers starts there.