Can Claude Code run on Windows?
Claude Code runs on Windows through WSL2, the Windows Subsystem for Linux. Native Windows support is not available, but WSL2 works seamlessly.
Can Claude Code run on Windows?
Claude Code does not run natively on Windows. It requires a Unix-like environment, so Windows users need to install WSL2, the Windows Subsystem for Linux, to use it. Once WSL2 is set up, Claude Code runs exactly as it does on macOS or Linux with no limitations.
Context
Claude Code is a terminal-based agentic coding tool built by Anthropic that relies on Unix shell conventions for file operations, process management, and command execution. Since Windows uses a fundamentally different shell environment (PowerShell and CMD), Claude Code cannot operate directly on the Windows command line.
WSL2 provides a full Linux kernel running inside Windows, which gives Claude Code everything it needs. This is actually the recommended approach from Anthropic, and many professional developers on Windows already use WSL2 for Node.js and other development tooling. Your WSL2 filesystem is accessible from Windows Explorer and VS Code integrates with it natively, so the workflow is smooth.
For developers who prefer not to install WSL2, another option is running Claude Code on a remote server and accessing it via the remote control feature or headless mode. This works from any device, including Windows machines, tablets, and even phones. The Claude Code complete guide covers all setup options in detail.
Practical Steps
- Install WSL2: open PowerShell as administrator and run
wsl --install. - Restart your computer when prompted.
- Set up your Linux distribution (Ubuntu is the default and works well).
- Inside the WSL2 terminal, install Node.js 18+:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && sudo apt-get install -y nodejs. - Install Claude Code:
npm install -g @anthropic-ai/claude-code. - Navigate to your project directory and run
claudeto start.
Browse all resources on the Claude Code topic hub.
Related Questions
Want more AI insights? Subscribe to LoreAI for daily briefings.