Tutorial · updated October 2026

Run Claude Code on Windows without WSL

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.

Native Windows or WSL?

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.

Step 1: check the requirements

Step 2: install Claude Code

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:

Step 3: choose Git Bash or PowerShell

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"
  }
}

Step 4: sign in and start

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.

Fixing the common errors

When WSL 2 is the better choice

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.

Run several Claude Code sessions at once

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.

Prefer an app to a terminal?

Two apps run the same Claude Code on Windows:

Download MaestroFree · Windows, macOS & Linux
On Windows the installer isn't code-signed yet, so SmartScreen asks once: choose More info, then Run anyway. Maestro for Windows

FAQ

Do I need WSL to use Claude Code on Windows?

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.

Does Claude Code work on Windows on ARM?

Yes. Anthropic lists ARM64 alongside x64, and both the native installer and npm cover it.

Do I need administrator rights?

No. The native installer runs as your normal user and installs into your profile folder.

Does Claude Code update itself on Windows?

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.

Can I use my Claude subscription, or do I need an API key?

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.