# Grok Build on Windows

> How Grok Build 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 Grok Build 1.0.70 in EnvHaven v1.9.0_

Grok Build runs on Windows natively or through WSL. The bash installer also runs under Git for Windows or WSL. Its docs name sandbox backends for Linux and macOS only. ([Grok Build documentation](https://docs.x.ai/build/overview))

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

## Grok Build from Windows, on EnvHaven

1. Open your workspace in Edge or Chrome.
2. Tap **Launch**, choose Grok Build and tap **Sign in**: it runs `grok login --device-auth` for you in the terminal. For an API key, choose **Set key** instead and paste `XAI_API_KEY`; the workspace keeps it write-only.
3. Start it with one tap: signed in, Grok Build gets a green dot in the Launch menu and an icon in the workspace's top bar. Support is built in (1.0.70), so there is nothing to install or update.
4. Give it a task. The image launches `grok` with `--always-approve`.
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 Grok Build on Windows itself

PowerShell:

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

npm:

```bash
npm install -g @xai-official/grok
```

## 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 Grok Build in the Ubuntu terminal it opens:

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

## Keep reading

- [Grok Build](https://envhaven.com/agents/grok-build)
- [Grok Build in the browser](https://envhaven.com/agents/grok-build/browser)
- [Grok Build on iPhone](https://envhaven.com/agents/grok-build/iphone)
- [Grok Build on iPad](https://envhaven.com/agents/grok-build/ipad)
- [Grok Build on Android](https://envhaven.com/agents/grok-build/android)
- [Grok Build on a Chromebook](https://envhaven.com/agents/grok-build/chromebook)
- [Coding agents on Windows](https://envhaven.com/agents/windows)

Source: https://envhaven.com/agents/grok-build/windows
