Grok Build 2.0: Power-User Guide to the Unified CLI, Workflows and Models

Last updated: December 3, 2026

Grok Build 2.0 is the unified Grok Build CLI that merges the legacy Grok CLI and Cursor CLI. Released as version 2.0.5 on November 30, 2026, it adds third-party models, agent-to-agent messaging, JavaScript workflows, Remote Control and cloud send. Update with grok update –channel unified or cursor-agent update –channel grok.

Contents

What changed in Grok Build 2.0

SpaceXSI (xAI) says the new CLI keeps the Grok terminal interface and runs an improved version of Cursor’s agent harness underneath (Grok Build docs). Version 2.0.5 landed on November 30, 2026, followed by 2.0.6 and 2.0.7 on December 1 and 2 (Grok Build changelog).

The headline additions are:

  • Third-party models in /model, alongside Grok.
  • Agent messaging, so the main agent and subagents can steer each other mid-task.
  • JavaScript workflows that fan work out to background subagents.
  • Remote Control from Grok Build for iOS or another computer.
  • Cloud send, which hands a local session to a cloud agent.
  • Cursor CLI compatibility, including login import and /resume-cursor.

Install, update or roll back

The CLI runs on macOS (Apple silicon or Intel) and on Linux x86_64 or arm64 with glibc 2.28 or later; musl-based distributions such as Alpine are not supported. On Windows, use PowerShell or WSL (Terminal UI overview).

Starting point Command
New install, macOS or Linux curl -fsSL https://x.ai/cli/unified/install.sh | bash
New install, Windows PowerShell irm https://x.ai/cli/unified/install.ps1 | iex
Legacy Grok CLI grok update --channel unified
Legacy Cursor CLI (agent) cursor-agent update --channel grok
Roll back from the Grok CLI grok update --legacy-stable
Roll back from the Cursor CLI cursor-agent update --channel cursor

A practical first run looks like this:

  1. Install or update with the matching command. On organization-managed teams, an admin must unify plans first.
  2. Run grok --version. A version that starts with 2. confirms the unified CLI.
  3. Open your project folder and run grok. It opens a browser to sign in; over SSH use grok login --device-auth, and in CI set XAI_API_KEY.
  4. Run /model to see which Grok and third-party models your plan offers.
  5. Run /usage to check credit usage before large workflows.

Per the changelog, switching keeps your settings, MCP servers, skills, hooks and sessions.

Models, plans and pricing

The changelog says /model now includes models from Anthropic, Google and OpenAI depending on your plan, with per-model speed and Auto “Optimize For” tiers (changelog). Switching models mid-session keeps the conversation.

Grok Build usage comes with The X Subscription. List prices (X Subscription pricing):

Plan Monthly Annual Included usage
Free $0 $0 Limited
Plus $8 $80 Base
Premium $30 $300 4x
Super $100 $1,000 15x
Ultra $200 $2,000 50x

The shared included usage pool covers Grok models across Grok and Cursor. The same page says third-party models in Cursor are not part of included usage and use Additional Usage credits from the first use. Existing Cursor and SuperGrok plans continue.

Agent messaging

In 2.0 and later, agents in one session can message each other while they work (Agent messaging docs). A message either joins the recipient’s current turn (steer) or waits for a later turn (queue). Subagents can be nested up to five levels deep.

You can request the behavior in a prompt: “Start one subagent to update the parser and one to update its tests. Have each tell the other when it renames a function.” You can also open a subagent with Enter and message it yourself.

Limit Value
Length of one message 32,000 characters
Agent messages to the main agent 16 until you write to it again
Messages between all agents in a session 64 until you write to the main agent

Messaging is on by default. Turn it off with active_agent_messages = false under [features] in ~/.grok/config.toml, or for one session with grok --disallowed-tools send_subagent_message.

JavaScript workflows

A workflow is a JavaScript module saved as .grok/workflows/<name>.js in a trusted repository, or in ~/.grok/workflows/ for every project (Workflows docs). It opens with front matter (name, description) and exports an async function that calls host.agent(prompt, options).wait(), with options such as readonly, a JSON schema and a per-agent model.

Start one with /<name>, watch it with /workflow runs, and cap it with --agent-budget N (1 to 1,024). You can also just ask: “use a workflow to review each feature in this PR.” Grok then writes and runs a one-off script. /create-workflow drafts a file, and /deep-research is built in.

Remote Control and cloud send

Remote Control. Run /remote and turn on the Remote Control row, then approve each device after comparing a short pairing code (Remote Control docs). A paired device can start and steer sessions and approve single tool calls; commands still run on the host under its permissions and sandbox.

Cloud send. Type & on an empty prompt, or run grok cloud send -m "Fix the flaky checkout test" from the shell (Cloud send docs). The repository needs an origin remote. Local changes go to a temporary branch; files such as .env and *.pem are skipped, but other secrets are not, so check .gitignore first.

Headless runs and scripting

Headless mode suits scripts and CI: grok -p "Explain the architecture" --output-format streaming-json (Headless docs). Add --no-auto-update in automation. Release 2.0.6 added --resume=-1 and grok --sandbox enabled; 2.0.7 made headless runs start faster.

Grok Build 2.0 compared with the legacy CLIs

Area Before 2.0 Grok Build 2.0
Workflow format Rhai (.rhai) JavaScript modules; .rhai converted
Agent-to-agent messages Not available Steer or queue, on by default
Remote Control /remote does not exist /remote with device pairing
Models Grok-focused CLI or separate Cursor CLI Grok plus third-party models in one /model list
Cursor CLI chats Separate tool Resumable with /resume-cursor

For other terminal agents, compare our Claude Code 2.1.334 guide and the GitHub Copilot CLI 1.0.118 guide. For project instructions, see how to use Cursor rules.

Limitations to plan around

  • Workflows start only in agent mode, a stopped run cannot be resumed, and quitting Grok stops unfinished runs.
  • From a remote device you cannot open a new folder, add always-allow rules, or switch the session to plan mode.
  • Cloud send does not carry images, and if the session’s model is unavailable to cloud agents, the agent uses your default model.

For the rest of the SpaceXSI agent lineup, see the Grok Bot 1.0 guide and Cursor Voice Chat with agents.

Frequently asked questions

What is Grok Build 2.0?

Grok Build 2.0 is the unified Grok Build command-line tool. It keeps the Grok terminal interface on top of an improved Cursor agent harness. Version 2.0.5 shipped on November 30, 2026.

How do I update to the Grok Build 2.0 CLI?

From the legacy Grok CLI, run grok update –channel unified. From the legacy Cursor CLI, run cursor-agent update –channel grok. Then run grok –version; a version starting with 2. confirms the new CLI.

Can I go back to the old Grok CLI?

Yes. If you updated the legacy Grok CLI, run grok update –legacy-stable (or grok update –stable if that flag is rejected). If you came from the Cursor CLI, run cursor-agent update –channel cursor.

Does Grok Build 2.0 support Claude, Gemini or GPT models?

Yes, depending on your plan. The changelog says /model lists models from Anthropic, Google and OpenAI next to Grok. The pricing page says third-party models use paid credits from the first use.

Is cloud send safe for repositories with secrets?

Use care. Cloud send pushes local changes to a temporary branch on origin. It skips git-ignored files and files such as .env and *.pem, but other files holding secrets are pushed.

Sources

Image: Grok logo by X.AI Corp., public domain, via Wikimedia Commons. FreeAnswers is not affiliated with SpaceXSI or xAI.

Related answers

Leave a Comment