# Install Claude Code on Windows with PowerShell

Canonical: https://cwyn.com/pages/claude-code-guide-windows-powershell-install.html
Last updated: 2026-11-27T02:27:53-05:00

Claude Code setup guide

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 November 27, 2026 · Published November 19, 2026

By CWYN · Published November 19, 2026 · Not affiliated with Anthropic · Checked against docs, not run · [Native Windows installer](https://code.claude.com/docs/en/setup) and [PowerShell PATH checks](https://code.claude.com/docs/en/troubleshoot-install) (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](https://cwyn.com/pages/claude-code-guide-wsl-setup.html) 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](https://cwyn.com/pages/claude-code-guide-subscription-vs-api.html).

If your first request returns an API error, [check whether it is a 529 overload or a 429 rate limit](https://cwyn.com/pages/claude-code-guide-529-429-errors.html).

Sources · [Native Windows installer and Git for Windows](https://code.claude.com/docs/en/setup) · [PowerShell executable and User PATH checks](https://code.claude.com/docs/en/troubleshoot-install) · [Sign-in and first project session](https://code.claude.com/docs/en/quickstart)

## Related guides

- [Claude Code ignoring CLAUDE.md or not loading it?](https://cwyn.com/pages/claude-code-guide-claude-md-not-loading.html)
- [Claude Code settings.json precedence (managed first)](https://cwyn.com/pages/claude-code-guide-settings-json-precedence.html)
- [Resume a previous Claude Code session](https://cwyn.com/pages/claude-code-guide-resume-local-session.html)
- [Claude Code headless print mode with claude -p](https://cwyn.com/pages/claude-code-guide-headless-print-mode.html)

## Next steps

- [All 34 Claude Code guides](https://cwyn.com/guides/claude-code/)
- [Claude Code setup walkthrough](https://cwyn.com/setup/claude-code/)
- [Check your CLAUDE.md](https://cwyn.com/score/setup-file-checker/?profile=claude)
- [Claude Code Complete Setup Pack ($12.95)](https://cwyn.com/pages/pack-claude-code-complete-setup-pack.html)

### Set up your Claude Code project

After your first PowerShell session, add your project’s test command to the starter `CLAUDE.md` in the [Claude Code Complete Setup Pack ($12.95)](https://cwyn.com/pages/pack-claude-code-complete-setup-pack.html).
Kit details as of Nov 22, 2026

Claude Code Complete Setup Pack $12.95

Set up project instructions, permission rules, hooks, a reviewer skill and subagent, and MCP connections for Claude Code.
