Claude Code on Windows: Install and Setup for Beginners
Originally published on khadim.tech.
In short: To install Claude Code on Windows, open PowerShell (no admin rights needed), run irm https://claude.ai/install.ps1 | iex, then open a new terminal and type claude --version. You need Windows 10 version 1809 or later, 4 GB of RAM and a paid Claude plan: the free plan doesn't include Claude Code, and Pro costs $20 a month, or $17 a month billed yearly. If Windows says claude is not recognized, add %USERPROFILE%.local\bin to your user PATH and open a new terminal.
Claude Code on Windows takes one command to install, and you don't need to know how to code to use it. I filmed the whole setup on a fresh Windows 11 install for my YouTube channel, Khadim Labs: the install, the PATH warning the installer gave me, the sign-in, and two real jobs done in plain English. This page has every command from the video, plus the fixes Anthropic's documentation lists for the errors beginners run into. Steps are as of 27 October 2026 and prices as of 10 November 2026.
Video: Claude Code on Windows: Full Beginner Setup (No Coding Needed)
What is Claude Code?
Claude Code is Anthropic's AI assistant that works on the files on your computer. The official overview calls it "an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools."
A chatbot like ChatGPT answers in a browser tab. Claude Code runs in the terminal, the window where you type commands, inside a folder you choose, where it can read, create and change files and run commands. You describe the result, it works out the steps, and you check what it did. Developers use it to write software, but the two jobs in my video were a messy folder and a bakery website. It also runs in the Claude desktop app, in VS Code and on the web.
Is Claude Code free? What does it cost?
No. Claude Code needs a paid plan, and the free Claude plan doesn't include it. These are the individual plans on claude.com/pricing as of 10 November 2026, in US dollars and before tax:
| Plan | Price | Claude Code | Usage per 5-hour session |
|---|---|---|---|
| Free | $0 | No | Everyday questions |
| Pro | $20/month, or $17/month billed yearly ($200 up front) | Yes | At least 5x Free |
| Max | $100/month | Yes | 5x Pro |
| Ultra | $200/month | Yes | No 5-hour limit once your account is verified; 10x Pro each week |
Limits reset on a rolling five-hour window, paid plans add weekly limits on top, and the Claude app and Claude Code share one pool. There's no fixed message count: usage depends on how long and complex the work is and which model you pick. At a limit you can wait, upgrade, or turn on usage credits billed at API rates. Type /usage in Claude Code to see where you stand.
Start with Pro. Anthropic's help article for Pro, Max and Ultra suggests Max if you "consistently hit limits", and Ultra if you still hit them on Max. The old Max 20x plan is now called Ultra, at the same price. To pay per use instead, a Claude Console account with prepaid API credits works too. One trap: if an ANTHROPIC_API_KEY environment variable is set on your PC and you approve it when Claude Code asks, it bills that API account instead of your plan.
What do you need to run Claude Code on Windows?
From Anthropic's system requirements:
- Windows 10 version 1809 or later, or Windows Server 2019 or later, 64-bit
- 4 GB of RAM or more, with an x64 or ARM64 processor
- An internet connection, in a supported country
- A Pro, Max, Ultra, Team, Enterprise or Console account
You don't need admin rights, Node.js or WSL. Git for Windows is optional: it adds Git Bash, which Claude Code uses for its Bash tool, and without it Claude Code runs commands through PowerShell. Choose WSL 2 only if you want Linux tools or Claude Code's sandbox, which native Windows doesn't support.
How do I install Claude Code on Windows?
Right-click the Start button (or press
Win + X) and choose Terminal or Windows PowerShell. Check that the prompt starts withPS. WithoutPSyou're in Command Prompt, which needs a different command (below).Paste this line and press Enter:
irm https://claude.ai/install.ps1 | iexirmdownloads the installer andiexruns it. It shows no progress while it downloads, and it took a few minutes for me. Anthropic's terminal guide says it ends with "Claude Code successfully installed!" Read the last lines anyway: mine also said the install folder wasn't on my PATH, which the next section fixes.Close the terminal, open a new one, and check the install:
claude --versionA working install prints a version number followed by
(Claude Code). For a fuller check,claude doctorprints read-only diagnostics without starting a session.
The installer puts claude.exe in %USERPROFILE%\.local\bin and keeps it updated in the background. If you're in Command Prompt instead of PowerShell, use the CMD installer:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
WinGet works too (winget install Anthropic.ClaudeCode), but it doesn't update itself, so run winget upgrade Anthropic.ClaudeCode now and then. To skip the terminal entirely, the Claude desktop app for Windows (x64 and ARM64) has a Code tab that runs Claude Code in a normal window.
What does irm https://claude.ai/install.ps1 | iex do?
It downloads Anthropic's install script and runs it in your PowerShell window. irm is short for Invoke-RestMethod, which fetches the text at an address, and iex is Invoke-Expression, which runs the text it's given. The address forwards to downloads.claude.ai. I read the script on 8 November 2026. It's about 3 KB and does six things:
- Stops if your PowerShell is 32-bit, with
Claude Code does not support 32-bit Windows. - Asks
downloads.claude.aifor the latest version number. - Reads that version's
manifest.json, which lists a SHA-256 checksum for each platform's program. - Downloads
claude.exefor your processor (x64 or ARM64) into%USERPROFILE%\.claude\downloads, and stops if its checksum doesn't match the manifest. - Runs
claude.exe install, which sets up theclaudecommand in%USERPROFILE%\.local\bin. - Deletes the downloaded copy.
Nothing in it asks for admin rights, and it writes only to your own user folder.
Is it safe to run?
You can check it before and after you run it. To read the script without running anything, leave off | iex:
irm https://claude.ai/install.ps1
PowerShell prints the script and stops. After the install, you can check who signed the program. Anthropic's binary integrity notes say Windows builds are signed by "Anthropic, PBC":
Get-AuthenticodeSignature "$env:USERPROFILE\.local\bin\claude.exe"
On my PC, with Claude Code 2.1.319, it shows Valid with the signer CN="Anthropic, PBC". Anthropic also signs each release's manifest.json with a GPG key, and the same page shows how to verify it.
You don't need to change PowerShell's execution policy. That policy applies to script files, and iex runs text, not a file. Microsoft's execution policy page notes that the policy isn't a security system, and that users can bypass it "by typing the script contents at the command line."
How do I install the stable version or a specific version?
The script takes one argument: latest (the default), stable, or a version number. stable is usually about a week old and skips releases with major regressions. Piping into iex can't pass an argument, so the setup guide wraps the script in a script block:
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) stable
Put a version number such as 2.1.89 in place of stable to pin that release. The channel you install with becomes the default for automatic updates.
Why does Windows say 'claude' is not recognized?
PowerShell shows claude : The term 'claude' is not recognized as the name of a cmdlet, and Command Prompt shows 'claude' is not recognized as an internal or external command. Both mean claude.exe is installed but its folder isn't on your PATH, the list of folders Windows searches for programs. The installer prints this under Setup notes: as Native installation exists but C:\Users\you\.local\bin is not in your PATH. and leaves PATH alone.
This is the fix I used in the video. It takes about 30 seconds, once:
- Open Start and search for "environment variables for your account". Open it.
- Under the user variables, select Path and click Edit.
- Click New and type
%USERPROFILE%\.local\bin. - Click OK, then OK again.
- Close the terminal, open a new one, and run
claude --version.
Or paste these two lines into PowerShell, from Anthropic's PATH troubleshooting, then open a new terminal:
$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')
One catch: this saves your user PATH with any %VARIABLE% entries written out as the full paths they point to today, so they keep working but stop following the variable if it changes later (anthropics/claude-code#108263). If your PATH has entries like that, use the five steps above instead.
Still not recognized in a new window? A terminal inside an editor such as VS Code takes its PATH from the editor, so quit and reopen the editor. If the error started right after an update, the docs explain how to restore claude.exe from its backup.
Other Claude Code install errors on Windows, and their fixes
These are the Windows errors in Anthropic's installation troubleshooting page.
| What you see | What it means | Fix |
|---|---|---|
'irm' is not recognized |
You're in Command Prompt | Open PowerShell, or use the CMD installer above |
The token '&&' is not a valid statement separator |
You ran the CMD command in PowerShell | Use the irm command |
A parameter cannot be found that matches parameter name 'fsSL' or 'bash' is not recognized |
You ran the macOS/Linux command | Use the irm command |
| The script's text prints and nothing installs | You ran irm without | iex |
Run the whole line |
Claude Code does not support 32-bit Windows |
You opened Windows PowerShell (x86) | Open the Start entry without "(x86)" |
The process cannot access the file ... because it is being used by another process |
An earlier install is still running, or antivirus is scanning the download | Close other installer windows, delete %USERPROFILE%\.claude\downloads, run the installer again |
Could not create SSL/TLS secure channel |
Usually an older Windows 10 | Run the TLS line below, then the installer |
Typing claude opens the desktop app |
An older Claude Desktop registered its own Claude.exe |
Update Claude Desktop |
App unavailable in region |
Claude Code isn't offered in your country | No workaround |
The TLS fix for older Windows 10:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
irm https://claude.ai/install.ps1 | iex
How do I start Claude Code for the first time?
Claude Code works inside a folder, so make one for your first project, move into it, and start Claude Code:
mkdir Documents\my-first-project
cd Documents\my-first-project
claude
The first time, it asks you to pick a text style, then how to sign in: pick your Claude subscription. Your browser opens, you sign in with the account that has your plan and approve, and the terminal shows "Login successful" and asks you to press Enter. If the browser doesn't open, press c to copy the login link. If it shows a code instead of sending you back, paste it at "Paste code here if prompted."
Next it asks whether you trust this folder. The highlighted answer was "No, exit", so I pressed the down arrow, then Enter. Say yes only for folders you made. Avoid starting it in your user folder itself: the security docs say trust given there isn't saved, so the question comes back every launch.
Then you're in. You type in the box at the bottom, and the welcome screen shows the version, the model and your folder. The line under the box says auto mode is on, the starting mode for terminal sessions since Claude Code 2.1.283. In auto mode, reads and file edits inside your folder just happen. Everything else goes to a second AI model, the classifier, which blocks risky actions such as downloading and running code or permanently destroying files that existed before the session. After 3 blocks in a row, or 20 in a session, it pauses and Claude Code asks you instead.
How to use Claude Code with no coding: two tasks I ran
I recorded on Claude Code 2.1.310. For the first task I put 16 files in the project folder, photos, PDFs, spreadsheets and a voice memo all mixed together, and typed:
Sort these files into folders by type, and don't delete anything.
It looked at the files, made the folders and moved each file. About two minutes later it was done: six folders, with all 16 files still there. It also offered to put the screenshots in a folder of their own.
For the second task I asked for a website:
Make a simple one-page website for a bakery called Sunrise Bakery, with a menu, prices, opening hours and a contact section. Open it in my browser when it's done.
It took a couple of minutes to write the page, then opened it in Edge: a menu with prices, the opening hours and a contact section. The address and phone number were placeholders, so you'd swap in real ones. Changes are one more sentence:
Make the colors warmer and add a photo gallery.
About two minutes later it opened the new version, in oranges and creams, with a gallery that has empty spaces ready for your own photos. Sorting the files and building the site raised no permission prompts in auto mode.
If you'd rather do file jobs like this without a terminal at all, Claude Cowork in the desktop app does them from a chat box. My Cowork test on Windows sorted 47 files in about 30 seconds.
How to get better results from Claude Code
- Describe the result you want, not the steps, and add your rules, like "don't delete anything." Both tasks above were one sentence of this kind.
- Use plan mode for bigger jobs.
Shift+Tabcycles the modes, from auto to manual, accept edits, then plan, so press it three times until the line under the box says plan mode, or type/planbefore one request. Claude then reads and proposes but doesn't edit. When I asked it to "Add an online order form to the website," it asked clarifying questions with suggested answers first, then showed the plan and waited for my okay. The docs list the choices as "Yes, and use auto mode", "Yes, manually approve edits" and "No, keep planning." - Give it a memory.
/initwrites aCLAUDE.mdfile with notes about your project, which Claude reads at the start of every session. Add your own rules there, and keep it under 200 lines, as the memory docs advise. - Rewind when it goes wrong. Press
Esctwice with an empty input box, or type/rewind, to restore your files, the conversation, or both to an earlier point. Rewind only tracks changes made with Claude's own file-editing tool, so files moved or deleted by commands may not come back. Keep backups. - Type
/clearwhen you switch tasks. It starts a fresh conversation, and the cost docs note that stale context "wastes tokens on every subsequent message."
Also useful: Esc once stops Claude mid-task, Shift+Enter adds a new line in Windows Terminal, Alt+V pastes an image, and @ picks a file by name. A procedure you repeat can become a Claude Code skill.
Is Claude Code safe to use on Windows?
It's safe enough to learn on if you start it in a folder you made and read what it does. Auto mode approves file edits in your folder without asking, and Anthropic's own warning is that it "reduces permission prompts but does not guarantee safety." To approve every step yourself, press Shift+Tab once from auto to reach manual mode: Claude Code then asks before it edits files or runs commands, apart from read-only ones such as ls and git status. The security docs put it plainly: "You're responsible for reviewing proposed code and commands for safety before approval."
Native Windows also lacks Claude Code's sandbox, which only WSL 2 supports, so never start it in your whole user folder, and never paste passwords or API keys into it.
If you want Claude Code set up for your team's real work, that's part of my AI agent consulting. For OpenAI's agent, my Codex on Windows guide covers the same setup, and Codex sorted the same 16-file folder.
FAQ
Is Claude Code free?
No. The free Claude plan doesn't include Claude Code. The cheapest plan that does is Pro, at $20 a month or $17 a month billed yearly, and its usage limits are shared with the Claude app on web, desktop and mobile.
Do I need to know how to code to use Claude Code?
No. You type what you want in plain English. In my beginner video it sorted a folder of 16 files and built a one-page bakery website, and I didn't write any code. You still need to read what it does and check the result.
What does irm https://claude.ai/install.ps1 | iex do?
irm (Invoke-RestMethod) downloads Anthropic's install script and iex (Invoke-Expression) runs it. The script downloads claude.exe from downloads.claude.ai, checks its SHA-256 checksum against the release manifest, runs claude.exe install to set up the claude command in %USERPROFILE%.local\bin, then deletes the download. To read the script first, run irm https://claude.ai/install.ps1 without | iex.
Do I need admin rights to install Claude Code on Windows?
No. Anthropic's setup guide says you don't need to run the installer as Administrator. It puts claude.exe in %USERPROFILE%.local\bin, inside your own user folder.
Do I need WSL or Git to use Claude Code on Windows?
Neither. Claude Code runs natively on Windows 10 version 1809 or later. Git for Windows is optional: it adds Git Bash, and without it Claude Code runs commands through PowerShell. WSL 2 matters only if you want Claude Code's sandbox, which native Windows doesn't support.
Can I use Claude Code without the terminal?
Yes. The Claude desktop app for Windows has a Code tab that runs Claude Code with a graphical interface, and it needs the same paid plan. Anthropic's help center now lists it as the recommended way for Pro, Max and Ultra subscribers to open Claude Code.
How do I update or uninstall Claude Code on Windows?
The PowerShell install updates itself in the background, and claude update applies an update right away. A WinGet install doesn't update itself, so run winget upgrade Anthropic.ClaudeCode. To remove the PowerShell install, delete %USERPROFILE%.local\bin\claude.exe and the %USERPROFILE%.local\share\claude folder.
Why is Claude Code using API credits instead of my Pro plan?
An ANTHROPIC_API_KEY environment variable is set on your PC and you approved it when Claude Code asked. Claude Code then bills that key's API account instead of your subscription. Turn the key off with the Use custom API key toggle in /config, or remove the variable, and check /status to see which login is active.
Disclosure: written with AI assistance, from my own recording and notes.
About the author
- I build AI agents, LLM and RAG systems, and computer vision pipelines, and I test new AI tools hands-on before writing about them. Top Rated Plus on Upwork. Write-ups and contact: https://khadim.tech
Comments
Join the discussionNo comments yet. Be the first to comment.