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.
- Source repo
- xai-org/grok-build
- Stars
- ★ 28k
- Last updated
- 2mo ago
- FARS reviewed
- Nov 08, 2026
- License
- Apache-2.0
- Primary language
- Rust
- FA score
- 46/100 · Major gaps
At a glance
- How it runs
- 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
- 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
- Source review
- 46/100 · Major gaps
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.
- Developers wanting interactive AI-assisted coding within a terminal, leveraging a full-screen TUI for context-aware code editing and command execution.
- CI/CD engineers integrating an AI coding agent into automated pipelines via headless mode.
- Editor users embedding grok inside their IDE through the Agent Client Protocol for inline assistance.
- Users needing to manage long-running tasks, such as background builds or tests, while monitoring progress in the TUI.
- 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
FAQ
How do I get started after installation?
Is network access required?
Is the agent compatible with OpenAI or Anthropic models?
Does it support headless mode?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.