How to Install Claude Code on Windows (November 2026): PowerShell, CMD, WinGet or WSL
ClaudeQuick answer: Claude Code runs on Windows 10 (1809+) and 11, natively or inside WSL. On native Windows, open PowerShell and run irm https://claude.ai/install.ps1 | iex, or use CMD or WinGet. You don’t need Administrator rights, and Git for Windows is optional. Then open a new terminal, run claude --version, and sign in with a paid Claude plan or a Console account. Pick WSL 2 instead if you work with Linux toolchains or want sandboxing, which native Windows doesn’t support. Commands and options below are from Anthropic’s setup guide, checked November 21, 2026.
What do you need before installing?
From the system requirements:
- Windows 10 version 1809 or later, or Windows Server 2019 or later
- 4 GB+ RAM and an x64 or ARM64 processor. 32-bit Windows is not supported.
- An internet connection and a supported country
- A shell: PowerShell or CMD on native Windows, or Bash/Zsh inside WSL
- A Claude account that includes Claude Code (see which plan you need)
Native Windows or WSL?
Anthropic’s Windows setup table puts it like this:
| Option | Requires | Sandboxing | When to use |
|---|---|---|---|
| Native Windows | Nothing; Git for Windows is optional | Not supported | Windows-native projects and tools |
| WSL 2 | WSL 2 enabled | Supported | Linux toolchains or sandboxed command execution |
| WSL 1 | WSL 1 enabled | Not supported | Only if WSL 2 is unavailable |
If your code lives in Windows folders and you build with Windows tools, go native. If your project is already set up inside a Linux distribution, install inside WSL.
How to install Claude Code on native Windows
Run one of these. You do not need to run the terminal as Administrator (setup guide):
| Where | Command |
|---|---|
PowerShell (prompt starts with PS C:\) |
irm https://claude.ai/install.ps1 | iex |
CMD (prompt starts with C:\) |
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd |
| WinGet | winget install Anthropic.ClaudeCode |
The installer shows no progress while it downloads. When it finishes, open a new terminal window and run:
claude --version
A working install prints a version number. For a fuller check, claude doctor prints installation and settings diagnostics without starting a session.
Mixed up PowerShell and CMD? Anthropic says an error like The token '&&' is not a valid statement separator means you’re in PowerShell, and 'irm' is not recognized means you’re in CMD. Use the other command.
There is also an npm package (npm install -g @anthropic-ai/claude-code@latest, Node.js 22 or later). It installs the same native binary, and win32-x64 and win32-arm64 are supported. Anthropic lists the native installer as recommended.
Git Bash or PowerShell: which shell does Claude Code use?
This decides how Claude Code runs commands for you (setup guide):
- Without Git for Windows, Claude Code runs shell commands through its PowerShell tool.
- With Git for Windows, it uses Git Bash for its Bash tool, and the PowerShell tool is still available alongside it for claude.ai and Console accounts. Git Bash is also needed for the Monitor tool.
Anthropic recommends Git for Windows on native Windows so the Bash tool works. If Claude Code can’t find Git Bash, set its path in settings.json:
{
"env": {
"CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
}
}
How to install Claude Code in WSL
Open your WSL distribution and run the Linux installer inside it:
curl -fsSL https://claude.ai/install.sh | bash
You install and launch claude inside the WSL terminal, not from PowerShell or CMD. WSL setups don’t need Git for Windows. On WSL 1, Anthropic’s troubleshooting page lists an Exec format error regression; WSL 2 is the supported path for sandboxing.
How do updates work on Windows?
- Native installer: updates automatically in the background. Changes apply the next time you start Claude Code.
- WinGet: does not auto-update by default. Run
winget upgrade Anthropic.ClaudeCode, or setCLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1so Claude Code runs the upgrade for you. Anthropic notes the WinGet upgrade can fail while Claude Code is running, because Windows locks the executable. - npm: upgrade with
npm install -g @anthropic-ai/claude-code@latest. Anthropic advises againstnpm update -g.
Common Windows install errors
From Anthropic’s troubleshoot installation page:
| Error | What it means | Fix |
|---|---|---|
'claude' is not recognized |
The install folder is not on PATH, or the terminal predates the install | Open a new terminal. Then check Test-Path "$env:USERPROFILE\.local\bin\claude.exe" and add that folder to PATH |
irm is not recognized / The token '&&' is not a valid statement separator |
Wrong command for your shell | Use the PowerShell or CMD command that matches your prompt |
Claude Code does not support 32-bit Windows |
You opened Windows PowerShell (x86) | Open the regular Windows PowerShell entry instead |
Claude Code on Windows requires either Git for Windows (for bash) or PowerShell |
Neither shell was found | Add PowerShell to PATH, install PowerShell 7, or install Git for Windows with “Add to PATH” |
'claude' is not recognized right after an update |
claude.exe is missing after an update |
Follow Anthropic’s restore-from-backup steps |
Which Claude plan do you need?
Windows doesn’t change the plan rules. The Claude pricing FAQ says Claude Code is included in all paid plans and shares the same usage limits as your chats. The authentication guide lists these sign-in options:
- Claude Pro, Max or Ultra: log in with your claude.ai account.
- Claude for Teams or Enterprise: log in with the account your admin invited. See Claude Team plan.
- Claude Console: pay per token at API rates. Your admin must invite you first, or you can set
ANTHROPIC_API_KEY. See How to get a Claude API key. - Cloud providers: Amazon Bedrock, Google Cloud’s Agent Platform or Microsoft Foundry.
How the plans and limits compare is covered in Claude Code pricing and Claude Pro vs Max vs API. Choosing between agents? See Codex vs Claude Code.
Prefer not to use a terminal at all? Anthropic also offers a Claude Code Desktop app for Windows.
FAQ
Does Claude Code work on Windows?
Yes. Anthropic's setup page lists Windows 10 1809+ and Windows Server 2019+, and you can run Claude Code natively in PowerShell or CMD, or inside WSL. Native Windows needs no extra software; Git for Windows is optional.
Should I use native Windows or WSL for Claude Code?
Anthropic suggests native Windows for Windows-native projects and tools, and WSL 2 for Linux toolchains or when you want sandboxed command execution. Sandboxing is supported on WSL 2 only, not on native Windows or WSL 1.
Do I need Git for Windows to run Claude Code?
No. Without it, Claude Code runs shell commands through its PowerShell tool. With Git for Windows installed, it uses Git Bash for the Bash tool, and Anthropic recommends it on native Windows for that reason. WSL setups do not need it.
Why does Windows say 'claude' is not recognized?
Usually the install folder is not on your PATH, or the terminal was opened before installation. Open a new terminal first. If it still fails, check that %USERPROFILE%\.local\bin\claude.exe exists and add that folder to PATH, as described in Anthropic's troubleshooting page.
Does WinGet keep Claude Code updated?
Not by default. Native installs update themselves in the background, but WinGet installs do not. Run winget upgrade Anthropic.ClaudeCode, or set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE to 1 to let Claude Code run the upgrade for you.
Which Claude plan do I need for Claude Code on Windows?
The same as on any platform. Claude's pricing FAQ says Claude Code is included in all paid plans and shares their usage limits. You can also sign in with a Claude Console account and pay API rates. The Free plan is not listed as a sign-in option.
Sources
- Claude Code docs: Set up Claude Code (accessed 2026-11-21)
- Claude Code docs: Troubleshoot installation and login (accessed 2026-11-21)
- Claude Code docs: Authentication (accessed 2026-11-21)
- Claude: Plans & pricing (FAQ) (accessed 2026-11-21)