---
title: "xAI Open-Sources Grok Build, Its Rust-Powered Terminal Coding Agent"
subtitle: "xAI dropped the full Rust source for its terminal coding agent under Apache 2.0, exposing the agent loop, tools, and extension system."
url: "https://alphasignal.ai/news/xai-open-sources-grok-build-its-rust-powered-terminal-coding-agent"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "SpaceXAI"
company_url: "https://alphasignal.ai/company/spacexai"
published: "2026-08-19T19:55:39.000Z"
updated: "2026-08-22T02:47:17.251Z"
type: "Repo"
topics:
  - "Development"
  - "Open Source"
subtopics:
  - "Code Agents"
upvotes: 20
source_url: "https://github.com/xai-org/grok-build"
comments: 0
truncated: true
---

# 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.

xAI has open-sourced [Grok Build](https://github.com/xai-org/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 --release
```

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [xai-org/grok-build on GitHub](https://github.com/xai-org/grok-build)
- [SpaceXAI Open-Sources Grok Build](https://www.marktechpost.com/2026/07/15/spacexai-open-sources-grok-build-the-rust-agent-harness-tui-and-tool-layer-behind-its-coding-cli/)
- [Grok Build Review: xAI's Open-Source Coding Agent](https://andrew.ooo/posts/grok-build-xai-open-source-coding-agent-review/)
- [xAI Opens the Gates: Grok Build Goes Open Source](https://www.alphamatch.ai/blog/xai-grok-build-open-source-2026)
- [xAI laid bare the source code of Grok Build](https://news.aibase.com/news/29627)
