#### Getting started

# Download and install Grok Build

Grok Build runs in two places: the Agents Window, a desktop app with an editor, and the Grok Build TUI, the `grok` command. They install separately, and you can use both on the same projects.

| You want | Install | How |
| --- | --- | --- |
| An editor with agents beside your code | The Agents Window | Download the desktop app |
| An agent in your terminal, in scripts, or over SSH | The Grok Build TUI | One shell command |

## What do I need before installing?

A Grok Build account. You sign in the first time you open either surface.

## How do I install the Agents Window?

1. Go to [cursor.com/download](https://cursor.com/download)
2. Click the download button for your operating system
3. Open the downloaded file
4. Follow the install steps for your OS:
   * **Mac**: Drag Grok Build into your **Applications** folder
   * **Windows**: Run the installer and follow the prompts
   * **Linux**: Install via your package manager (`apt` or `dnf`) if available, or extract the AppImage/archive and run it
5. Open Grok Build from your applications menu or desktop
6. Sign in with your Grok Build account when prompted

You're ready to go. Open a project folder with **File** > **Open Folder** to start coding.

## How do I install the Grok Build TUI?

Run the command for your system. It downloads the latest stable release and adds `grok` to your `PATH`:

```bash customLanguage="bashMacLinux"
curl -fsSL https://x.ai/cli/install.sh | bash
```

```bash customLanguage="powershell"
irm https://x.ai/cli/install.ps1 | iex
```

Then run `grok` in your project folder. On first launch it opens your browser to sign in. For SSH, CI, and other sign-in options, see the [Grok Build TUI overview](/build/overview).

## Related

* [Your first project](/build/agents-window/help/getting-started/first-project)
* [Install and update issues](/build/agents-window/help/troubleshooting/install-issues)
* [Grok Build TUI](/build/overview)
