This is a source mirror. This Hugging Face repository is not a model checkpoint β it's a read-only mirror of the xai-org/grok-build GitHub repository, xAI's coding agent harness and TUI. It is hosted here for visibility on the Hub; the canonical repository, issue tracker, and pull requests all live on GitHub. Please file issues and contribute there, not here.
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).
See the changelog for the latest fixes,
features, and improvements in each release.
Building from source
Requirements:
Rust β the toolchain is pinned by rust-toolchain.toml;
rustup installs it automatically on first build.
DotSlash β required so hermetic tools under
bin/ (notably bin/protoc) can download and run.
Install it and ensure dotslash is on your PATHbefore building:
protoc β proto codegen resolves bin/protoc via DotSlash,
or falls back to a protoc on PATH / $PROTOC.
macOS and Linux are supported build hosts; Windows builds are best-effort
and not currently tested from this tree.
cargo run -p xai-grok-pager-bin # build + launch the TUI
cargo build -p xai-grok-pager-bin --release # release binary: target/release/xai-grok-pager
cargo check -p xai-grok-pager-bin # fast validation
The binary artifact is named xai-grok-pager; official installs ship it as
grok. On first launch it opens your browser to authenticate β see the
authentication guide.
The user guide ships with the pager crate:
crates/codegen/xai-grok-pager/docs/user-guide/
β getting started, keyboard shortcuts, slash commands, configuration, theming,
MCP servers, skills, plugins, hooks, headless mode, sandboxing, and more.
Repository layout
Path
Contents
crates/codegen/xai-grok-pager-bin
Composition-root package; builds the xai-grok-pager binary