Grok Build (grok CLI)

SpaceXAI's terminal-based AI coding agent, running as a full-screen TUI to understand codebases, edit files, run commands, and manage long-running tasks.

Stars
★ 28k
Last updated
2mo ago
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
Rust

At a glance

How it runs
CLI
Works with
Platform-specific
Cost
Free software; you pay for model usage
OS / editors
macOS · Linux · Windows per README
Setup effort
Medium · a few setup steps
You'll need
RustDotSlashprotocShell / CLINetwork accessLocal filesystemMCP Server
Typical use
Developers wanting interactive AI-assisted coding within a terminal, leveraging a full-screen TUI for context-aware code editing and command execution.
Not a fit if
  • Developers who want to contribute code or fork it
  • Production users needing tested Windows support
Maintenance
Commits in the last 6 monthslast commit 2026-09-29+30.0 ★/day over 7 days

What does this agent do, and when should you use it?

Grok Build is SpaceXAI's terminal-based AI coding agent, operating as a full-screen TUI that understands your codebase, edits files, executes shell commands, searches the web, and manages long-running tasks. It supports interactive use, headless operation for scripting and CI, and embedding in editors via the Agent Client Protocol (ACP). The repository contains the Rust source for the grok CLI/TUI and its agent runtime, synced periodically from the SpaceXAI monorepo. The binary artifact is named xai-grok-pager, shipped as grok. On first launch, it opens a browser for authentication. Licensed under Apache-2.0, external contributions are not accepted.

Grok Build provides a full-screen TUI with scrollback, prompt, modals, and rendering. Its agent runtime (xai-grok-shell) offers leader, stdio, and headless entry points. The tools layer (xai-grok-tools) implements terminal, file edit, search, and other capabilities. The workspace layer (xai-grok-workspace) handles host filesystem, VCS, execution, and checkpoints. It can edit files, run commands, search the web, and embed in editors via ACP. Headless mode enables scripting and CI integration. It supports extension via MCP servers, and includes skills, plugins, and hooks. Sandboxing is also available.

  1. Developers wanting interactive AI-assisted coding within a terminal, leveraging a full-screen TUI for context-aware code editing and command execution.
  2. CI/CD engineers integrating an AI coding agent into automated pipelines via headless mode.
  3. Editor users embedding grok inside their IDE through the Agent Client Protocol for inline assistance.
  4. Users needing to manage long-running tasks, such as background builds or tests, while monitoring progress in the TUI.
  5. Users who want to extend the agent's capabilities with custom MCP servers, skills, or plugins.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Config files
rust-toolchain.toml
Install notes cover
Windows · macOS · Linux

How do you install or deploy this agent?

Install prebuilt binary: curl -fsSL https://x.ai/cli/install.sh | bash (macOS/Linux/Git Bash) or irm https://x.ai/cli/install.ps1 | iex (Windows PowerShell). For source build, require Rust (pinned by rust-toolchain.toml), DotSlash (cargo install dotslash), and protoc. Run cargo run -p xai-grok-pager-bin to launch TUI.

How do you use this agent?

After installation, run the grok command in your terminal. First launch opens a browser for authentication. The CLI supports an interactive TUI, and headless mode for scripting. Full documentation at docs.x.ai/build/overview and the user guide in-crate at crates/codegen/xai-grok-pager/docs/user-guide/.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • Full-screen TUI offers an immersive coding experience with mouse interaction and extensible layouts.
  • Multiple execution modes: interactive, headless for scripts, and ACP embedding.
  • Rich toolset including terminal, file edit, search, and web search.
  • Extension via MCP, plus skills, plugins, and hooks.
  • Rust-based for performance, with prebuilt binaries provided.
Limitations
  • Tied to SpaceXAI ecosystem, potentially requiring X AI account for authentication.
  • External contributions not accepted, limiting community involvement and custom modifications.
  • Source synced from monorepo, may lag behind internal versions.
  • Build dependencies include DotSlash and protoc, adding setup complexity.
  • Windows builds are best-effort and not fully tested.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Grok Build (grok CLI) This agent 46 · Major gaps CLIFree + model costs ★ 28k 2mo ago Rust —
nca Native AI Coding CLI 59 · Major gaps CLIFree + model costs ★ 211 today Rust OpenAI API · Claude API
Open Interpreter 72 · Some gaps CLIFree + model costs ★ 69k today Rust Codex
Codync 74 · Some gaps Desktop appFree ★ 2.6k 2d ago Rust ChatGPT · Codex · Claude Code · Claude.ai

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
46/ 100 5-point scale 2.3 / 5
Trust 11/29
Reliability 5/14
Adaptability 9/18
Convention 11/18
Effectiveness 6/13
Verifiability 4/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

The README says the agent can edit files, run shell commands, search the web, and operate headlessly with MCP, plugins, and hooks. These capabilities have a broad impact, but the sample does not show permission defaults, command confirmation rules, data flows, credential protections, dependency audits, or rollback implementation, so those criteria receive 1. The README and LICENSE point to third-party notices and vendored sources, giving source attribution some support (2), though the sample lacks item-by-item provenance detail.

Reliability5 / 14 · 1.8/5

The README's install and build instructions broadly align with the repository layout and Cargo workspace. The PTY scenario files also show concrete UI regression assertions, supporting a 2 for self-consistency. Builds require DotSlash to download hermetic tools, and first launch requires browser authentication, so dependency availability has external conditions (1). The sample does not show how the agent reports tool or service failures to users, so failure messages score 0.

Adaptability9 / 18 · 2.5/5

The README identifies interactive terminal use, headless scripting/CI, and ACP editor integration, and lists guide coverage for configuration, MCP, skills, and plugins, supporting a 2 for audiences and scenarios. Although sandboxing and feature entry points are listed, the sample does not show concrete capability boundaries or trigger rules, so those criteria score 1. macOS and Linux are supported, while Windows builds are described as best-effort and untested from this tree; environment fit is explained clearly enough for 2.

Convention11 / 18 · 3.1/5

The README gives a clear repository layout and build/development instructions. It includes command examples, a user-guide entry point, and a stated Windows build limitation, supporting 2 for information architecture, install notes, examples, and known limitations. The README and LICENSE identify Apache-2.0 and explain that third-party code retains its own licenses and notices, warranting 3 for licensing. The README links to an online changelog but the sample contains no actual release history; the repository is described as periodically synced from a monorepo without a clear maintainer or update commitment, so versioning and maintenance responsibility score 1.

Effectiveness6 / 13 · 2.3/5

The product description combines code understanding, file editing, shell access, web search, and long-running task management across multiple modes, giving it a clear stated marginal value (2). The sample has no assessable agent-task output example or directly reusable result format, so output usability scores 1. The Rust build chain, DotSlash requirement, and authentication add user costs, so cost-benefit scores 1.

Verifiability4 / 8 · 2.5/5

Some README claims about features, layout, and build steps are echoed by workspace structure and scenario files, but the sample omits the main Agent runtime implementation and many features are stated only in the README; claim traceability and cross-source corroboration therefore score 1. The README distinguishes supported platforms from untested Windows builds and identifies third-party license scope, showing some separation of fact and limitation (2); this static sample cannot verify more implementation claims.

Risks and how to mitigate them
  • The sample does not include core Agent runtime or permission implementation. In particular, inspect the actual policies for shell access, file changes, network access, credentials, and sandboxing.
  • The install instructions download and execute scripts through curl or PowerShell, and first launch opens a browser for authentication; users should verify the release source and the scope of credentials required.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 2bdd1d6a6369
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/grok-build.svg)](https://followagents.com/en/agents/grok-build)
<a href="https://followagents.com/en/agents/grok-build"><img src="https://followagents.com/badge/grok-build.svg" alt="FARS review"></a>

FAQ

How do I get started after installation?
Run the grok command. On first launch, it will open your browser for authentication, then you can use the TUI interactively.
Is network access required?
Yes, initial authentication requires network, and the agent may need network for web search or external tool calls.
Is the agent compatible with OpenAI or Anthropic models?
The repository does not specify model providers; as a SpaceXAI product, it likely relies on their proprietary models.
Does it support headless mode?
Yes, headless mode is documented and can be used for scripting and CI.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts