AI Tools

How to Install and Use Claude Code on Windows 11: Beginner’s Guide (2026)

Claude Code Windows 11 guide: install with one PowerShell command, sign in, run your first project, fix common errors and set safe permissions.

How to Install and Use Claude Code on Windows 11: Beginner’s Guide (2026)
Table of contents

Disclosure: We may earn a commission when you buy through links on this page, at no extra cost to you. How we make money.

Research-based. Built from Anthropic’s official setup documentation and the sources linked in this article. We did not run our own test or reproduce the fixes for this article.

Quick answer

To run Claude Code on Windows 11, open PowerShell, run irm https://claude.ai/install.ps1 | iex, open a new terminal and check claude --version. Then type claude inside a project folder and sign in. You need a paid Claude plan or a Console account. You do not need Node.js, and Git for Windows is optional. The biggest beginner trap isn’t the install. It’s the permission mode your session starts in, covered in the security section below.

Ways to install Claude Code on Windows

Route Needs Updates itself? Pick it when
Native, PowerShell (recommended) Nothing. Git for Windows optional Yes, in the background You are on Windows 11 and want the simplest path
Native, CMD Nothing Yes You are already in a Command Prompt window
WinGet WinGet No. Run winget upgrade You manage apps with WinGet
npm Node.js 22 or later Depends on npm permissions You already use npm and want it there
WSL 2 WSL 2 enabled See Anthropic’s Linux notes Your code lives in Linux, or you want sandboxing

Claude Code on Windows 11: system requirements

From Anthropic’s setup page, checked November 8, 2026:

  • Windows: Windows 10 version 1809 or later, or Windows Server 2019 or later. Windows 11 qualifies. 32-bit Windows isn’t supported.
  • Hardware: 4 GB of RAM or more, with an x64 or ARM64 processor.
  • Network: a working internet connection, in a country on Anthropic’s supported list.
  • Account: Claude Pro, Max, Ultra, Team or Enterprise, or a Claude Console account, or access through Amazon Bedrock, Google Cloud or Microsoft Foundry. The free claude.ai plan does not include Claude Code.

The account line is the one that surprises people. Claude Code needs a sign-in with a plan that includes it, and a free claude.ai account doesn’t. Check current plans on Claude’s pricing page before you commit. If you’re still deciding whether Claude Code is the right tool at all, our Claude Code vs Cursor vs GitHub Copilot comparison covers that.

Do you need Node.js and Git Bash?

Node.js: no. The native installer is a standalone program. Anthropic says Node.js 22 or later is required only for the npm install route, and even then the installed claude binary doesn’t call Node at runtime. If you already have Node, you can ignore it. If you don’t, don’t install it just for this.

Git for Windows: optional, but useful. Git for Windows provides Git Bash, which Claude Code uses for its Bash tool. Without it, Claude Code runs shell commands through PowerShell instead. So nothing breaks if you skip it. Install it if you plan to use Claude Code with Git repositories or Bash-style scripts. During setup, tick the option to add Git to your PATH, then restart your terminal.

To see whether Git is already there and where it lives:

git --version
where.exe git

On the PC used for this guide, git --version printed git version 2.56.0.windows.3 and where.exe git pointed to C:\Program Files\Git\cmd\git.exe (checked November 8, 2026).

When Claude Code can’t find Git Bash

Claude Code looks in C:\Program Files\Git and C:\Program Files (x86)\Git first, then at the git on your PATH. If your Git is somewhere unusual, point Claude Code at it by adding this to your user settings.json (the .claude folder in your user profile):

{
  "env": {
    "CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
  }
}

One detail that wastes an afternoon if you miss it: the path must end in a file named bash.exe or sh.exe. Git for Windows also ships a launcher called git-bash.exe. Claude Code ignores the variable if you point it there.

Install Claude Code on Windows 11

Step 1: Open PowerShell, not CMD

Press the Windows key, type PowerShell and open it. Your prompt should start with PS C:\. If there’s no PS, you’re in Command Prompt and the commands below need the CMD version instead. You don’t need to run as Administrator.

Step 2: Run the installer

irm https://claude.ai/install.ps1 | iex

It prints no progress while it downloads, so a blank prompt for a minute is normal. Wait for the prompt to come back. In Command Prompt, the equivalent is:

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Pasting the wrong one is the most common failure, and the fixes are in the errors section below.

Step 3: Open a new terminal and verify

claude --version

A working install prints a version number followed by (Claude Code). On the PC used for this guide it printed 2.1.310 (Claude Code) on November 8, 2026, as the screenshot below shows. Yours will differ, because the native install updates itself in the background. For a fuller health check, run claude doctor. It reads your installation and settings and prints warnings with suggested fixes, without starting a session.

Windows PowerShell 5.1 on Windows 11 showing the command claude --version and the output 2.1.310 (Claude Code)
Version check in PowerShell on Windows 11 Pro, November 8, 2026. Claude Code was already installed on this PC, so this is a version check, not a fresh install.

The installer places the program at %USERPROFILE%\.local\bin\claude.exe. That folder must be on your PATH for the claude command to work from anywhere. On the PC used here, both the file and the PATH entry were present.

Other ways to install

WinGet: winget install Anthropic.ClaudeCode. It works, but WinGet installs don’t auto-update, so run winget upgrade Anthropic.ClaudeCode now and then.

npm: npm install -g @anthropic-ai/claude-code, with Node.js 22 or later. Never use sudo with it, and note that on an older Node version npm warns with EBADENGINE but still installs. If PowerShell blocks the npm launcher with “running scripts is disabled on this system”, switch to the PowerShell installer above, which isn’t affected by that policy.

WSL 2: pick this only if your projects already live in Linux, or you want sandboxed command execution. Anthropic’s table says sandboxing isn’t supported on native Windows or WSL 1, but is supported on WSL 2. Inside WSL you install with the Linux command curl -fsSL https://claude.ai/install.sh | bash and run claude from the WSL terminal, not from PowerShell.

Log in and authenticate

Run claude in any folder. On first use it asks you to log in, and for subscription and Console accounts that happens in your browser. When you finish, return to the terminal. Your credentials are stored, so you won’t repeat this each time.

  • If the browser doesn’t open, press c in the terminal to copy the login URL and paste it into a browser yourself.
  • To switch accounts later, type /login inside a session. To sign out, type /logout.
  • If login keeps failing and the cause isn’t clear, Anthropic’s advice is the clean reset: /logout, close Claude Code, start claude again.

Watch for one trap. If an ANTHROPIC_API_KEY environment variable is set on your PC, for example left over from an old project, Claude Code can use that key instead of your subscription. Anthropic lists the error This organization has been disabled as a symptom, even when your subscription is active. Remove the stale variable or decline the key when Claude Code asks about it.

Set up your first project

Make a throwaway folder first. A practice folder means a mistake costs you nothing.

mkdir "$env:USERPROFILE\claude-practice"
cd "$env:USERPROFILE\claude-practice"
claude

If Claude Code shows a trust dialog for the folder, read it. Trust is meant for folders you created or know. A repository you just downloaded can ship settings that grant permissions, which is why the dialog exists.

Now try the starter prompts from Anthropic’s quickstart. Type them as plain sentences:

  1. what does this project do? (an empty folder gives you an honest “nothing here yet”, which is fine for a first run)
  2. create a file called hello.txt with a short greeting
  3. what files have I changed?

On the second prompt, Claude Code will propose the change and, depending on your permission mode, ask before writing it. Read what it shows you, then approve or decline. That prompt-and-approve loop is the core habit to build.

For a real project, open a terminal in that project’s folder and run claude. Then run /init to have Claude Code create a CLAUDE.md file describing the project. Anthropic describes it as a project guide, so you don’t have to re-explain your setup in every prompt. Review what /init writes before you rely on it.

Useful commands to learn first

Everything below comes from Anthropic’s commands reference and CLI reference.

Command What it does
/help Lists the commands available in your version
/init Creates a CLAUDE.md guide for the current project
/clear Starts a new conversation with empty context
/compact Summarizes the conversation to free up context, then continues
/resume Reopens a previous conversation or opens the session picker
/model Switches the AI model and saves it as your default
/permissions Shows and edits allow, ask and deny rules
/usage Shows session cost, plan limits and activity. /cost is an alias
/doctor Checks installation, settings and CLAUDE.md problems
/rewind Rolls the conversation or code back to an earlier point
/exit Leaves the session
claude -c From the shell: continue the most recent conversation in this folder
claude update From the shell: install the newest version now
Shift+Tab Cycles permission modes during a session

If you only memorize three, make them /permissions, /rewind and /usage. The first controls what Claude may do, the second undoes mistakes, and the third tells you what a session is costing against your plan.

Common errors on Windows and how to fix them

What you see Likely cause Fix
‘irm’ is not recognized You are in CMD, not PowerShell Open PowerShell and run the PowerShell command, or use the CMD installer
The token ‘&&’ is not a valid statement separator You pasted the CMD installer into PowerShell Use irm https://claude.ai/install.ps1 | iex
A parameter cannot be found that matches parameter name ‘fsSL’ You pasted the macOS/Linux command; PowerShell’s curl is an alias Use the PowerShell installer
The command prints script text and installs nothing You ran only the download half Run the full line, including | iex
‘claude’ is not recognized after installing The install folder isn’t on your PATH, or the terminal predates the install Open a new terminal, then check PATH (below)
running scripts is disabled on this system PowerShell blocks npm’s .ps1 launchers Use the PowerShell installer, or Set-ExecutionPolicy RemoteSigned for your user
The process cannot access the file during install A previous attempt or antivirus holds the downloads folder Close other installers, let the antivirus scan finish, delete the .claudedownloads folder in your user profile, retry
claude opens the Claude Desktop app An older Claude Desktop registered its own Claude.exe ahead on PATH Update Claude Desktop
Requires either Git for Windows (for bash) or PowerShell Neither shell was found Add the PowerShell folder to PATH, or install Git for Windows
OAuth error: Invalid code The login code expired or was cut off when copied Retry quickly, or press c to copy the full URL
API Error: 403 after login Inactive subscription, wrong Console role, or a proxy Check your plan at claude.ai/settings, or your role and proxy
403 during download Proxy or network filter, or an unsupported region Run the network check below

Fix the PATH problem (the most common one)

First confirm the program exists, and whether its folder is on your PATH:

Test-Path "$env:USERPROFILE\.local\bin\claude.exe"
$env:PATH -split ';' | Select-String '\.local\\bin'

If the first line prints False, there’s no native install yet. If it prints True but the second command prints nothing, add the folder to your user PATH:

$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')

Restart the terminal, then run claude --version. If the terminal lives inside an editor such as VS Code, quit and reopen the editor, because it takes its PATH from the editor. This is Anthropic’s documented fix. It wasn’t reproduced for this draft, because the PC used here already had the folder on PATH.

Check whether the download server is reachable

curl.exe -sI https://downloads.claude.ai/claude-code-releases/latest

Use curl.exe with the extension, because plain curl in PowerShell is an alias that rejects these flags. A 200 on the first line means you reached the server. A 403 usually points to a proxy, a network filter or an unsupported region. Behind a corporate proxy, set HTTPS_PROXY and HTTP_PROXY before running the installer, and ask IT for the proxy address.

Security and permission tips

Claude Code isn’t a chatbot in a box. It can read files, edit them and run commands on your machine. The install takes two minutes. Spend ten more on this section.

Know which permission mode you’re in

This is the part most beginner guides skip. According to Anthropic’s permission modes page, a terminal session on Claude Code 2.1.283 or later starts in auto mode when it’s available to your account and model. Auto mode runs actions without asking, with background safety checks. If it isn’t available, the session starts in Manual mode, which asks before acting. Claude Code shows a notice the first time the default puts you in auto mode.

You don’t have to guess. Watch the status bar under the prompt. It reads manual mode on, accept edits on, plan mode on or auto mode on, and Shift+Tab cycles through them. If you want to review every action while you learn, start a session with:

claude --permission-mode manual

For exploring a codebase before changing anything, claude --permission-mode plan blocks edits until you approve a plan. You can also make a mode your default with permissions.defaultMode in your user settings. Reading every prompt for your first week costs a few clicks and shows you what Claude Code actually does with your files.

Use the rules that work in every mode

  • Deny rules apply everywhere. A deny rule blocks its target in every mode, including the one that skips checks. Use /permissions to add rules for files you never want touched.
  • Some actions are never auto-approved. Anthropic lists recognized critical-path rm and rmdir removals among them, and writes to protected paths aren’t auto-approved in most modes.
  • Keep Claude inside the project. Run it from the project folder, not your whole user profile. Be careful with /add-dir, which grants file access to an extra directory.
  • Avoid bypassPermissions and --dangerously-skip-permissions on your own PC. Anthropic’s guidance is to use them only in isolated containers or VMs.

Know the limits of native Windows

Sandboxing, which restricts what shell commands can reach, is not supported on native Windows. If you want it, Anthropic points to WSL 2. On native Windows, your protection is the permission system, so lean on it.

Check the program you installed

Anthropic says Windows binaries are signed by “Anthropic, PBC”. You can check yours:

Get-AuthenticodeSignature "$env:USERPROFILE\.local\bin\claude.exe"

On the PC used for this guide, the status was Valid and the signer was Anthropic, PBC (checked November 8, 2026). A valid signature confirms the file is unmodified and from that publisher. It says nothing about what Claude Code does once you give it permissions.

Protect keys and shared work

Don’t paste API keys, passwords or customer data into prompts. Keep secrets in a password manager, not in project files Claude can read. If you use Claude Code at work, check your company’s rules first. Our AI acceptable use policy template is a starting point, and AI agents explained covers why agents that act deserve more caution than chatbots that answer.

Update and uninstall

Native installs update in the background. To update immediately, run claude update. WinGet and npm installs need manual upgrades. To remove a native install, run:

Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force
Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force

That leaves your settings and history in %USERPROFILE%\.claude. Deleting that folder removes your settings, allowed tools, MCP server settings and session history, so do it only if you mean to. If the VS Code extension, a JetBrains plugin or the Desktop app is still installed, it recreates the folder.

What to do next

If you’re new to terminals, do this in order: install natively, run claude --version, log in, make the practice folder, and run it in Manual mode until the approval prompts feel familiar. Add Git for Windows when you start working with repositories. Consider WSL 2 only if you need sandboxing or your tools are Linux-first.

Sources

Frequently Asked Questions

Is Claude Code free on Windows 11?

No, not with a free claude.ai account. You need a Claude Pro, Max, Ultra, Team or Enterprise plan, a Console account, or a supported cloud provider. Check current plan prices on Claude’s pricing page.

Do I need WSL to run Claude Code on Windows?

No. Native Windows is supported. Choose WSL 2 only if your projects live in Linux or you want sandboxed command execution, which native Windows doesn’t support.

Can I use Claude Code inside VS Code instead of a terminal?

Yes, Anthropic offers a VS Code extension, a JetBrains plugin and a Desktop app. Note that the VS Code extension bundles its own copy of the CLI and does not add claude to your PATH, so install the standalone version if you also want the command in a terminal.

Why does claude open Claude Desktop instead of Claude Code?

An older Claude Desktop can register a Claude.exe that takes PATH priority over the CLI. Anthropic’s fix is to update Claude Desktop.

BytePicks Editorial Team

BytePicks Editorial Team is the byline for articles published on BytePicks. Guides are researched from official sources, and articles say when something hasn't been tested hands-on.