What about Windows?
Have a Windows PC or a new RTX Spark PC? Much of this guide works with WSL, the Linux environment built into Windows. Here's what works as-is, what to set up, and when it makes sense to switch to Linux.
In this guide
Guide checked 3 months ago: some commands may have changed. Let us know if so.
In short
On Windows, the easiest route is WSL 2, a full Linux environment running alongside Windows. Run wsl --install in PowerShell, then follow the guide as you would on a Linux mini-PC. Claude Code also installs directly on Windows, but its sandbox only works in WSL 2. Three settings matter: keep your projects on the WSL drive to avoid slow file access under /mnt/c, enable systemd for services, and give WSL enough memory (half the PC's memory by default). For local AI on an RTX Spark PC or a PC with an Nvidia card, run the model server on Windows so it can use the GPU, and connect to it from WSL. If you need to host services around the clock, install Linux directly. Windows forces restarts and can go to sleep, and WSL shuts down when nothing is running.
Do this first: Why a mini-machineChoosing the hardware
This guide is written for a Linux mini-PC. But many of you already have a Windows PC, and the new Nvidia RTX Spark (in French) PCs, with 128 GB of unified memory, all ship with Windows 11. The good news is that Windows includes a full Linux environment, WSL 2 (Windows Subsystem for Linux), and most of this guide works there as written.
Here’s what you can follow as-is, what to set up, and when it makes sense to install Linux directly.
What works exactly the same
WSL 2 gives you a full Ubuntu system, complete with a terminal, a package manager, and a Linux kernel. Everything below works as described in the guide:
- coding agents: Claude Code, Codex, OpenCode, with the same installation commands
- Git, Python, Node.js,
uv,tmux - Docker, either in WSL or through Docker Desktop with its WSL backend
- MCP servers, skills, and memory files
- the first project from A to Z, from the brief to a running service
Install WSL 2
0 of 4 steps done Your ticks stay in this browser.
-
Run one command in PowerShell
Open PowerShell as an administrator by right-clicking the Start menu and selecting Terminal (Admin).
wsl --install # installs WSL 2 and UbuntuRestart when Windows asks you to. The first time Ubuntu starts, choose a Linux username and password.
-
Update Ubuntu
sudo apt update && sudo apt full-upgrade -y -
Enable systemd
This lets services such as Ollama, your apps, and timers start as they would on a Linux machine. First, check whether it’s already enabled.
cat /etc/wsl.conf # should contain [boot] followed by systemd=trueIf needed, add these two lines with
sudo nano /etc/wsl.conf, then runwsl --shutdownin PowerShell and reopen Ubuntu.[boot] systemd=true -
Install your coding agent in Ubuntu
Follow Install a coding agent. For Claude Code, run
curl -fsSL https://claude.ai/install.sh | bash.
Three settings that make a difference
Keep your projects on the WSL drive
WSL can see your Windows drives under /mnt/c and /mnt/d. That’s handy for grabbing a file, but very slow for project work. Every read crosses between the two systems, so npm install or git status can take ten times as long. Keep your projects in your Linux home directory.
mkdir -p ~/projets && cd ~/projets
From Windows, you can find them in File Explorer at \\wsl.localhost\Ubuntu\home\votre-nom\projets. To open the folder in VS Code, run code . from WSL.
Give WSL enough memory
By default, WSL can use up to half the PC’s memory. On a 32 GB machine, that’s 16 GB for Linux, enough for coding. If you want to run local models there, raise the limit in C:\Users\votre-nom\.wslconfig or in the WSL Settings app in the Start menu.
[wsl2]
memory=24GB
Then run wsl --shutdown in PowerShell and reopen Ubuntu.
Connect Windows and WSL through localhost
In mirrored networking mode, WSL and Windows share the same addresses. Start a server in WSL on port 8300 and you can open http://localhost:8300 in your Windows browser. WSL can also reach Windows services on localhost. Add this to the same .wslconfig file on Windows 11 22H2 or later.
[wsl2]
networkingMode=mirrored
Can you run Claude Code directly on Windows?
Yes. In PowerShell, irm https://claude.ai/install.ps1 | iex installs it without WSL. Git for Windows gives it a Bash shell. Without Git for Windows, it uses PowerShell. This comes in handy for a Windows-only project. Claude Code’s sandbox, which limits what its commands can access, only works in WSL 2. For this guide, install your agents in WSL. Codex also has a Windows version with its own sandbox. WSL is still the simplest option when your project uses Linux tools.
Local AI and GPU access on Windows
An RTX Spark PC or a PC with an Nvidia card uses Windows graphics drivers. You have two options:
- Run the model server on Windows and the agents in WSL. Install Ollama for Windows (or llama.cpp) so it can access the GPU directly. With mirrored networking, your agents in WSL can reach it at
http://localhost:11434. This is the simplest setup and makes the best use of the GPU. We ran llama.cpp on Windows for our MTP benchmarks on RTX Spark. - Run everything in WSL. WSL 2 provides GPU access through virtualization, and CUDA works there with an Nvidia card. This keeps everything in one environment, but you’ll need the right Windows drivers and a little more setup.
Either way, check that the model is using the GPU. ollama ps should show 100% GPU. See Troubleshooting.
Access your machine from anywhere
Tailscale installs on Windows as it does on other platforms and gives your PC an address on your private network. The easiest way to get a remote terminal is to enable Windows’ OpenSSH Server in Settings → System → Optional features, then type wsl once you’ve connected. Claude Code’s Remote Control also works for remote work, since the agent runs inside WSL.
When to install Linux directly
WSL is great for coding on your PC. For a machine that needs to run around the clock, it has some drawbacks:
- Windows restarts for updates, sometimes in the middle of the night, and takes your WSL services down with it.
- WSL shuts down when nothing is running, about fifteen seconds after you close the last terminal, unless a service is active.
- When Windows goes to sleep, everything stops, including Tailscale.
- Each layer (Windows, WSL, Docker) adds its own settings and ways things can break.
Microsoft’s documentation explains how to install WSL and covers all its settings.
All the commands in this guide
Frequently asked questions
Can you follow this guide on a Windows PC?
Yes, you can follow most of it with WSL 2. The wsl --install command sets up Ubuntu to run alongside Windows. Coding agents, Git, Docker, Python, and most of the commands in the guide work as-is. This page covers the differences in remote access, always-on services, and GPU access.
Does Claude Code work on Windows without WSL?
Yes. Run irm https://claude.ai/install.ps1 | iex in PowerShell to install it natively, and use Git for Windows to give it a Bash shell. Its sandbox, which limits what commands can access, only works in WSL 2. If you use Linux tools every day, install Claude Code in WSL.
Why is my project so slow in WSL?
It's probably on the Windows drive under /mnt/c. Accessing Windows files from Linux is much slower. Keep your projects in your WSL home directory (~/projets). If you need to open them from Windows, go to \\wsl.localhost\Ubuntu in File Explorer.
Can a Windows PC replace an always-on Linux mini-PC?
It's a poor fit. Windows restarts for updates and goes to sleep, and WSL shuts down when nothing is running. WSL works well for daily coding on your PC. For a machine that hosts services 24 hours a day, install Linux directly on that PC or on a dedicated mini-PC.
Terms in this guide: LinuxUnified memoryUbuntuGitDockerShellClaude CodeCodexOllamaCUDARemote ControlAgentTailscale
Spotted a mistake?
A command stopped working, a price changed?
Tools change every month. Tell me what is wrong in this chapter and I will fix it and update its date.