Install Claude Code on Windows: 2026 Native + WSL Guide

Claude Code now runs natively on Windows 10 1809+ — WSL is an option, not a requirement. This updated guide leads with the install steps: a 60-second PowerShell quick start, then every official method ranked (native installer, WinGet, npm, and WSL) plus community options, a native-Windows-vs-WSL decision table, verification with claude doctor, plan requirements for authentication, and release-channel management.

Back to Blog
(Updated )
13 min read
How To Install Claude Code on Windows: Complete Guide 2025

Claude Code is Anthropic's agentic coding assistant that lives in your terminal, understands your whole codebase, and edits files, runs commands, and manages Git through natural language. If you last looked at installing it on Windows a year ago, the most important thing to know is this: Claude Code now runs natively on Windows. WSL is no longer a requirement — it's one option among several, and for most Windows developers it is no longer the fastest path.

Because most people arrive here to get it installed, the install steps come first: a 60-second quick start, then every supported installation method ranked in the order Anthropic recommends them, a native-Windows-versus-WSL decision table, verification, and authentication. The deeper material — commands, workflows, troubleshooting, and security — follows.

Quick Start

Install Claude Code on Windows in 60 Seconds

Open PowerShell (no Administrator rights needed) and run the native installer:

# 1. Install (Windows PowerShell)
irm https://claude.ai/install.ps1 | iex

# 2. Verify
claude --version

# 3. Open a project and sign in
cd C:\path\to\your-project
claude

On first run, a browser window opens to sign in. Native installs auto-update in the background, so this is normally the only install command you ever run.

Using CMD instead of PowerShell?

Run curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd instead. Your prompt tells you which shell you are in: PowerShell shows PS C:\>, while CMD shows C:\> with no PS. If you see "The token '&&' is not a valid statement separator" you are in PowerShell; if you see "'irm' is not recognized" you are in CMD.

Installation Methods, Ranked

Anthropic supports several installation paths on Windows. They are listed below in the order Anthropic presents them in its own documentation — official and recommended first, then community options that are not operated by Anthropic.

Official Method 1 — Native Installer (Recommended)

The native installer downloads a self-contained binary. There is no Node.js dependency, no WSL requirement, and it keeps itself up to date automatically.

powershell
# Windows PowerShell
irm https://claude.ai/install.ps1 | iex
batch
REM Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

You can pin a channel or an exact build at install time — stable trails about a week behind and skips releases with known major regressions:

powershell
# Stable channel
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) stable

# A specific version
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.1.89

Official Method 2 — WinGet

Good fit if your organization already standardizes Windows software through the Windows Package Manager.

powershell
winget install Anthropic.ClaudeCode

# Upgrade later (WinGet installs do NOT auto-update)
winget upgrade Anthropic.ClaudeCode

WinGet installations do not update themselves. Upgrades can also fail while Claude Code is running, because Windows locks the running executable — close it first.

Official Method 3 — npm

Useful if your team already manages developer tooling through Node.js. As of v2.1.198 the npm package requires Node.js 22 or later.

powershell
npm install -g @anthropic-ai/claude-code

# Upgrade (use @latest, not npm update -g)
npm install -g @anthropic-ai/claude-code@latest

The npm package installs the same native binary as the standalone installer — it pulls a per-platform optional dependency such as @anthropic-ai/claude-code-win32-x64 and links it into place, so the installed claude does not run on Node at runtime. Your package manager must allow optional dependencies.

Never use sudo (or an elevated shell) with npm -g

Global npm installs run as Administrator invite permission and security problems, and an npm global directory that isn't writable also blocks Claude Code's auto-update. If you hit permission errors, configure a user-level npm prefix instead of elevating.

Official Method 4 — Inside WSL

Still fully supported, and the right choice for Linux toolchains — or if you want sandboxed command execution, which is only available under WSL 2. Install WSL, open your distribution, and run the Linux installer inside it:

bash
# Inside your WSL distribution (Ubuntu, Debian, etc.)
curl -fsSL https://claude.ai/install.sh | bash
claude --version

With this option you install and launch claude from the WSL terminal, not from PowerShell or CMD. WSL setups do not need Git for Windows.

Community and Unofficial Methods

Third-party wrappers, unofficial Chocolatey/Scoop packages, and blog-published install scripts are not maintained or endorsed by Anthropic. They lag official releases and carry supply-chain risk. Treat any irm or curl | iex command from a non-Anthropic domain as untrusted code execution and read it first. For business environments, standardize on one official method across the team — mixing methods on the same machine is the most common cause of version confusion and command not found PATH conflicts.

MethodStatusAuto-updatesBest for
Native installerOfficial — recommendedYesMost Windows developers
WinGetOfficialNoWinGet-managed fleets
npmOfficialYes*Node-standardized teams
WSL (Linux installer)OfficialYesLinux toolchains; sandboxing
Third-party packages / scriptsUnofficialVariesNot recommended for business use

*npm installs auto-update only when the npm global directory is writable.

Native Windows or WSL? Pick Based on Your Projects

Both are officially supported. The deciding factors are where your code lives and whether you need sandboxed execution.

OptionRequiresSandboxingWhen to use
Native WindowsNothing (Git for Windows optional)Not supportedWindows-native projects and tooling
WSL 2WSL 2 enabledSupportedLinux toolchains, or sandboxed command execution
WSL 1WSL 1 enabledNot supportedOnly if WSL 2 is unavailable

Install Git for Windows (optional but recommended)

On native Windows, Git for Windows lets Claude Code use Git Bash for its Bash tool. Without it, Claude Code falls back to the PowerShell tool. If Git Bash is installed somewhere unusual, point to it in settings.json with CLAUDE_CODE_GIT_BASH_PATH.

System Requirements

  • Operating system: Windows 10 1809+ or Windows Server 2019+ (macOS 13.0+, Ubuntu 20.04+, Debian 10+, and Alpine 3.19+ are also supported)
  • Hardware: 4 GB+ RAM, x64 or ARM64 processor
  • Shell: PowerShell, CMD, Bash, or Zsh
  • Node.js: only for the npm method (v22+) — the native installer and WinGet need no Node.js
  • Network: outbound internet access to Anthropic endpoints
  • Account: a Claude Pro, Max, Team, Enterprise, or Console account

Verify the Installation

powershell
claude --version
# e.g. 2.1.211 (Claude Code)

# Full read-only diagnostics: install health, settings validation, update status
claude doctor

claude doctor is the fastest way to diagnose a bad install — it reports install health, settings-file errors, and the result of the most recent update attempt without starting a session.

Authenticate

Open a project folder and start Claude Code:

powershell
cd C:\path\to\your-project
claude

Claude Code requires a paid plan

Claude Code needs a Pro, Max, Team, Enterprise, or Console account — the free Claude.ai plan does not include Claude Code access. You can alternatively run it against a third-party provider such as Amazon Bedrock, Google Cloud's Vertex/Agent Platform, or Microsoft Foundry.

On first run, Claude Code opens your browser to complete sign-in. If the ANTHROPIC_API_KEY environment variable is set, it prompts once to approve that key instead of opening a browser.

Keeping Claude Code Updated

Native installs check for updates at startup and periodically while running, then apply them the next time you start. WinGet and npm installs need manual upgrades. To force an update immediately:

powershell
claude update

You can control which release channel you follow in settings.jsonlatest (default) for new features as they ship, or stable for a build roughly a week old that skips releases with major regressions:

json
{\n  "autoUpdatesChannel": "stable"\n}

Enterprises can enforce a channel — and a minimum version floor — organization-wide through managed settings, which is the right control if you need every workstation on a validated build.

Mastering Claude Code: Commands and Best Practices

Now that Claude Code is running, let's explore how to use it effectively. Understanding these commands and patterns will help you maximize productivity.

Essential Commands

Command Description
/help Display all available commands and their descriptions
/cost Check your current session cost in real-time
/bug Report issues directly to Anthropic team
/exit End your Claude Code session safely
/undo Revert the last change made by Claude
/clear Clear the terminal display

Practical Examples

1. Creating a New Feature

You:

Create a user authentication system with JWT tokens, including login, logout, and middleware for protected routes

Claude:

I'll create a complete user authentication system with JWT tokens. Let me set up the necessary files and implement the functionality...

2. Debugging Code

You:

Find and fix the memory leak in the data processing module

Claude:

I'll analyze the data processing module for memory leaks. Let me examine the code and identify potential issues...

Best Practices for Effective Use

  • Be Specific: Provide clear, detailed instructions about what you want to achieve
  • Review Changes: Always review code changes before accepting them
  • Monitor Costs: Use /cost regularly to track spending
  • Start Small: Begin with simple tasks to understand Claude Code's capabilities

Advanced Features and Integration

Unlock the full potential of Claude Code with these advanced features and integration techniques that can transform your development workflow.

🔗 Git Integration

Claude Code seamlessly integrates with Git workflows:

  • Commit changes with meaningful messages
  • Create and switch branches
  • Resolve merge conflicts intelligently
  • Generate comprehensive commit histories

Example: "Create a new feature branch and implement user profile functionality with proper commits"

🧪 Automated Testing

Generate and run comprehensive test suites:

  • Unit tests with high coverage
  • Integration testing setup
  • E2E test scenarios
  • Performance benchmarks

Example: "Write unit tests for the authentication module with 90% coverage"

📚 Documentation Generation

Create professional documentation automatically:

  • API documentation with examples
  • README files with setup instructions
  • Code comments and JSDoc
  • Architecture diagrams in markdown

Example: "Generate complete API documentation for all endpoints"

Visual Studio Code Integration

Enhance your workflow by combining Claude Code with VS Code:

1. Open VS Code from WSL

bash
code .

2. Run Claude Code in Terminal

Use VS Code's integrated terminal to run Claude Code while viewing changes in real-time

3. Review Changes Visually

See Claude's modifications highlighted in VS Code's diff viewer

Troubleshooting Common Issues

Encountering problems? Here are solutions to the most common issues Windows users face when installing and using Claude Code.

Error: "Claude Code is not supported on Windows"

Cause: Claude Code isn't on your PATH, or you installed it inside WSL but are running the command from PowerShell (or vice versa).

Solution:

  1. Run claude doctor to check install health, and make sure you're in the same environment you installed into (native Windows or WSL)
  2. Check your terminal prompt - it should show your Linux username
  3. Run uname -a - it should show Linux, not Windows
  4. If you installed inside WSL, open your WSL distribution first, or run wsl

Error: "npm: command not found"

Cause: Node.js/npm missing or PATH not configured (only applies to the npm install method — the native installer needs no Node.js).

Solution:

  1. Verify you're in WSL: echo $SHELL
  2. Reinstall Node.js using NVM as shown in Step 4
  3. Run source ~/.bashrc to reload configuration
  4. Check installation: which npm

Performance Issues in /mnt/c/ Directories

Cause: Cross-filesystem operations between WSL and Windows are slower.

Solution:

  1. Move projects to Linux filesystem: cp -r /mnt/c/project ~/project
  2. Use \\wsl$ in Windows Explorer to access Linux files
  3. For better performance, develop primarily in Linux filesystem
  4. Use Git to sync between Windows and Linux if needed

Business Impact: Why Claude Code Matters

Understanding the business implications of adopting Claude Code can help justify the investment in AI-powered development tools. Here's how it transforms your development operations:

Key Benefits

  • Accelerated Development: 10x faster code generation and rapid prototyping
  • Improved Code Quality: Consistent coding standards and built-in best practices
  • Knowledge Amplification: Instant codebase understanding and continuous learning
  • Cost Efficiency: Reduced development hours and lower maintenance costs

Real-World Impact: Development Team Case Study

Metric Before Claude Code After Claude Code
Average feature development 40 hours 10 hours
Bug resolution time 8 hours 2 hours
Code review cycles 3-4 rounds 1-2 rounds
Documentation Often outdated Always current

Security Best Practices

When using AI-powered development tools, security should be a top priority. Here's how to use Claude Code safely and protect your intellectual property:

🔐 Access Control

  • Use per-command authorization for sensitive projects
  • Review all code changes before accepting
  • Limit Claude Code access to specific directories
  • Never grant access to production credentials

🛡️ Data Protection

  • Avoid processing sensitive customer data
  • Use environment variables for secrets
  • Exclude sensitive files from project directory
  • Regular security audits of generated code

📋 Compliance

  • Review Anthropic's data handling policies
  • Ensure compliance with your industry regulations
  • Document AI-assisted code for audits
  • Maintain code ownership clarity

Optimization Tips for Maximum Efficiency

Get the most out of Claude Code with these optimization strategies and productivity tips gathered from experienced users:

💻 WSL Performance Optimization

Use WSL 2 for Better Performance

Ensure you're running WSL 2 for improved file system performance:

PowerShell
wsl --set-default-version 2

Allocate Sufficient Resources

Create .wslconfig in your Windows user directory to optimize performance:

ini
[wsl2]
memory=8GB
processors=4
swap=2GB

💰 Cost Management Strategies

  • Start with Smaller Models: Use Claude Sonnet for routine tasks, Opus for complex challenges
  • Batch Related Tasks: Group similar operations to leverage context efficiently
  • Monitor Usage Patterns: Check /cost regularly and set budget alerts

🚀 Productivity Shortcuts

  • Create Project Templates: Save time by having Claude Code generate reusable project structures
  • Use Aliases for Common Tasks: Add to ~/.bashrc: alias claude-project='cd ~/projects && claude'
  • Leverage Context Files: Create CLAUDE.md files to provide project context automatically

Embrace the Future of AI-Powered Development

You've now mastered the complete process of installing and using Claude Code on Windows — natively or through WSL. This powerful AI coding assistant represents just the beginning of what's possible when businesses embrace AI-driven development tools. By following this guide, you've taken the first step toward dramatically improving your development workflow, reducing costs, and accelerating innovation.

Key Takeaways

  • ✅ Claude Code runs natively on Windows 10 1809+ — WSL is an option, not a requirement
  • ✅ Proper setup ensures smooth operation and optimal performance
  • ✅ AI-powered development can reduce coding time by up to 75%
  • ✅ Security and cost management are essential for enterprise adoption
  • ✅ The ROI from improved productivity far exceeds the tool costs

Your Next Steps

  1. Complete Installation: Follow our guide to set up Claude Code today
  2. Start Small: Begin with simple tasks to build confidence
  3. Measure Impact: Track time savings and quality improvements
  4. Scale Adoption: Expand usage across your development team
  5. Explore AI Strategy: Consider broader AI implementation opportunities

Ready to Transform Your Business with AI?

Claude Code is just one example of how AI can revolutionize your operations. At ITECS, we specialize in helping businesses leverage cutting-edge AI technologies to drive growth, improve efficiency, and stay ahead of the competition.

References and Additional Resources

Official Documentation

Related ITECS Resources

continue reading

More ITECS blog articles

Browse all articles

About Brian Desmot

The ITECS team consists of experienced IT professionals dedicated to delivering enterprise-grade technology solutions and insights to businesses in Dallas and beyond.

View full profile and articles

Share This Article

Continue Reading

Explore more insights and technology trends from ITECS

View All Articles