Back to directory

Developer Tools · AI Assisted Coding

Grok Build

Terminal coding agent for plans, tools, plugins, and automation

Grok Build is SpaceXAI's Rust-based terminal coding agent for interactive development, scripted automation, and editor integration through ACP. It targets developers and teams needing file editing, shell execution, code search, planning, and extensions in one CLI. The source uses Apache-2.0, while model access requires authentication through xAI or another configured endpoint. No hosted Grok Build subscription price is published.

Key facts

License
Apache-2.0
Main language
Rust, JavaScript, Kotlin
Maintainer
SpaceXAI
First released
2026
GitHub stars
27,492, October 2026
Hosted option
xAI API access is documented; Grok Build hosted pricing is not published

What Grok Build is

Grok Build is a terminal-based AI coding agent maintained by SpaceXAI in the xai-org GitHub repository. The repository was created in July 2026 and lists 27,492 stars, 5,195 forks, and one top contributor, grokkybara[bot], with 51 contributions. Its README describes a fullscreen terminal user interface and agent runtime rather than a conventional IDE. The tool can inspect a codebase, edit files, execute shell commands, search the web, and manage long-running tasks. Developers can use it interactively, call it headlessly from scripts or CI, or connect it to editors through the Agent Client Protocol. The project does not publish a separate Grok Build funding arrangement. SpaceXAI is identified as its maintainer and the organization behind the product.

How it works

A normal session starts in a project directory, where the user runs grok and authenticates through a browser or sets XAI_API_KEY for a non-browser environment. The agent can explain a repository, inspect files, search code, modify several files, execute builds and tests, and show diffs before changes are accepted. Plan mode blocks edits until the user approves a proposed approach, while questions collect decisions about frameworks, schemas, or design direction. Skills, plugins, hooks, MCP servers, AGENTS.md instructions, memory, subagents, and background tasks extend the workflow. Headless mode accepts prompts and can emit streaming JSON, allowing the same agent to run in automation. The TUI supplies status, prompts, plans, questions, output, and workspace interaction in one terminal window.

Architecture and recent releases

Grok Build is primarily a Rust workspace divided into crates for the terminal interface, agent runtime, tools, workspace access, configuration, MCP, sandboxing, and related components. The repository also contains JavaScript, Kotlin, PowerShell, Python, RenderScript, Rhai, Shell, and Swift files, together with vendored Mermaid code. Released binaries target macOS, Linux, and Windows, while source builds are supported on macOS and Linux. Rustup follows the pinned toolchain, and DotSlash supplies hermetic tools such as protoc. The local CLI calls a selected model, with custom model identifiers and endpoints configured in ~/.grok/config.toml. In 2026, the product pages identify Grok 4.7 as the newest model used with Grok Build. ACP provides an editor integration path.

License and pricing

The first-party source uses Apache License 2.0, which permits commercial use, modification, redistribution, and private operation subject to its license terms and notices. Third-party and vendored components keep their original licenses, including imported tool implementations and Mermaid-related code. Grok Build itself is installed as a released binary or compiled from source, while model usage requires authentication through xAI or another configured endpoint. The product pages do not publish a Grok Build subscription, enterprise tier, or fixed hosted price. xAI documents API access to Grok 4.7, but the published product pages do not state API pricing. Teams therefore need separate budgets for model calls, local compute, maintenance, and any integrations connected through MCP.

Limitations and how it compares

Grok Build depends on an authenticated model endpoint for its standard workflow, although the open-source announcement describes local inference configuration as possible. External contributions are not accepted, and Windows source builds are described as best-effort and untested from the repository. OpenAI Codex CLI is a similar terminal-first agent, while Grok Build documents a broader extension set including skills, plugins, hooks, MCP, plans, and subagents. Aider offers a smaller model-flexible command-line workflow, whereas Grok Build adds a fullscreen TUI and task orchestration. GitHub Copilot provides closer integration with established hosted developer services. Choose Grok Build for terminal-centered teams that want extensible agent workflows, local control of the CLI, and access to xAI models.

Main features

  • Interactive TUI. A fullscreen, mouse-interactive terminal interface presents prompts, status, plans, questions, output, and inline diffs during coding sessions.
  • Plan Approval. Plan mode proposes structured implementation steps and blocks edits until the user approves, comments on, or rewrites the plan.
  • Headless Automation. Headless commands accept prompts and streaming JSON output, allowing scripts, bots, and CI jobs to invoke the coding agent.
  • Extension System. Skills, plugins, marketplaces, hooks, MCP servers, and AGENTS.md files add reusable instructions, integrations, and project-specific behavior.
  • Parallel Subagents. Subagents can research, build, and review concurrently, with separate context windows and worktree support for larger tasks.
  • Repository Operations. Built-in tools inspect code, search files, edit multiple files, execute commands, manage checkpoints, and integrate with Git workflows.
  • Custom Models. Users can define model identifiers, base URLs, display names, and environment keys in the user-level Grok configuration file.
  • Sandboxing. The documented toolset includes sandboxed execution for running untrusted code and controlling command execution during agent tasks.

Self-hosting Grok Build

Grok Build runs as a local CLI rather than a server application. Users can install a prebuilt binary on macOS, Linux, or Windows, or build the Rust workspace with rustup and DotSlash; source builds use protoc through DotSlash or an existing PATH installation. The documentation does not require PostgreSQL, Redis, object storage, Helm, or Docker, and it publishes no minimum CPU, memory, or disk specification. Authentication normally opens a browser, while headless machines can use XAI_API_KEY. Preserve config.toml, project instructions, plugins, hooks, and MCP definitions before upgrades. The project publishes no formal backup or migration procedure, so teams should validate automation after each version change.

Strengths

  • Apache-2.0 permits commercial modification and private deployment.
  • One CLI supports interactive sessions, headless automation, and ACP editor integration.
  • Plan approval and inline diffs provide review before agent edits are applied.
  • Skills, plugins, hooks, MCP servers, and subagents support varied extension patterns.

Drawbacks

  • The standard workflow requires authentication to a model service.
  • The project publishes no fixed hosted subscription or API price on its product pages.
  • External contributions are not accepted, and Windows source builds are untested.

What teams replace with it

Teams usually evaluate Grok Build when they want to move off GitHub Copilot, Cursor, Sourcegraph Cody.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Grok Build

Frequently asked questions

Is Grok Build free to use?

The source code is available under Apache-2.0, allowing organizations to inspect, modify, build, and run the first-party code under that license. The normal agent workflow still requires authentication to a model endpoint, and the documentation identifies xAI API access for Grok models. Grok Build does not publish a fixed hosted subscription price in the product pages.

Can companies use Grok Build commercially?

Yes. The first-party code uses Apache-2.0, which allows commercial use, modification, redistribution, and private operation subject to license notices and conditions. Third-party and vendored components retain their own licenses, including imported tool implementations and Mermaid-related code. Companies should review repository notices before redistributing a modified bundle or embedding it in another commercial product.

How do I self-host Grok Build, and what does it require?

Install a released binary on macOS, Linux, or Windows, or compile the Rust workspace with rustup and DotSlash. Browser authentication is used on first launch, while API keys support non-browser environments. The project publishes no minimum hardware requirements and does not document PostgreSQL, Redis, object storage, Docker, or Helm as required services.

How does Grok Build compare with Aider?

Both tools provide terminal-based AI coding workflows and edit repositories through model-driven instructions. Grok Build adds a fullscreen TUI, approval-based plans, plugins, skills, hooks, MCP servers, subagents, sandboxing, and ACP integration. Aider is smaller and focused on conversational Git-assisted editing. Choose Grok Build for orchestration and extensions, or Aider for a leaner command-line workflow.

Does Grok Build protect private source code?

Grok Build runs its CLI and workspace operations locally, and its documentation includes sandboxed execution and configurable model endpoints. Standard use authenticates with xAI, so source context may be sent to the selected model service. The project does not publish a complete enterprise security specification, retention policy, audit-control matrix, or private hosted deployment guarantee on its product pages.

Similar projects to compare

Sources

Last updated 2026-10-22.