SuperAPI AI Directory

grok-build

xAI's terminal-based AI coding agent, open-sourced and written in Rust. Runs as a full-screen, mouse-interactive TUI that understands your codebase, edits files, runs shell commands, searches the web, and manages long-running tasks. Supports interactive, headless (scripting/CI), and ACP editor-embed

Open website

About this tool

Purpose

Grok Build is a terminal AI coding agent launched by xAI (SpaceXAI), running in the terminal as a command-line tool and TUI (text user interface). It is aimed at developer scenarios that require letting AI understand a codebase, modify code, and execute tasks in a command-line environment, covering three usage forms: interactive development, script/CI automation, and editor embedding.

Main Capabilities

According to the official repository description, Grok Build has the following capabilities:

  • Understand the codebase;
  • Edit files;
  • Execute shell commands;
  • Search the web;
  • Manage long-running tasks.

In terms of runtime form, it is a full-screen, mouse-interactive, extensible TUI; it also supports headless mode for scripts and CI, as well as embedding into editors via the Agent Client Protocol (ACP).

Usage

Install the released binaries

The official precompiled binaries are provided for macOS, Linux, and Windows. The specific fixes, features, and improvements of each version can be found in the changelog.

Build from source

  • Rust: the toolchain is pinned by rust-toolchain.toml, and rustup will automatically install it on the first build.
  • DotSlash: required, used to let the hermetic tools under bin/ (especially bin/protoc) download and run. Install it and make sure dotslash is in PATH before building:
cargo install dotslash
# 或:预编译包 — https://dotslash-cli.com/docs/installation/
/usr/bin/env dotslash --help   # 健全性检查
  • protoc: proto code generation resolves bin/protoc through DotSlash, or falls back to protoc on PATH / $PROTOC.

Supported build hosts are macOS and Linux; Windows builds are best-effort and are currently not tested from this code tree.

The build artifact is named xai-grok-pager; the official installation distributes it under the name grok. On first launch, a browser will open for authentication; see the authentication guide for details.

Documentation

The complete online documentation is at docs.x.ai/build/overview. The user guide is distributed with the pager crate at crates/codegen/xai-grok-pager/docs/user-guide/, and includes: quick start, keyboard shortcuts, slash commands, configuration, themes, MCP servers, skills, plugins, hooks, headless mode, sandboxing, and more.

Repository Structure

The root Cargo.toml (workspace members, dependency versions, lints, profiles) is a generated file and should be treated as read-only; it is recommended to edit each crate's Cargo.toml. The repository contains the Rust source code for the grok CLI/TUI and its agent runtime, and is periodically synced from the SpaceXAI monorepo; the SOURCE_REV file in the root directory records the full commit SHA in the monorepo for the version corresponding to this code tree.

Applicable Scenarios

  • Interactively letting AI assist with codebase tasks in the terminal;
  • Automated invocation through headless mode in scripts or CI;
  • Embedding agent capabilities into editor workflows via ACP.

Limitations and Notes

  • External contributions are not accepted; see CONTRIBUTING.md for details.
  • The first-party code in this repository is licensed under the Apache License, Version 2.0 (see LICENSE); third-party and vendored code retains its original license, with related notices in THIRD-PARTY-NOTICES, crates/codegen/xai-grok-tools/THIRD_PARTY_NOTICES.md and third_party/NOTICE (including ports of the openai/codex and sst/opencode tool implementations).
  • Windows builds are currently best-effort and not tested from this code tree.
  • First launch requires browser authentication.

Information about pricing, billing, supported platform details, and actual results is not currently provided in the official materials.