How to run Claude Code on Windows
Native install in PowerShell, WSL 2, or a desktop app: every way to get Claude Code working on Windows, plus fixes for common errors.

Key takeaways
- Claude Code runs natively on Windows 10 1809+ and Windows 11; WSL is optional.
- Install with one PowerShell command; no administrator rights or Node.js needed.
- Git for Windows is optional but gives Claude Code Git Bash for its shell commands.
- Use WSL 2 for Linux toolchains or sandboxed commands, or a desktop app if you want no terminal at all.
Claude Code runs natively on Windows 10 (version 1809 or later) and Windows 11. Open PowerShell, run Anthropic's one-line installer, then type claude in your project folder and sign in. You don't need WSL, Node.js or administrator rights, though WSL 2 is still the better choice for some projects, and there are graphical options if you'd rather not use a terminal at all.
Below are the exact steps for each route, the errors people hit most often on Windows, and how to fix them. Commands and requirements are from Anthropic's setup docs, checked in December 2026.
What you need first
- Windows 10 1809 or later, or Windows Server 2019 or later.
- 4 GB of RAM or more and an x64 or ARM64 processor.
- A paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The free plan doesn't include Claude Code.
- An internet connection, and a country Anthropic supports.
Git for Windows is optional but worth installing. It gives Claude Code Git Bash, which its Bash tool uses. Without it, Claude Code runs shell commands through PowerShell instead.
Native Windows or WSL 2?
Choose based on where your code and tools already live. If your project sits in normal Windows folders and uses PowerShell, .NET or Windows tools, go native. If you build with Linux toolchains, bash scripts or a Linux-based dev setup, install Claude Code inside WSL 2. Sandboxed command execution is only supported under WSL 2.
Install Claude Code natively
- Press the Windows key, type PowerShell and open it. You don't need "Run as administrator". Your prompt starts with
PS C:\when you are in PowerShell. - Paste the installer and press Enter:
It shows no progress while it downloads, so give it a minute.irm https://claude.ai/install.ps1 | iex - Close that window and open a new PowerShell window so the new PATH is picked up.
- Check the install:
A version number means it worked.claude --version - Go to your project and start it:
A browser window opens for sign-in. Use the Claude account that has your plan.cd C:\Users\you\projects\my-site claude
Prefer the old Command Prompt? Anthropic gives a CMD version of the installer:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
You can also use WinGet with winget install Anthropic.ClaudeCode. Note that WinGet installs don't update themselves; run winget upgrade Anthropic.ClaudeCode now and then. The PowerShell and CMD installers update in the background.
Add Git for Windows (recommended)
Install Git for Windows with the default options. Claude Code then uses Git Bash for its Bash tool, which many scripts and instructions assume, and keeps PowerShell available alongside it. If Claude Code can't find Git Bash, point it there in your settings.json:
{
"env": {
"CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
}
}
Install Claude Code in WSL 2
- If you don't have WSL yet, open PowerShell as administrator, run
wsl --install, and restart when asked. This installs Ubuntu by default. - Open your Linux distribution from the Start menu.
- Run the Linux installer inside it:
curl -fsSL https://claude.ai/install.sh | bash - Keep your project inside the Linux file system (for example
~/projects) and runclaudefrom the WSL terminal, not from PowerShell.
Fix common Windows errors
| Message | What it means | Fix |
|---|---|---|
'claude' is not recognized | The install folder isn't on your PATH yet | Open a new terminal window. If it persists, follow Anthropic's "Fix your PATH" steps. |
The token '&&' is not a valid statement separator | You ran the CMD command in PowerShell | Use the irm command instead. |
'irm' is not recognized | You ran the PowerShell command in CMD | Open PowerShell, or use the CMD installer. |
| Claude can't find Git Bash | Git is installed somewhere unusual | Set CLAUDE_CODE_GIT_BASH_PATH as shown above. |
For anything else, run claude doctor. It prints a read-only report of your install, settings errors and suggested fixes without starting a session.
Keep it updated, or remove it
The PowerShell and CMD installs check for updates when Claude Code starts and install them in the background; the new version takes effect the next time you launch it. To update right away, run claude update. WinGet installs need winget upgrade Anthropic.ClaudeCode instead.
To uninstall a native install, delete claude.exe from %USERPROFILE%\.local\bin and the %USERPROFILE%\.local\share\claude folder. Your settings live in %USERPROFILE%\.claude; leave that folder alone if you plan to reinstall.
Use Claude Code on Windows without a terminal
If the steps above feel like more than you signed up for, there are two graphical routes. Anthropic's Claude desktop app for Windows (x64 and ARM64) includes Claude Code in its Code tab and can even run sessions inside WSL 2. Or use a desktop app like Ninja Builder, which installs with a normal setup file into your user folder and gets Claude Code ready for you in the background.
- Download
Ninja-Builder-Setup.exeand double-click it. The first time, Windows may warn about an unknown publisher: click More info, then Run anyway. - Start the free trial or sign inSign in, then choose Claude as your AI provider.
- Sign in on Anthropic's page in your browser. The app picks up the sign-in by itself.
- Pick a project folder and describe what you want built.

The same app also works with a ChatGPT plan, Gemini, GitHub Copilot, Cursor or a local model, which this tutorial shows:

Tips for a smooth setup
- Don't mix installs. If you once installed with npm, remove it before switching to the native installer, or Windows may run the old copy.
- Keep WSL projects on the Linux side. Working on files under
/mnt/cfrom WSL is slower than using the Linux home folder. - Watch your limit. Claude Code and claude.ai share the same usage, so a long session in one counts in the other. Our guide on what to do at the usage limit covers your options.
Want Claude Code with a chat window, live preview and checkpoints instead of a console? Download Ninja Builder for Windows; see pricing for the trial details for the plans, or read how to use Claude Code without the terminal.
Frequently asked questions
Do I need WSL to run Claude Code on Windows?
No. Claude Code installs natively from PowerShell or CMD. WSL 2 is only needed if you want Linux tools or sandboxed command execution.
Do I need administrator rights to install Claude Code on Windows?
No. Anthropic's installer runs as your normal user. You only need an administrator to turn on WSL if you choose that route.
Why does Windows say claude is not recognized after installing?
The install folder isn't on your PATH in that window yet. Open a new terminal; if it still fails, follow the PATH fix in Anthropic's install troubleshooting page.
Is Git required for Claude Code on Windows?
No, but it helps. With Git for Windows installed, Claude Code uses Git Bash for shell commands; without it, Claude Code uses PowerShell.
Keep reading

How to use Claude Code without the terminal
The desktop app, the VS Code extension or a chat app: how to use Claude Code with buttons instead of commands.

What to do when you hit your Claude usage limit
How the five-hour and weekly limits work, five ways to keep going, and habits that stretch your Claude usage.

Claude skills explained: what they are and how to write one
What Agent Skills are, how Claude loads them, and a working SKILL.md you can copy.