Skip to main content
On Windows, the Code tab can run a session inside a WSL 2 distribution instead of on Windows itself. The session’s Claude Code process, its tools, and git all execute inside the distribution, using its Linux toolchain and native Linux paths, the same environment your project targets. Use a WSL session when your repository lives inside the distribution’s filesystem. Working on those files from Windows goes through a network filesystem, which is slow and breaks file watching; running the session inside the distribution avoids both.

Requirements

  • Windows 10 or 11 with WSL 2. WSL 1 isn’t supported.
  • At least one installed distribution (for example, Ubuntu).
  • git installed inside the distribution.

Start a WSL session

1

Pick a distribution

Start a new session in the Code tab and open the environment selector under the prompt box, or above it in the earlier layout. Your installed WSL 2 distributions appear under WSL. Pick one.
2

Choose a folder

The session starts in the distribution’s home directory. Use the folder picker to choose a project folder. Browsing happens inside the distribution, with Linux paths like /home/you/project.
3

Trust the folder

The first session in a folder shows the workspace trust dialog. You grant trust per distribution and folder. A folder you trust in one distribution isn’t trusted in another distribution or at the same path on Windows.
The first session in a distribution takes a little longer while Claude sets up inside it. You can also open a \\wsl.localhost\... folder from the normal folder picker, and it reopens inside that distribution.

What works in a WSL session

Parallel sessions, side chats, visual diff review, branch and pull request status, and worktrees all work, backed by the git and toolchain inside the distribution. “Open in editor” opens VS Code connected to the distribution through Remote - WSL. If a Desktop feature is unavailable or limited in a WSL session, check whether it’s one of these:

If the terminal or connectors are unavailable

You can’t turn on the integrated terminal or connectors for a WSL session yourself:
  • Claude account: the two features are rolling out separately. Select Help > Check for Updates…, and if a feature is still missing after you update, there’s nothing to do.
  • Third-party provider: WSL sessions don’t get the terminal or connectors, and updating Desktop doesn’t change that

Managed devices

On devices managed by an organization, WSL sessions may be unavailable. If session start fails with a message that the device is managed, that’s controlled by your administrator. Administrators: see how settings reach devices in the deployment guide.