You don't need WSL. Claude Code runs natively on Windows 10 (version 1809 or later) and
Windows 11: install it with one PowerShell command, sign in, and run claude in your
project folder. Git for Windows is optional. WSL 2 is only worth setting up if you want sandboxed
commands or a Linux toolchain.
Both are supported. As of October 2026, Anthropic's setup docs compare them like this:
| Native Windows | WSL 2 | |
|---|---|---|
| Install | One command in PowerShell or CMD | Turn on WSL 2, then install inside your Linux distribution |
| Also needs | Nothing. Git for Windows is optional. | WSL 2 |
| Shell Claude Code uses | Git Bash if Git for Windows is installed, otherwise PowerShell | Bash inside the distribution |
| Sandboxed commands | Not supported | Supported |
| Best for | Windows projects and tools | Linux toolchains, or sandboxed command execution |
WSL 1 also works, but without sandboxing. For most Windows developers native is the simpler choice, so the rest of this guide sets that up.
Open PowerShell (the prompt starts with PS) and run Anthropic's native installer.
You don't need to run it as Administrator.
irm https://claude.ai/install.ps1 | iex
In Command Prompt (no PS in the prompt), use this instead:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
The installer shows no progress while it downloads. When it finishes, open a new terminal window and check the install:
claude --version # prints a version number
claude doctor # read-only check of the install and your settings
The native install updates itself in the background. There are two other ways to install:
winget install Anthropic.ClaudeCode. It doesn't update
itself: run winget upgrade Anthropic.ClaudeCode now and then, or set
CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1 and Claude Code runs the upgrade for you.
npm install -g @anthropic-ai/claude-code, with Node.js 22 or
later. It installs the same native binary.
Claude Code needs a shell to run your tests, builds and git commands. On native Windows it picks one for you:
Either works, but most READMEs and scripts assume Bash, and you need Git anyway for commits, branches and worktrees. So Git for Windows is the easy default. Install it from git-scm.com, or with WinGet:
winget install --id Git.Git -e --source winget
If Claude Code can't find Git Bash, for example because Git is in a non-standard folder, point it
there in %USERPROFILE%\.claude\settings.json:
{
"env": {
"CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
}
}
cd C:\code\myapp
claude
The first run opens your browser to sign in. To use a Console API key instead, set
ANTHROPIC_API_KEY and approve the key when Claude Code asks; it then skips the login
prompt.
'claude' is not recognized. Open a new terminal first, because a
terminal that was already open doesn't see the updated PATH. The native installer puts
claude.exe in %USERPROFILE%\.local\bin. If a new terminal still can't
find it, add that folder to your user PATH; Anthropic's
install troubleshooting
walks through it.
The token '&&' is not a valid statement separator. You pasted
the CMD command into PowerShell. Use irm https://claude.ai/install.ps1 | iex.
'irm' is not recognized as an internal or external command. You're in
CMD. Use the curl command above, or open PowerShell.
CLAUDE_CODE_GIT_BASH_PATH as
shown in step 3.
claude doctor reports the install's health, and the troubleshooting page shows how to
find and remove the extra one.
Use WSL 2 if you want Claude Code's sandboxed command execution, which native Windows doesn't support, or if your project builds with Linux-only tools. Open your WSL distribution and install with the Linux installer, inside the WSL terminal rather than PowerShell:
curl -fsSL https://claude.ai/install.sh | bash
That install is separate from any Windows one, with its own login and settings inside the
distribution. Keep the repository in the Linux file system (for example ~/code) rather
than under /mnt/c: Microsoft
recommends it
for speed when you work with Linux tools.
Give each session its own git worktree, so two agents never edit the same checkout. Claude Code creates one for you. The repository needs at least one commit first.
claude --worktree feature-auth # Windows Terminal tab 1
claude --worktree fix-login # tab 2 (Ctrl+Shift+T opens a new tab)
Each command makes a separate checkout on its own branch under .claude\worktrees, so
the sessions run side by side without touching each other's files. The full routine, including
merging the work back, is in
how to run Claude Code sessions in parallel.
Two apps run the same Claude Code on Windows:
claude already on your PATH, with your own login.
No. Claude Code has run natively on Windows for a while, and Anthropic supports both routes. You only need WSL 2 for sandboxed command execution or Linux-only tooling.
Yes. Anthropic lists ARM64 alongside x64, and both the native installer and npm cover it.
No. The native installer runs as your normal user and installs into your profile folder.
The native install does, in the background, and so does npm when its global folder is writable.
WinGet installs don't by default; run winget upgrade Anthropic.ClaudeCode or set
CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1.
Your Pro, Max, Team or Enterprise subscription works: sign in when claude first starts.
A Console API key works too, billed per token.
Maestro is an independent project, not affiliated with Anthropic. Claude Code details were checked against Anthropic's public docs on October 29, 2026. Sources: setup, install troubleshooting, parallel sessions with worktrees, Claude Code Desktop, Git for Windows, WSL file systems.