AI products and toolsReviewed · xAI

Grok Build (xAI coding agent)

Grok Build is a command-line coding agent from xAI for developers who want an AI assistant in the terminal, in scripts or inside other apps, and its main catch is that the overview page does not state pricing, licence or permission controls. It runs as a fullscreen interactive terminal UI (started with the grok command), headlessly with grok -p, or through the Agent Client Protocol, and it can be pointed at custom models through a config.toml file.

Researched 13 Nov 2026

In short.

Grok Build is a coding agent from xAI for developers who want an AI assistant in the terminal, in scripts or in other apps, and its main catch is that the overview page does not state pricing, licence, data handling or permission controls. According to the page, it runs as a fullscreen interactive terminal UI, headlessly through grok -p for scripts and bots, or through the Agent Client Protocol (ACP). It authenticates through a browser or an XAI_API_KEY environment variable, and it accepts custom models through ~/.grok/config.toml. The same page shows how to call xAI's grok-4.7 model directly through the API. This report rests on that single documentation page. Nothing was installed or run.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected documentation page at [https://docs.x.ai/build/overview.md]. Linked pages are excluded: status line, skills, plugins and marketplaces, modes and commands, headless and scripting, enterprise deployments, Grok Bot, the grok-4.7 model page, and the install scripts. No licence, pricing, privacy or terms notice was part of the captured page. Nothing was installed, run or tested, so behaviour, performance and safety controls of the tool are not assessed.

The overview

What this resource is

Grok Build is described on the xAI documentation page as a powerful and extensible coding agent. The page sits under Getting Started in the Build section of docs.x.ai. It is a product overview page, not a tutorial or a reference manual.

The page names three ways to use it: an interactive terminal user interface (TUI) that is mouse-interactive and fullscreen, headless use in scripts or bots, and the Agent Client Protocol (ACP) for use inside other applications. The command-line program is called grok. The page gives no version number, release date or author list beyond the xAI documentation host.

Overall assessment

On the evidence of this page, Grok Build is a real, installable developer tool with a clear set of entry points: an interactive session, a scripting mode and an editor or app integration protocol. The page is concise and practical, with copyable commands. It is a good starting point for someone evaluating whether to try the tool.

The page is an overview. It does not establish pricing, licence terms, source availability, what the agent is allowed to do on your machine by default, how file edits or shell commands are approved, or how your code is handled by the service. Those matter for a coding agent that reads a repository, and a reader should check them elsewhere before relying on the tool for private or work code. Nothing here was tested, so no claim is made about how well it performs.

Who it is for

The page targets software developers who work in a terminal or who want to wire an AI coding agent into scripts, automations or other apps. The example prompts, Explain this repo and @src/main.rs Walk me through this file, point to repository exploration and code explanation as the first tasks.

Beginners can follow the install and first-session steps, though they need to be comfortable opening a terminal and running a shell command. Experienced developers will find the headless mode, streaming JSON output, custom model configuration, ACP support and direct API examples most relevant. Enterprise teams are pointed to an Enterprise Deployments page, which was not part of the reviewed scope, so its contents are unknown.

What it can do

Stated capabilities on the page: an interactive TUI session started with grok inside a project directory. File references in prompts with an @ prefix, such as @src/main.rs. Headless runs with grok -p followed by a prompt. A streaming-json output format for the headless mode. Use through ACP in other apps. Support for any custom model that is added to the user-level config file, with a model switch through the -m flag or the /model command in the TUI. A grok inspect command that reports what Grok discovered in the current directory: config sources, instructions, skills, plugins, hooks and MCP servers.

The Features list names a Status Line (live session context in a row at the bottom of the TUI), Skills, Plugins and Marketplaces, and Modes and Commands. The page only names these and links to them, so their detail is not covered here. The page also mentions Grok Bot, described as AI teammates on a cloud computer, as a separate next step. Its behaviour is not described on this page.

The page does not list which programming languages are supported, what editing or command-execution tools the agent has, or any benchmark results.

Using it

Requirements

Stated requirements are limited. You need a shell that can run the install command: curl with bash on macOS or Linux, or PowerShell on Windows. You need a way to authenticate: a browser for the first-launch sign-in, or an xAI API key (format shown as xai-...) in the XAI_API_KEY environment variable for non-browser environments.

To use a custom model you need a model ID, a base URL and an environment variable holding that provider's key. The page does not state supported operating system versions, CPU architectures, minimum hardware, network requirements, whether an account or paid plan is needed for browser sign-in, or what the install script needs beyond curl or PowerShell. These are unknown from the evidence.

How it works

The page describes the surface of the tool more than its internals. A single grok program offers an interactive TUI, a headless mode driven by -p and an ACP mode. It reads configuration from a user-level file, ~/.grok/config.toml (or %USERPROFILE%\.grok\config.toml on Windows). grok inspect lists what it finds in the current directory, which suggests project-level instructions, skills, plugins, hooks and MCP servers are discovered from the working directory, though the page does not explain where those files live or how they are loaded.

For custom models, each entry in config.toml is a table named [model.<id>] with the keys model, base_url, name and env_key, and a [models] table sets the default. The base_url pattern and the OpenAI SDK example (an OpenAI client pointed at [https://api.x.ai/v1] using the responses API) suggest the tool talks to HTTP model endpoints with a /v1 style API. The page does not say which protocol a custom model must implement, so compatibility with a given provider is unconfirmed.

The page does not describe the agent loop, tool set, context handling, sandboxing or approval flow.

Setup

On macOS or Linux, the page's install command uses curl -fsSL to download the script at [https://x.ai/cli/install.sh] and pipes it into bash. On Windows, the PowerShell command uses irm to download the script at [https://x.ai/cli/install.ps1] and pipes it into iex. Both run the downloaded script immediately. Careful users may prefer to download and read the script before running it. That script was not retrieved or reviewed here, so what it installs and where it puts files is unknown.

To start, change into a project directory and run grok. On first launch it opens a browser to authenticate. Where there is no browser, set XAI_API_KEY and run grok. For scripting, run grok -p with a prompt, optionally with --output-format streaming-json.

For a custom model, add a [model.my-model] table to ~/.grok/config.toml with model, base_url, name and env_key, set [models] default to that name, run grok inspect to confirm what was discovered, then select the model with grok -p "Hello" -m my-model or /model my-model in the TUI.

Worked example

This example follows the page's own commands and was not run. Install with the curl and bash command on macOS or Linux, or with the PowerShell command on Windows, as described under Setup. Then cd into a project and run grok. After browser sign-in, type Explain this repo. to get an overview, or @src/main.rs Walk me through this file. to focus on one file.

For a script, the page shows grok -p "Explain the architecture" --output-format streaming-json. The page names this output format but does not show its schema or how the output is framed, so how another program should parse it is unknown.

To use grok-4.7 outside the tool, the page shows the same prompt in four forms: a JavaScript example that imports xai from @ai-sdk/xai and generateText from ai and calls xai.responses('grok-4.7'); the OpenAI Python SDK with base_url set to [https://api.x.ai/v1] and client.responses.create; a curl request to [https://api.x.ai/v1/responses] with an Authorization Bearer header carrying $XAI_API_KEY and a JSON body naming the model and input; and the xai_sdk Python client. The sample prompt asks the model to fix a median function that sorts without a comparator and indexes at a.length/2.

Assessment & evidence

Limitations and risks

Evidence limits: this is a short overview page. It does not cover the permission model, sandboxing, how the agent edits files or runs commands, telemetry, error behaviour, performance, supported languages or known issues. All of those are not assessed.

Practical risks to weigh: the install method pipes a remote script into a shell, which requires trust in the host and is worth inspecting first. A coding agent that reads and changes a repository can make wrong or unwanted edits, and the page does not say what guards exist. Using an API key puts a secret in your environment, so keep it out of shared shells and logs. The overview shows a configurable model endpoint but does not specify which prompts, files or code context are transmitted or retained.

The page describes grok-4.7 as SpaceXSI's latest model. This is a vendor claim on the page, with no benchmark or independent comparison, and it was not checked.

Reasoning behind this report

Grok Build's three documented entry points suit different uses. The fullscreen, mouse-interactive TUI fits hands-on work inside a project directory, such as asking for an explanation of the repository or a walk-through of a file referenced with @. Headless mode, grok -p with an optional streaming-json output format, is what the page recommends for scripts, automations and integration into other apps. ACP is offered for using the agent from inside other applications, though the page does not show how to set it up. Custom-model entries in config.toml, selected with -m or /model, let the same tool be pointed at a model the user has configured.

The install steps, flags and config keys are the vendor's documented usage and have not been confirmed by running them. The claim that Grok supports any custom model is the vendor's wording. The config example shows only a model ID, a base URL, a display name and an environment-variable key, so compatibility with a given provider is not established.

On this evidence the tool is worth considering for developers who want a terminal coding agent that can also be scripted or embedded in other apps. The missing information on cost, licence, data handling and approval or safety controls is the main reason to read further before adopting it.

Alternatives

The overview names no alternative products and provides no comparison with other coding agents, so no comparison is made here. When you evaluate other tools, the features this page emphasises are useful points to compare: an interactive fullscreen TUI, a headless mode through grok -p with a streaming-json output format, ACP support for use inside other apps, bring-your-own-model configuration through config.toml, direct API access to grok-4.7, and the grok inspect command for seeing discovered config sources, instructions, skills, plugins, hooks and MCP servers.

Evidence base

The sole source is xAI's Grok Build overview page at [https://docs.x.ai/build/overview.md], captured on 13 November 2026. It documents the install commands, authentication by browser or XAI_API_KEY, the grok and grok -p commands, the streaming-json output option, custom-model entries in ~/.grok/config.toml, grok inspect, the -m flag and /model command, a Features list, and four code examples for calling grok-4.7 on the xAI API.

Much of the tool's behaviour is undocumented on this page: what the install scripts do, how ACP is set up, which tools the agent has and whether it asks before editing files or running commands, sandboxing, which code and prompts are sent to xAI or a custom endpoint and whether they are retained, the streaming-json schema, the protocol a custom endpoint must implement, supported platforms, pricing and licence. The linked feature, scripting, enterprise and Grok Bot pages are outside this evidence, and no behaviour was observed by running the tool.

Access & freshness

Costs

The page states no prices, plan names, usage limits or free tier for Grok Build or for the grok-4.7 API. Cost is unknown from this evidence. The page shows an XAI_API_KEY as an authentication option for non-browser environments but does not state how usage through that key is charged. It also shows custom models configured with their own base_url and env_key, but it establishes neither charges nor billing arrangements for those endpoints, so those costs and billing terms are unknown. Whether browser sign-in requires a paid subscription is also not stated.

Rights and licence

The page contains no licence text, no statement on whether the client is open source, and no terms on use of generated output. Redistribution, modification and commercial-use rights are therefore unknown from this evidence. Data handling, such as what code or prompts are sent to xAI and whether they are retained or used for training, is not described on the page either. Check xAI's terms and privacy documentation before using it on proprietary code.

Freshness

The page was captured on 13 November 2026. It shows no version number, publication date or changelog for the tool. The only currency signal is its reference to grok-4.7 as the latest model, which can go stale as xAI releases new models and updates the CLI. Command names, flags and config keys may change, so check the live documentation before relying on them.

Suggested next steps

Before installing, read the install script at [https://x.ai/cli/install.sh] (or the PowerShell equivalent at [https://x.ai/cli/install.ps1]), and find xAI's pricing, terms and data-handling documentation. If you go ahead, try it first on a non-sensitive repository with an API key. Run grok inspect to see what configuration it picks up. Check whether approval controls exist and how they work. Then try a headless run such as grok -p with --output-format streaming-json to see whether the output suits your automation.

If you want a custom model, start with one entry in ~/.grok/config.toml and confirm with grok inspect and a short grok -p "Hello" -m my-model run. To go deeper, read the linked Headless and Scripting, Skills, Plugins and Marketplaces, Modes and Commands and Enterprise pages. They were outside what this report covers.

Evidence for this report

selected-page.txtselected · checked 2026-11-13