grok-build

grok-build

MCP.Pizza Chef: xai-org

This tool runs as a full-screen program inside your terminal, the text-based command window developers use, and can read your project's files, make edits, run commands, and search the web for you, either in real time while you watch or unattended in the background for longer jobs. It can also be embedded inside code editors as a built-in AI helper and connected to outside tools and data sources for extra capability. You sign in once through your browser; actually installing and running it does require comfort working from the command line.

Coding
Web/Research

Use This MCP client To

Ask it to fix a bug in my code automatically Have it write a new feature from a plain description Let it search the web for answers while it codes Set it working on a task and check back later Use it inside my code editor as a built-in helper Ask it to explain what a confusing piece of code does

README

SpaceXAI logo
Grok Build (grok)

Grok Build is SpaceXAI's terminal-based AI coding agent. It runs as a full-screen TUI that understands your codebase, edits files, executes shell commands, searches the web, and manages long-running tasks — interactively, headlessly for scripting/CI, or embedded in editors via the Agent Client Protocol (ACP).

Installing the released binary · Building from source · Documentation · Repository layout · Development · Contributing · License

Grok Build TUI

Learn more about Grok Build at x.ai/cli

This repository contains the Rust source for the grok CLI/TUI and its agent runtime. It is synced periodically from the SpaceXAI monorepo.

A small SOURCE_REV file at the root records the full monorepo commit SHA for the version of the code present in this tree.


Installing the released binary

Prebuilt binaries are published for macOS, Linux, and Windows:

curl -fsSL https://x.ai/cli/install.sh | bash   # macOS / Linux / Git Bash
irm https://x.ai/cli/install.ps1 | iex          # Windows PowerShell
grok --version

See the changelog for the latest fixes, features, and improvements in each release.

Building from source

Requirements:

grok-build FAQ

Can I use this to fix bugs in my code automatically?
Yes — you describe the problem in plain English and it looks through your project's files, finds the likely cause, and makes the edit for you.
Do I need to know how to code to use this?
It's built for people comfortable working in a terminal, the text-based command window on a computer, and it works best if you're already familiar with programming, since it edits real code and runs real commands on your machine.
Which apps does this work with?
It runs on its own as a terminal program on Mac, Linux, and Windows, and it can also be embedded inside code editors that support the same connection standard used by other AI coding tools like Claude Code, GitHub Copilot, and Codex.
Do I need an account or an API key?
You sign in through your web browser the first time you open it; no separate key setup is needed just to log in.
How hard is it to set up?
Setup leans technical: you either download a ready-made program using a command-line install script, or build it yourself from source code, which requires developer tools like Rust and Cargo already installed on your computer.
Can it work without me watching it the whole time?
Yes — it can run tasks in the background or in an unattended mode, which is useful for scripted or automated jobs you don't want to babysit.
Can I connect it to my own outside tools and data?
Yes — it supports connecting to external tool and data sources, letting it pull in extra information or trigger actions beyond the files already in your project.