Grok Build: Install, Plan Mode, Subagents, and Headless Setup
Grok Build is xAI's terminal coding agent, now in beta for SuperGrok and X Premium Plus subscribers. This guide covers the one-command install, plan mode approvals, parallel subagents and worktrees, headless scripting, ACP integration, and the grok-build-0.1 model retirement that older tutorials still miss.
View 3 referencesAllow the functional cookie to save your likes. Privacy details
What Is Grok Build and Who Can Use It?
Grok Build is a coding agent that runs from your terminal, launched in early beta in 2026 for professional software engineering and complex coding work. Access is included for SuperGrok and X Premium Plus subscribers; the launch announcement states that all subscribers on those plans can install it.
It behaves like an agent rather than a chat wrapper: it reads the repository, edits files, runs shell commands, searches the web, and manages long-running tasks from a full-screen interface. An earlier coding model, grok-build-0.1, was released in May 2026 and reached end of life on November 19, 2026.
How Do You Install Grok Build?
Install it with a single shell command, then sign in with your account on first launch, which opens a browser for authentication. Prebuilt binaries are published for macOS, Linux, and Windows, so most users never need a compiler. Verify the install with grok --version before starting a project.
# macOS / Linux / Git Bash
curl -fsSL https://x.ai/cli/install.sh | bash
# Windows PowerShell
irm https://x.ai/cli/install.ps1 | iex
grok --version
The official repository also documents a source build. That path needs a Rust toolchain pinned by rust-toolchain.toml, plus DotSlash and protoc for code generation. Windows source builds are best-effort and not tested from that tree.
How Does Plan Mode Work in Grok Build?
For complex tasks you start Grok Build in plan mode, then approve the plan, comment on individual steps, or rewrite it entirely before any execution begins. Once approved, each change appears as a clean diff. That checkpoint is the main reason to use plan mode on multi-file work.
This is the main safety boundary in the tool. If you are working in an unfamiliar repository or handing off a multi-file refactor, plan-first gives you a readable checkpoint before files change. For routine single-file edits, the extra round trip is usually unnecessary.
Can Grok Build Run Subagents and Worktrees?
Yes. For larger tasks Grok Build delegates to specialized subagents that run in parallel, and it supports worktree integrations so a subagent can work in its own isolated checkout. The announcement shows several explore agents investigating different parts of a codebase simultaneously.
Parallelism is useful when the investigation splits cleanly — for example latency regressions, slow endpoints, query plans, and cache hit rates. It is less useful when steps depend on each other, because you will end up re-running work after the first agent changes the shared state.
What Is Headless Mode and ACP Support?
Headless mode uses the -p flag to run an agent non-interactively inside scripts and automations. The Agent Client Protocol support goes the other direction: it lets you embed Grok Build inside compatible editors or build your own bots and agent orchestration apps around it.
Together these two paths cover CI and editor workflows. A scheduled job can invoke grok -p against a checkout, while an ACP client can drive the same agent runtime from a graphical editor session. For interface-specific details, see Grok Build TUI.
Does Grok Build Work With AGENTS.md, Skills, and MCP?
Yes. The announcement says your AGENTS.md, plugins, hooks, skills, and MCP servers work out of the box, and that starting Grok Build in a repository picks up its conventions immediately. The repository's user-guide topics include configuration, theming, MCP servers, skills, plugins, hooks, headless mode, and sandboxing.
That compatibility is the practical reason to prefer it over a generic chat client for repository work. Existing convention files do not need to be translated into a new format.
Which Model Powers Grok Build and What Happened to grok-build-0.1?
SpaceXSI released grok-build-0.1 in May 2026 as a coding model trained specifically for agentic coding workflows, in early access. It reached end of life on November 19, 2026 and is no longer served on the API, according to the release notes.
Current Grok Build usage is tied to the frontier Grok models rather than that retired slug. Grok 4.7 is available inside Grok Build, and a fast variant is offered there and in Cursor but not on the public API. If a tutorial still tells you to call grok-build-0.1, it is out of date.
How Is Grok Build Licensed and Where Is the Source?
The repository's first-party code is Apache License 2.0, while vendored and third-party code keeps its original licenses. The source is a Rust workspace with separate crates for the TUI, agent runtime, tools, and workspace handling, and it is periodically synced from the company's monorepo.
The root Cargo.toml is generated and should be treated as read-only. External contributions are not accepted, so the repository is a readable reference implementation rather than a community fork point.
Frequently Asked Questions About Grok Build
Readers usually ask about access, platform support, and whether the terminal agent duplicates the browser assistant. These answers draw on the launch announcement and the API release notes, which are the two places where availability and model changes are stated authoritatively.
Do I need a paid plan?
Yes, for the hosted paths described in the launch post: SuperGrok or X Premium Plus. API-based headless usage follows normal API billing rules instead.
Can I run it on Windows?
The install script supports Windows PowerShell. Building from source on Windows is best-effort and not currently tested from the published tree, so use the prebuilt binary there.
Is it the same as a chat assistant in the browser?
No. It runs in the repository, operates on files and processes, and has a plan/approval loop. Browser Grok can build apps too, but the terminal tool is aimed at professional engineering workflows.
Bottom Line and Limitations
Grok Build is a credible terminal agent if you already pay for SuperGrok or X Premium Plus and want plan-mode review, parallel investigation, and scriptable runs. It is early beta, the standalone coding model slug is retired, and access details can change between plan tiers — verify availability before depending on it in a team workflow.