#### Getting started

# What's new in the Terminal UI

Grok Build 2.0 adds third-party models, workflows written in JavaScript, messages between agents, Remote Control, and cloud send to the Terminal UI. The interface stays the same.

## Check your version

```bash customLanguage="bash"
grok --version
```

Grok Build 2.0 prints a version that starts with `2.`. If yours starts with `1.`, open Grok once, then run `grok update`.

If it still starts with `1.` and you installed Grok with Homebrew, npm, or WinGet, remove that copy, reinstall with the [install script](/build/overview#install), open Grok once, and run `grok update` again.

| Installed with | Remove it with |
| --- | --- |
| Homebrew | `brew uninstall --cask grok-build`, then open a new terminal |
| npm | `npm uninstall -g @xai-official/grok` |
| WinGet | `winget uninstall --id xAI.GrokBuild -e` |

If you [went back to 1.x](#grok-build-1x) before, delete the `build = "legacy"` line from `~/.grok/config.toml` and run `grok update` again. If it still starts with `1.` after that, 2.0 hasn't reached you yet; `grok update` moves you when it does. On a copy your organization manages, your administrator decides when.

## Sign in again, keep your setup

The first time you start Grok Build 2.0, it asks you to sign in again. Everything else carries over: it reads the same `~/.grok/config.toml`, MCP servers, skills, hooks, and `AGENTS.md` files, and `/resume` still opens your earlier sessions.

## Third-party models

`/model` now lists third-party and open models next to Grok, depending on your plan. Pick one from the list, or name it: `/model grok-4.6` moves the current session to Grok 4.6, and the conversation carries over.

## Workflows in JavaScript

A workflow is a JavaScript module that runs many [subagents](/build/features/subagents) in the background and returns one result. Save it as `.grok/workflows/<name>.js` in a repository you've trusted, or in `~/.grok/workflows/` for every project, and start it with `/<name>`. `/workflow runs` shows each phase and its agents.

When you start a Rhai workflow by name, Grok converts it to a `.js` file beside it, leaves the `.rhai` file as it is, and starts the new one.

## Agent messaging

Agents in one session can message each other while they work. The main agent can correct a subagent without stopping it, and subagents can pass each other what they found. Each message shows as a row in the transcript, and you can open a running subagent and send it a message yourself.

## Remote control

Remote Control lets you follow and steer a session on this computer from another device, such as Grok Build for iOS. Commands, file edits, and tests still run on this computer. Run `/remote`, press `Enter` on the **Remote Control** row to turn it on, then approve each device you pair.

## Cloud send

Cloud send hands the session you're in to a cloud agent, so the work carries on after you close the terminal. Type `&` on an empty prompt, add a message if you want one, and press `Enter`. From a shell, `grok cloud send -m "<task>"` starts a cloud agent with a new prompt. Both need a git repository with an `origin` remote. Grok pushes your local changes there on a new branch, including unpushed commits and uncommitted files, so check that none of them hold secrets. Ignored files aren't pushed.

## Go back to an earlier version

Going back deletes nothing: your settings, sessions, and sign-ins stay on disk.

### Grok Build 1.x

1. In `~/.grok/config.toml`, under `[cli]`, set `channel = "stable"` (`"alpha"` if you were on alpha) and add `build = "legacy"`.
2. Run `grok update`, then `grok --version`. The version now starts with `1.`.

If it still starts with `2.`, reinstall with the command under [Install](/build/overview#install), set `channel = "alpha"` again if you were on alpha, then run `grok update` again.

In 1.x, `/resume` opens a session from 2.0 as a copy. `/remote`, cloud send, and `.js` workflows aren't available there. To return to 2.0, delete the `build = "legacy"` line and run `grok update`, as in [Check your version](#check-your-version).

### The legacy Cursor CLI (`agent`)

1. Run `cursor-agent update --channel cursor`.
2. Run `agent --version`. A line that starts with `grok` is Grok Build; anything else is the legacy CLI.

Your Grok Build sessions stay on disk, and both sign-ins are kept. To return, run `cursor-agent update --channel grok`.
