A CLI-first open-source AI coding agent runtime that works with any model via MCP tools, interactively, piped, as a daemon, or over WebSocket/ACP.
xai-org/grok-build
Grok Build is a terminal AI coding agent from SpaceXAI with a full-screen TUI that edits files, runs shell commands and searches the web.
Open-source alternative to:Claude Code
- Stars
- 27,477
- Forks
- 5,196
- Open issues
- 0
- Last commit
- 22 days ago
What is it?
Grok Build, invoked as `grok`, is a terminal-based AI coding agent. It runs as a full-screen, mouse-interactive TUI that can understand a codebase, edit files, execute shell commands, search the web and manage long-running tasks. It can also run headlessly for scripting and CI, or be embedded in editors through the Agent Client Protocol (ACP).
The repository holds the Rust source for the CLI/TUI and its agent runtime, organized as a Cargo workspace. Crates cover the TUI rendering, the agent shell with leader, stdio and headless entry points, tool implementations such as terminal, file edit and search, and workspace handling for filesystem, VCS, execution and checkpoints. Prebuilt binaries are published for macOS, Linux and Windows, and the code can be built from source with Cargo after installing DotSlash for the bundled protoc.
External contributions are not accepted. First-party code is Apache-2.0, and vendored third-party code keeps its original licenses.
Key features
- 01Full-screen, mouse-interactive terminal UI for chatting with the agent.
- 02Edits files, runs shell commands and searches the web from within the session.
- 03Headless mode for scripting and CI pipelines.
- 04Embeds in editors via the Agent Client Protocol (ACP).
- 05Supports MCP servers, skills, plugins and hooks, per its user guide.
- 06Prebuilt binaries for macOS, Linux and Windows.
Use cases
- Delegating multi-file code changes to an AI agent from the terminal.
- Running a coding agent non-interactively inside CI or scripts.
- Plugging an AI coding agent into an ACP-compatible editor.
Quick start
- 1
Run the official install script for your OS from the README
- 2
Check that the grok command is installed
grok --version - 3
Start the TUI; it opens your browser to authenticate on first launch
grok
Things to know
- External contributions are not accepted, so pull requests from outside the team will not be merged.
- Building from source requires the DotSlash tool, and Windows builds are untested and best-effort.
- The codebase is synced periodically from a private monorepo, so this public tree may lag behind the latest development.
Topics
FAQ
- What is grok-build?
- Grok Build is a terminal AI coding agent from SpaceXAI with a full-screen TUI that edits files, runs shell commands and searches the web. Grok Build, invoked as `grok`, is a terminal-based AI coding agent. It runs as a full-screen, mouse-interactive TUI that can understand a codebase, edit files, execute shell commands, search the web and manage long-running tasks. It can also run headlessly for scripting and CI, or be embedded in editors through the Agent Client Protocol (ACP).
- Is grok-build free to use? What license does it have?
- grok-build is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is grok-build still maintained?
- Actively maintained. The last commit to grok-build was on Sep 29, 2026.
- What can I use grok-build for?
- Delegating multi-file code changes to an AI agent from the terminal. Running a coding agent non-interactively inside CI or scripts. Plugging an AI coding agent into an ACP-compatible editor.
- How do I install grok-build?
- Run the official install script for your OS from the README Check that the grok command is installed: grok --version Start the TUI; it opens your browser to authenticate on first launch: grok
- Where can I get grok-build?
- The source code and installation instructions are on GitHub: https://github.com/xai-org/grok-build
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A lightweight coding agent from OpenAI that runs locally in your terminal to help you write and work on code.
Open-source Rust coding agent for the terminal that edits files, runs commands and works with 40+ model providers, including local models.
An open-source coding agent that reads your project, edits files and runs tests from your terminal, desktop, browser or editor.
An open-source AI coding agent that runs in your terminal, with companion desktop, web, editor, and chat interfaces.
A terminal-based AI coding agent in Rust that works with many LLM providers, offering a TUI, one-shot CLI, and ZSH plugin modes.