{"slug": "grok-build", "title": "Grok Build", "summary": "SpaceXAI released Grok Build, an open-source terminal-based AI coding agent that edits files, executes shell commands, and manages tasks. The Rust-based tool supports macOS, Linux, and Windows, and is available via prebuilt binaries or source compilation.", "body_md": "**Grok Build** is SpaceXAI's terminal-based AI coding agent. It runs as a\nfull-screen TUI that understands your codebase, edits files, executes shell\ncommands, searches the web, and manages long-running tasks — interactively,\nheadlessly for scripting/CI, or embedded in editors via the Agent Client\nProtocol (ACP).\n\n[Installing the released binary](#installing-the-released-binary) ·\n[Building from source](#building-from-source) ·\n[Documentation](#documentation) ·\n[Repository layout](#repository-layout) ·\n[Development](#development) ·\n[Contributing](#contributing) ·\n[License](#license)\n\n**Learn more about Grok Build at x.ai/cli**\n\nThis repository contains the Rust source for the `grok`\n\nCLI/TUI and its agent\nruntime. It is synced periodically from the SpaceXAI monorepo.\n\nPrebuilt binaries are published for macOS, Linux, and Windows:\n\n```\ncurl -fsSL https://x.ai/cli/install.sh | bash   # macOS / Linux / Git Bash\nirm https://x.ai/cli/install.ps1 | iex          # Windows PowerShell\ngrok --version\n```\n\nSee the [changelog](https://x.ai/build/changelog) for the latest fixes,\nfeatures, and improvements in each release.\n\nRequirements:\n\n**Rust**— the toolchain is pinned by;`rust-toolchain.toml`\n\n`rustup`\n\ninstalls it automatically on first build.**protoc**— proto codegen resolves(a`bin/protoc`\n\n[dotslash](https://dotslash-cli.com)launcher) or falls back to a`protoc`\n\non`PATH`\n\n/`$PROTOC`\n\n.- macOS and Linux are supported build hosts; Windows builds are best-effort and not currently tested from this tree.\n\n```\ncargo run -p xai-grok-pager-bin              # build + launch the TUI\ncargo build -p xai-grok-pager-bin --release  # release binary: target/release/xai-grok-pager\ncargo check -p xai-grok-pager-bin            # fast validation\n```\n\nThe binary artifact is named `xai-grok-pager`\n\n; official installs ship it as\n`grok`\n\n. On first launch it opens your browser to authenticate — see the\n[authentication guide](/xai-org/grok-build/blob/main/crates/codegen/xai-grok-pager/docs/user-guide/02-authentication.md).\n\nFull online documentation is available at\n[docs.x.ai/build/overview](https://docs.x.ai/build/overview).\n\nThe user guide ships with the pager crate:\n[ crates/codegen/xai-grok-pager/docs/user-guide/](/xai-org/grok-build/blob/main/crates/codegen/xai-grok-pager/docs/user-guide)\n— getting started, keyboard shortcuts, slash commands, configuration, theming,\nMCP servers, skills, plugins, hooks, headless mode, sandboxing, and more.\n\n| Path | Contents |\n|---|---|\n`crates/codegen/xai-grok-pager-bin` |\nComposition-root package; builds the `xai-grok-pager` binary |\n`crates/codegen/xai-grok-pager` |\nThe TUI: scrollback, prompt, modals, rendering |\n`crates/codegen/xai-grok-shell` |\nAgent runtime + leader/stdio/headless entry points |\n`crates/codegen/xai-grok-tools` |\nTool implementations (terminal, file edit, search, ...) |\n`crates/codegen/xai-grok-workspace` |\nHost filesystem, VCS, execution, checkpoints |\n`crates/codegen/...` |\nThe rest of the CLI crate closure (config, MCP, markdown, sandbox, ...) |\n`crates/common/` , `crates/build/` , `prod/mc/` |\nSmall shared leaf crates pulled in by the closure |\n`third_party/` |\nVendored upstream source (Mermaid diagram stack) — see below |\n\nImportant\n\nThe root `Cargo.toml`\n\n(workspace members, dependency versions, lints,\nprofiles) is **generated** — treat it as read-only. Prefer editing per-crate\n`Cargo.toml`\n\nfiles.\n\n```\ncargo check -p <crate>        # always target specific crates; full-workspace builds are slow\ncargo test -p xai-grok-config # per-crate tests\ncargo clippy -p <crate>       # lint config: clippy.toml at the repo root\ncargo fmt --all               # rustfmt.toml at the repo root\n```\n\nNote\n\nExternal contributions are not accepted. See [ CONTRIBUTING.md](/xai-org/grok-build/blob/main/CONTRIBUTING.md).\n\nFirst-party code in this repository is licensed under the **Apache License,\nVersion 2.0** — see [ LICENSE](/xai-org/grok-build/blob/main/LICENSE).\n\nThird-party and vendored code remains under its original licenses. See:\n\n— crates.io / git dependencies, bundled UI themes, and`THIRD-PARTY-NOTICES`\n\n**in-tree source ports**(including openai/codex and sst/opencode tool implementations)— crate-local notice for the codex and opencode ports (license texts + Apache §4(b) change notice)`crates/codegen/xai-grok-tools/THIRD_PARTY_NOTICES.md`\n\n— vendored Mermaid-stack index`third_party/NOTICE`", "url": "https://wpnews.pro/news/grok-build", "canonical_source": "https://github.com/xai-org/grok-build", "published_at": "2026-07-15 20:24:58+00:00", "updated_at": "2026-07-15 21:11:52.502517+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "artificial-intelligence"], "entities": ["SpaceXAI", "Grok Build", "Rust"], "alternates": {"html": "https://wpnews.pro/news/grok-build", "markdown": "https://wpnews.pro/news/grok-build.md", "text": "https://wpnews.pro/news/grok-build.txt", "jsonld": "https://wpnews.pro/news/grok-build.jsonld"}}