Pi on Windows

How Pi 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 Pi 0.87.1 in EnvHaven v1.9.0

Pi runs on Windows natively or through WSL. Natively it needs Git for Windows for its Bash tool, and its docs list terminals with known display bugs, among them the classic console window and Git Bash’s mintty. (Pi documentation)

There is also a way that leaves Windows out of it: in EnvHaven, Pi 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 Pi works.

Pi from Windows, on EnvHaven

  1. Open your workspace in Edge or Chrome.
  2. Tap Launch, choose Pi and tap Sign in: it starts Pi, which asks you to sign in the first time. For an API key, choose Set key instead and paste ANTHROPIC_API_KEY, OPENAI_API_KEY or GEMINI_API_KEY; the workspace keeps it write-only.
  3. Start it with one tap: signed in, Pi gets a green dot in the Launch menu and an icon in the workspace’s top bar. Support is built in (0.87.1), so there is nothing to install or update.
  4. Give it a task. Runs unchanged; it never stops to ask.
  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 Pi on Windows itself

PowerShell:

powershell -c "irm https://pi.dev/install.ps1 | iex"

npm:

npm install -g --ignore-scripts @earendil-works/pi-coding-agent

Through WSL

WSL runs a Linux distribution inside Windows (Microsoft’s guide). Install it from an administrator PowerShell and restart:

wsl --install

Then install Pi in the Ubuntu terminal it opens:

curl -fsSL https://pi.dev/install.sh | sh