# Claude Code on Windows

> How Claude Code runs on Windows today, the install commands, and the route with nothing to install: an always-on Linux workspace you open in Edge or Chrome, signed in once from the Launch menu.

_Updated November 23, 2026 · Checked against Claude Code 2.1.308 in EnvHaven v1.9.0_

Claude Code runs on Windows natively or through WSL. It needs 64-bit Windows 10 1809 or later. On native Windows it runs commands without its sandbox, which works under WSL 2. ([Claude Code documentation](https://code.claude.com/docs/en/setup))

There is also a way that leaves Windows out of it: in EnvHaven, Claude Code runs on a Linux workspace of its own and the PC is only the window. Nothing to install on the PC, no WSL to set up, and the PC can sleep while Claude Code works.

## Claude Code from Windows, on EnvHaven

1. Open your workspace in Edge or Chrome.
2. Tap **Launch**, choose Claude Code and tap **Sign in**: it opens claude.ai so you can approve the workspace, then takes the short code the page shows, so a Claude plan works with no API key. For an API key, choose **Set key** instead and paste `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN`; the workspace keeps it write-only.
3. Start it with one tap: signed in, Claude Code gets a green dot in the Launch menu and an icon in the workspace's top bar. Support is built in (2.1.308), so there is nothing to install or update.
4. Give it a task. The image writes `defaultMode: "bypassPermissions"` into the workspace user's own settings, so `claude` starts without prompts, as an unprivileged user.
5. Prefer a terminal window? Windows' built-in OpenSSH client (`ssh` in Windows Terminal or PowerShell) connects to the workspace and lands in the same session. First add your public key, or import it from GitHub, under Remote Access in the workspace's EnvHaven sidebar.

## Install Claude Code on Windows itself

PowerShell:

```powershell
irm https://claude.ai/install.ps1 | iex
```

CMD:

```bash
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
```

WinGet:

```powershell
winget install Anthropic.ClaudeCode
```

## Through WSL

WSL runs a Linux distribution inside Windows ([Microsoft's guide](https://learn.microsoft.com/en-us/windows/wsl/install)). Install it from an administrator PowerShell and restart:

```powershell
wsl --install
```

Then install Claude Code in the Ubuntu terminal it opens:

```bash
curl -fsSL https://claude.ai/install.sh | bash
```

## Keep reading

- [Claude Code](https://envhaven.com/agents/claude-code)
- [Claude Code in the browser](https://envhaven.com/agents/claude-code/browser)
- [Claude Code on iPhone](https://envhaven.com/agents/claude-code/iphone)
- [Claude Code on iPad](https://envhaven.com/agents/claude-code/ipad)
- [Claude Code on Android](https://envhaven.com/agents/claude-code/android)
- [Claude Code on a Chromebook](https://envhaven.com/agents/claude-code/chromebook)
- [Coding agents on Windows](https://envhaven.com/agents/windows)

Source: https://envhaven.com/agents/claude-code/windows
