How to Run Claude Code on Windows: Native Install or WSL
Quick answer: install Claude Code on Windows in one line
Quick answer: open PowerShell (no admin rights needed) and run the official installer. When it finishes, type claude and log in with your Anthropic account in the browser window that opens.
# PowerShell (recommended)
irm https://claude.ai/install.ps1 | iex
# Or with WinGet
winget install Anthropic.ClaudeCode
# Verify the install
claude --versionThat is the whole native install. No WSL, no Node.js setup, no admin permissions. The installer adds Claude Code to your PATH automatically and the native version keeps itself updated in the background.
All commands in this guide come from the official Claude Code setup documentation.
What you need before installing
- Windows 10 (version 1809 or later) or Windows 11, 64-bit. 32-bit Windows is not supported.
- PowerShell, which comes preinstalled with Windows.
- Git for Windows: optional but recommended. With it, Claude Code uses Git Bash as its shell, which gives better compatibility with bash commands. Without it, Claude Code falls back to PowerShell.
- An Anthropic account (Claude Pro/Max subscription or API access).
You do NOT need Node.js or npm for the native installer. That requirement only applies to the legacy npm installation method.
Native install step by step
The native install takes about a minute:
- Open Windows Terminal or PowerShell. You do not need to run it as administrator.
- Run the installer:
irm https://claude.ai/install.ps1 | iex - Wait for the script to finish. It installs Claude Code under your user profile and adds it to your PATH.
- Close and reopen the terminal so the PATH change takes effect.
- Run
claude --versionto confirm it is installed.
If you prefer CMD over PowerShell, there is an equivalent installer:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdNote on updates: the native installer auto-updates in the background. If you install via WinGet instead, updates are manual: run winget upgrade Anthropic.ClaudeCode from time to time.
First run: logging in
- Open a terminal in a project folder and type
claude. - Your browser opens with the Anthropic login. Sign in with your Claude account.
- If the browser does not open, press
cin the terminal to copy the login URL and paste it into your browser manually. - Back in the terminal, you are ready: ask Claude something about your code.
If something feels off after installing, claude doctor runs a diagnostic that catches most common configuration problems.
Installing Claude Code in WSL (and when to prefer it)
Before native Windows support existed, WSL was the only way to run Claude Code on Windows. It is still fully supported and there are two scenarios where it remains the better choice:
- Your project depends on Linux tooling. If your build chain, scripts or dependencies assume Linux, run Claude Code where your project actually runs.
- You want sandboxed command execution. Claude Code's sandboxing feature works on WSL 2 but not on native Windows (and not on WSL 1).
To install inside WSL, open your WSL distribution terminal (not PowerShell) and run the Linux installer:
curl -fsSL https://claude.ai/install.sh | bashThen launch claude from inside the WSL terminal. One gotcha with the login: in WSL the browser sometimes shows you a code instead of redirecting back automatically. Just paste that code into the terminal when it asks for it.
Native Windows vs WSL: which one should you use?
- Native Windows: best for Windows-native projects (.NET, Unity, general web dev with Windows tooling). Simplest setup, auto-updates, works with PowerShell or Git Bash.
- WSL 2: best for Linux toolchains and for sandboxed command execution. Your files live in the Linux filesystem, so Linux-first projects behave exactly as they would on a server.
- WSL 1: only if WSL 2 is not available on your machine. It does not support sandboxing and has known issues running native binaries.
If you are unsure, start native. It is the path of least friction and you can always add a WSL install later; both can coexist on the same machine.
Common Windows errors and how to fix them
- "Claude Code on Windows requires either Git for Windows (for bash) or PowerShell": PowerShell is not on your PATH or you are in an unusual shell. Use standard Windows PowerShell, or install Git for Windows.
- Git Bash installed but not detected: point Claude Code to it explicitly in your settings.json:
{"env": {"CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"}} - "The process cannot access the file" during install: another process is locking the download. Delete the
%USERPROFILE%\.claude\downloadsfolder and run the installer again. - SSL/TLS errors on older Windows 10: run
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12in PowerShell before installing. - "Exec format error" in WSL: you are on WSL 1. Upgrade the distribution to WSL 2 with
wsl --set-version <distro> 2.
For anything else, the official troubleshooting page covers the full list of known install issues.
Running multiple Claude Code sessions on Windows
Once Claude Code is working, the next bottleneck shows up fast: one terminal means one task at a time. You give Claude something to do, and then you wait. Most developers end up opening several terminal tabs and losing track of which agent finished, which one is waiting for permission, and what each one changed.
That is the problem CodeAgentSwarm solves, and it now runs on Windows. It gives you up to 6 Claude Code terminals side by side with desktop notifications when an agent finishes or needs input, searchable history across every session, and a live diff of what each terminal changed.
If you want to go down that path, these two guides are the natural next step: How to use multiple Claude Code terminals and Run multiple Claude Code sessions.
Conclusion
Running Claude Code on Windows went from "set up WSL first" to a one-line PowerShell install. Native is the right default for most Windows developers; WSL 2 is there when you need Linux tooling or sandboxing.
Install it, run claude doctor if anything looks wrong, and when one terminal stops being enough, you know where to find us.
FAQ
No. Claude Code supports Windows natively since 2025. WSL 2 is only needed if you want sandboxed command execution or your project depends on Linux tooling.
No, it is optional. Without it Claude Code uses PowerShell as its shell. With it, Claude Code uses Git Bash, which handles bash-style commands better. Installing it is recommended.
The native installer auto-updates in the background on startup. If you installed via WinGet, run "winget upgrade Anthropic.ClaudeCode" manually, or set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1 to opt into auto-updates.
Yes. CodeAgentSwarm is available for Windows (x64 and ARM64) and macOS. It runs on top of your existing Claude Code install and lets you supervise several terminals in parallel.
CodeAgentSwarm is now available for Windows. Download it free and run several Claude Code terminals side by side, with notifications, searchable history and live diffs.
Try CodeAgentSwarm