You can install Claude Code on Windows, but the officially supported way is not a native Windows installer. Anthropic distributes Claude Code as a command-line tool that runs on macOS, Linux, and Windows via Windows Subsystem for Linux (WSL), or through a supported terminal setup such as Git Bash. In practice, the reliable route for most Windows users is to install WSL 2 with a current Ubuntu distribution, install Node.js inside it, and then install Claude Code with npm. A native Windows build has been offered at times, but WSL remains the setup most likely to work without surprises, especially for file watching, shell tools, and permissions.

What Claude Code Actually Is

Claude Code is Anthropic's agentic coding tool that runs in your terminal. You launch it inside a project folder, and it reads files, proposes edits, runs commands you approve, and works with Git. It is not a full graphical IDE; it is a command-line program you talk to in natural language. That matters for the Windows question, because a terminal-first tool depends heavily on the shell, file paths, and process model it runs on.

Because much of its tooling assumes a Unix-like environment, Anthropic has historically treated Windows support as "use WSL." That gives the tool a Linux shell, standard utilities, and predictable path handling. If you have ever had a Windows tool misbehave because of backslashes, CRLF line endings, or missing build tools, you already understand why a Linux layer is the recommended default.

This is the path that works for the widest range of Windows 10 and Windows 11 machines. You need administrator access and a reboot or two.

  1. Open PowerShell as Administrator and run wsl --install. This enables the WSL feature, installs WSL 2, and pulls a default Ubuntu distribution.
  2. Reboot when prompted, then launch Ubuntu from the Start menu. It will finish setting up and ask you to create a Linux username and password.
  3. Update packages inside Ubuntu: sudo apt update && sudo apt upgrade.
  4. Install Node.js. The most dependable method is a version manager such as nvm (Node Version Manager), which lets you install a current LTS release. Claude Code requires a reasonably recent Node.js version, so check Anthropic's documentation for the current minimum before installing.
  5. Install Claude Code globally with npm install -g @anthropic-ai/claude-code.
  6. Run claude in a project directory and follow the sign-in prompt in your browser.

A common mistake is running these commands in Windows PowerShell instead of inside the Ubuntu terminal. The install will appear to succeed in the wrong environment and then fail when you launch the tool. If claude is "not found" after a successful npm install, check that you are actually inside WSL and that your npm global bin directory is on your PATH.

Working With Files Across the WSL Boundary

One of the most frequent sources of trouble is where you keep your code. If your project lives on the Windows drive, WSL reaches it under /mnt/c/. That works, but file operations are much slower, and file watching often fails because Windows and Linux have different change-notification systems. Editors on the Windows side may not see changes made inside the container promptly, and build tools can take far longer.

Better practice is to keep repositories inside the Linux filesystem, for example under your home directory (~/projects), and edit them either with a terminal editor inside WSL or with a Windows editor that explicitly supports the WSL remote workflow. If you insist on /mnt/c/, expect slower tooling and occasional missed file events. Symptoms include the agent not noticing files you just saved, or tests running against stale code.

Alternatives and Native Options

WSL is not the only route, and a few other setups exist for people who do not want to enable it.

  • Git Bash or another POSIX shell. Git for Windows bundles Git Bash, which can run the Node.js install and the CLI. It is lighter than WSL but less complete; some Unix tools and path behaviors differ, and support is not guaranteed.
  • A native Windows install. Anthropic has at times provided install methods for Windows outside WSL, including a PowerShell-based installer. Availability and exact steps change, so verify against current documentation rather than a blog post from a year ago.
  • VS Code with a remote WSL session. Run the editor on Windows but have its terminal and files live in WSL. This combines a familiar interface with a Linux toolchain.
  • Windows Terminal. Not a separate runtime, but a much better host for Ubuntu tabs than the default console window.

The choice usually comes down to how much Unix tooling your projects already depend on. If your stack is Node.js, Python, or anything with shell scripts, WSL pays for itself quickly.

Common Windows Problems and Fixes

Most failures fall into a small set of categories. Work through these before assuming the tool itself is broken.

  • Command not found after install. The npm global prefix is not on your PATH. Check the npm prefix location and add its bin directory to your shell profile.
  • Permission errors on install. Global npm installs may need either a corrected prefix or sudo depending on how Node.js was installed. Using a version manager avoids most of this.
  • WSL installation fails. Virtualization may be disabled in firmware, or an older Windows build may need updates before WSL 2 is available.
  • Very slow file operations. The project is on /mnt/c/. Move it into the Linux filesystem.
  • Editor and terminal disagree about changes. Usually a file-watching issue tied to the same cross-boundary problem.
  • Network or proxy issues. Corporate firewalls sometimes block the sign-in flow. Check proxy environment variables inside WSL.

Costs, Accounts, and Safety

Claude Code itself is a client; access is tied to an Anthropic account and a paid plan or API usage. Pricing changes, so check the official pricing page rather than relying on a figure quoted in a tutorial. A free tier generally does not include Claude Code usage.

From a safety standpoint, the important point is that Claude Code can run commands on your machine, and it asks for approval before doing so. Do not blindly approve destructive operations. Read the proposed command, especially anything involving deletion, force pushes, or package publishing. Keep projects in version control so a bad edit is recoverable, and avoid running the tool with elevated privileges. Backups and Git commits are your best protection.

Frequently Asked Questions

Does Claude Code run natively on Windows? It runs on Windows, but the most consistently supported route is inside WSL 2. A native install path has existed, yet the exact steps vary by release, so confirm with current official documentation.

Do I need WSL 2 specifically? WSL 2 is strongly preferred over the older WSL 1 because of its improved filesystem performance and Linux kernel compatibility. Most guides and support notes assume WSL 2.

Which Node.js version do I need? A current LTS release is the safe choice. Because the minimum requirement can change, check Anthropic's documentation at install time instead of trusting a version listed in an older article.

Why is it so slow on my Windows project folder? Files stored under /mnt/c/ cross the Windows-Linux boundary, which adds overhead and can break file watching. Move the repository into the Linux home directory.

Can I use it in PowerShell? You can open PowerShell and type wsl to enter your Linux environment, but running the install commands in native PowerShell is the usual cause of "command not found" errors.

Is my code sent anywhere? The tool sends prompts and relevant context to Anthropic's servers to generate responses, so avoid working on material you are not permitted to share with a third-party service, and review any data-handling policy that applies to you.