Claude Code setup guide
Install Claude Code on Windows with PowerShell
On Windows, open PowerShell and run irm https://claude.ai/install.ps1 | iex. In a new PowerShell window, run claude --version. A version number confirms the installation. Run claude in your project folder to sign in. If PowerShell cannot find the command, check for the executable before changing your User PATH.
Last updated · Published
By CWYN · Published · Not affiliated with Anthropic · Checked against docs, not run · Native Windows installer and PowerShell PATH checks (as of Nov 27, 2026)
1. Open PowerShell on Windows
Open PowerShell from Windows. The prompt starts with PS. Git for Windows is optional. Claude Code uses PowerShell as its shell tool if Git for Windows is absent. Anthropic recommends Git for Windows if you want Claude Code to use the Bash tool.
If you build your project in a Linux distribution on Windows, follow the Claude Code WSL setup guide to install and run it in that distribution’s terminal.
2. Run the native installer
Paste Anthropic’s PowerShell install command. The download can finish without showing progress.
irm https://claude.ai/install.ps1 | iex
3. Check the version in a fresh window
Open a new PowerShell window and run claude --version. Look for a version number. If PowerShell cannot find claude, check whether the installer placed the executable.
Test-Path "$env:USERPROFILE\.local\bin\claude.exe"
If the check returns True, make sure the .local\bin directory under your user profile is in your User PATH. Reopen PowerShell and check the version again. If the check returns False, use the installation troubleshooting guide below to diagnose the missing executable.
4. Start in your project folder
Open PowerShell in your project folder and run claude. Follow the first-run sign-in prompts. Check the working directory shown above the Claude Code prompt, then ask where the project’s main entry point is.
Before your first request, check when Claude Code uses your subscription and when an API key incurs charges.
If your first request returns an API error, check whether it is a 529 overload or a 429 rate limit.
Sources · Native Windows installer and Git for Windows · PowerShell executable and User PATH checks · Sign-in and first project session