Hocusclick

Guides

How to install Claude Code on Windows 10 and 11

Hocusclick guide · 3 December 2026

To install Claude Code on Windows, open PowerShell and run irm https://claude.ai/install.ps1 | iex. Then open a new window and type claude --version. You need Windows 10 version 1809 or later, 4 GB of memory, a 64-bit computer and a paid Claude plan: the free plan does not include Claude Code.

What do you need first?

You do not need to run anything as Administrator.

How do you install it from PowerShell?

  1. Press the Windows key, type PowerShell and open Windows PowerShell. Not the one marked x86: that one is 32-bit and the install stops with an error.
  2. Your prompt starts with PS C:\. Paste this and press Enter:
irm https://claude.ai/install.ps1 | iex
  1. Wait. The installer shows no progress while it downloads.
  2. Close the window and open a new one, so Windows picks up the new command.

How do you install it from CMD?

In Command Prompt the prompt has no PS in front. Use this line instead:

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

Can you install it with WinGet?

Yes: winget install Anthropic.ClaudeCode. One difference: a WinGet install does not update itself. Run winget upgrade Anthropic.ClaudeCode now and then. The PowerShell and CMD installs update themselves in the background.

How do you check that it works?

Open a new window and run:

claude --version

A working install prints a version number, such as 2.1.211 (Claude Code). For a fuller check, run claude doctor: it reports the health of the install and any settings errors, without starting a session.

Then go to the folder of your project and type claude. The first time, it asks you to log in with your Claude account.

What do the common errors mean?

You seeWhat happenedFix
'irm' is not recognizedYou are in CMD, not PowerShellUse the CMD line above, or open PowerShell
The token '&&' is not a valid statement separatorYou are in PowerShell with the CMD lineUse the PowerShell line
A parameter cannot be found that matches parameter name 'fsSL'You ran the Mac and Linux line in PowerShellUse the PowerShell line
'claude' is not recognized after the installThe install folder is not on your PATH yetOpen a new window first. If it stays, add %USERPROFILE%\.local\bin to your PATH
The process cannot access the fileAn earlier install is still running, or antivirus is scanning the downloadClose other PowerShell windows, delete %USERPROFILE%\.claude\downloads, run the install again
Typing claude opens the Claude desktop appAn old Claude Desktop takes over the commandUpdate Claude Desktop

Native Windows or WSL?

Both work. Native Windows is the simplest, and right for projects and tools that live on Windows. WSL 2 is for people who build with Linux tools; there you install and start Claude Code inside the WSL terminal, with the Linux install command. Only WSL 2 supports sandboxed commands.

What next?

Claude Code runs in the terminal. You type what you want, it reads your project, changes files and runs commands, asking first. To give it a picture of your screen, see screenshot to code with Claude Code.

Hocusclick works through the Claude Code you just installed: you point at anything on your screen and it answers, does the work or builds it, without the screenshot and the explaining.

Sources

More guides