xAI Open-Sources Grok Build, Its Rust-Powered Terminal Coding Agent
xAI dropped the full Rust source for its terminal coding agent under Apache 2.0, exposing the agent loop, tools, and extension system.
PRO- xAI open-sourced Grok Build, its Rust coding agent CLI and TUI, under Apache 2.0.
- Ships the agent loop, tool layer, terminal UI, and extension system for skills, plugins, hooks, and MCP.
- Runs interactively, headlessly for CI, or embedded in editors via the Agent Client Protocol.
- Powered by Grok 4.5 with native subagent view, Plan Mode, and a mouse-driven fullscreen interface.
- External contributions are not accepted; the tree is a periodic sync from an internal xAI monorepo.
- Editing tools include in-tree ports of openai/codex and sst/opencode implementations, disclosed in third-party notices.
xAI has open-sourced Grok Build, the Rust code behind the grok command line coding agent. The release lands under Apache 2.0, and the repository ships the full agent harness, the terminal UI, and the tool layer that the official CLI runs on top of.
Grok Build is xAI's terminal-based AI coding agent, a full-screen TUI that reads your codebase, edits files, executes shell commands, searches the web, and manages long-running tasks. If you have used Claude Code, Codex CLI, or OpenCode, the shape is familiar, though this is the first-party version from xAI, powered by Grok 4.5.
Three ways to drive it
The harness exposes the same runtime through three entry points, which matters if you want to move from experimentation to automation without rewriting glue code. An interactive TUI covers day-to-day use, a headless mode handles scripting and CI, and editors can embed the agent through the Agent Client Protocol (ACP).
Getting it running is a one-liner if you just want the binary, or a cargo build if you want to inspect what actually ships:
curl -fsSL https://x.ai/cli/install.sh | bash # macOS / Linux
irm https://x.ai/cli/install.ps1 | iex # Windows PowerShell
grok --version
# Or from source
cargo build -p xai-grok-pager-bin --releaseThis story is for Pro members
You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.