SpaceXAI's coding agent harness and TUI.
READMEGitHub의 xai-org/grok-build
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).
Installing the released binary · Building from source · Documentation · Repository layout · Development · Contributing · License
Learn more about Grok Build at x.ai/cli
This repository contains the Rust source for the grok CLI/TUI and its agent
runtime. It is synced periodically from the SpaceXAI monorepo.
A small SOURCE_REV file at the root records the full monorepo commit SHA
for the version of the code present in this tree.
Prebuilt binaries are published for macOS, Linux, and Windows:
curl -fsSL https://x.ai/cli/install.sh | bash # macOS / Linux / Git Bash
irm https://x.ai/cli/install.ps1 | iex # Windows PowerShell
grok --version
See the changelog for the latest fixes, features, and improvements in each release.
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 PATH before building:
cargo install dotslash
# or: prebuilt packages — https://dotslash-cli.com/docs/installation/
/usr/bin/env dotslash --help # sanity check
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.
Full online documentation is available at docs.x.ai/build/overview.
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.
| Path | Contents |
|---|---|
crates/codegen/xai-grok-pager-bin | Composition-root package; builds the xai-grok-pager binary |
crates/codegen/xai-grok-pager | The TUI: scrollback, prompt, modals, rendering |
crates/codegen/xai-grok-shell | Agent runtime + leader/stdio/headless entry points |
crates/codegen/xai-grok-tools | Tool implementations (terminal, file edit, search, ...) |
crates/codegen/xai-grok-workspace | Host filesystem, VCS, execution, checkpoints |
crates/codegen/... | The rest of the CLI crate closure (config, MCP, markdown, sandbox, ...) |
crates/common/, crates/build/, prod/mc/ | Small shared leaf crates pulled in by the closure |
third_party/ | Vendored upstream source (Mermaid diagram stack) — see below |
Important The root
Cargo.toml(workspace members, dependency versions, lints, profiles) is generated — treat it as read-only. Prefer editing per-crateCargo.tomlfiles.
cargo check -p <crate> # always target specific crates; full-workspace builds are slow
cargo test -p xai-grok-config # per-crate tests
cargo clippy -p <crate> # lint config: clippy.toml at the repo root
cargo fmt --all # rustfmt.toml at the repo root
Note External contributions are not accepted. See
CONTRIBUTING.md.
First-party code in this repository is licensed under the Apache License,
Version 2.0 — see LICENSE.
Third-party and vendored code remains under its original licenses. See:
THIRD-PARTY-NOTICES — crates.io / git dependencies,
bundled UI themes, and in-tree source ports (including openai/codex and
sst/opencode tool implementations)crates/codegen/xai-grok-tools/THIRD_PARTY_NOTICES.md
— crate-local notice for the codex and opencode ports (license texts +
Apache §4(b) change notice)third_party/NOTICE — vendored Mermaid-stack indexFast-rising (created 2026)
GitHub에서 마지막으로 가져온 시각: 22분 전
GitHub 수치는 하루에 몇 번씩 갱신돼요.
일별 스타 수가 쌓이면 차트가 채워져요.
여기에 등록된 오픈소스 Claude Code, Cursor, GitHub Copilot 대안을 모두 나란히 놓고 비교해 보세요. 열을 클릭하면 정렬돼요.
DeepSeek Harness | 28.9만 | – | MIT | 그저께 | – |
|---|---|---|---|---|---|
Hermes Agent | 26.7만 | – | MIT | 25분 전 | – |
OpenCode | 23만 | – | MIT | 3시간 전 | – |
Claw Code | 19.5만 | – | MIT | 어제 | – |
Codex CLI | 13.7만 | – | Apache-2.0 | 33분 전 | – |
Pi | 12.5만 | – | MIT | 1시간 전 | – |
Gemini CLI | 10.9만 | – | Apache-2.0 | 1시간 전 | – |
OpenHands | 9.5만 | – | MIT | 1시간 전 | – |
T3 Code | 8.5만 | +1만 | MIT | 6시간 전 | – |
Cline | 7.2만 | – | Apache-2.0 | 12시간 전 | – |
MetaGPT | 7.2만 | – | MIT | 10개월 전 | – |
Open Interpreter | 6.9만 | – | Apache-2.0 | 어제 | – |
아직 댓글이 없어요. 첫 댓글을 남겨 보세요.
자랑해 보세요. 내 순위와 평점을 보여 주는 실시간 카드로, 알아서 업데이트돼요.
작은 배지가 더 좋다면 다음을 추가하세요: ?style=flat