Windows via WSL2
On Windows, the kit runs in WSL2, the Linux that Windows ships with. This guide takes you to a ready WSL2 and then back into The first hour, where it continues for everyone.
Prerequisites
- Windows 11, Home or Pro.
- Administrator rights for the setup.
- Time: about 20 to 40 minutes including the restart.
Steps
Enable WSL2. In PowerShell as administrator (right-click on Start → "Terminal (Admin)"):
powershellwsl --installThis enables WSL2 and downloads Ubuntu. Restart when Windows asks you to.
Done when
wsl --statusin PowerShell reports2as the default version.Otherwise: If
wsl --installreports an error about virtualization, it is switched off. To check: in the Task Manager under Performance → CPU it then says "Virtualization: Disabled". Your administrator or IT can enable it.Set up Ubuntu. After the restart Ubuntu opens; otherwise start it from the Start menu. You create a Linux user with a password and bring the system up to date:
bashsudo apt update && sudo apt upgrade -yDone when
wsl -l -vin PowerShell showsUbuntuwithVERSION2and the Ubuntu terminal offers a prompt like<name>@<rechner>:~$.Otherwise: If Ubuntu is missing from the list, run
wsl --install -d Ubuntuin PowerShell.
WSL2 is now ready. Continue in the Ubuntu terminal with step 1 of the first hour.
On company computers
- Blocked virtualization.
wsl --installfails as in step 1. Your administrator or IT can enable it. - Proxy. Downloads in Ubuntu break off. The network team gives you the proxy address; enter it as
export HTTPS_PROXY=http://<proxy>:<port>in~/.bashrc. - Company network certificates of its own.
curl,npmorclaudereport a certificate error. IT security hands out the root certificate;export NODE_EXTRA_CA_CERTS=<pfad>in~/.bashrcmakes it known to Node.js and Claude Code.
The runner on Windows
The runner runs in the Ubuntu terminal. Three things interrupt it:
- Closed terminal. The runner ends with the window. Keep it open.
- The computer going to sleep. A sleeping computer pauses WSL2. In the power options, set sleep on mains power to "Never".
- WSL2 shutting down. Windows shuts WSL2 down when idle, as soon as no terminal is open any more;
wsl --shutdownends it immediately. Do not run it while the runner is running.
Where the project lives
The project lives under /home/<name>/, not on the Windows drive under /mnt/c:
- Speed. Access to
/mnt/cgoes through a bridge to Windows; check runs (Prüfläufe), git and tests take many times as long there. - File permissions and line endings follow the rules of Windows there. Scripts lose their execute permission, line endings change unnoticed.
- The kit's check runs require POSIX file permissions and fail there for the wrong reason.
Working with Windows tools
- File Explorer. The Linux home directory is under
\\wsl$\Ubuntu\home\<name>;explorer.exe .opens the current folder. - Editor. VS Code with the "WSL" extension opens the project directly in WSL2 with
code .. - Claude desktop app. Choose WSL or Ubuntu as the working environment and the project under
/home/<name>/as the folder.uname -sanswersLinuxthere.
All three leave the files where they are. Do not copy the project to the Windows drive.
Moving from native Windows
Native Windows and Git Bash are no longer supported as of 4.0.0. If you have used the kit there so far, move like this:
- Set up WSL2 following steps 1 and 2.
- Install the tools as in Check the tools.
- Clone the project anew from its repository into
~/, see Create the project, instead of copying the folder. Push unpushed commits beforehand on Windows. - Install the kit anew as in Install the kit.
- Do not keep using the old
.claude/copy on Windows.
Claude Code is started in the project folder with claude, as in Log in to Claude.