Grok Build: What It Is, What It Costs, and How to Start
Install Grok Build, sign in, and ask your first question about a project. See the commands for macOS, Linux, WSL, and Windows and the model it uses.
Published

Grok Build is SpaceXSI’s terminal coding agent. Open it in a project folder and ask Explain this repo. to see which files it reads and where the program starts. As of November 27, 2026, Grok 4.7 powers the agent.
Think of the project folder as the workbench. If you ask where a website handles sign-ups, Grok can look through that website’s files, point to the handler, and walk you through it. It can also edit files and run shell commands. For a first session, pick a repository you know well enough to recognize the answer.
Start the Grok Build CLI in your project
You need a terminal, a project folder, and either a SpaceXSI account or an API key. The CLI (command-line interface) installs a command called grok. Run it from the folder you want the agent to work in.
Grok Build install commands
On macOS, Linux, or WSL, run this in your terminal:
curl -fsSL https://x.ai/cli/install.sh | bashOn Windows in PowerShell, use:
irm https://x.ai/cli/install.ps1 | iexEither installer downloads the stable release and adds grok to your shell’s command search path. Suppose your repository is in a folder called your-project. From its parent directory, run the following, substituting your folder’s name. If your terminal is already open in the repository, just run the second line.
cd your-project
grokIf the shell can’t find grok, open a new terminal and return to the project folder. The sign-in route depends on where the command runs. After sign-in, an ordinary interactive launch opens the full-screen text interface (TUI).
- On your computer, the first launch opens a browser. Sign in there, then return to the terminal. Grok remembers the session.
- On a remote machine, run
grok login --device-authfrom the shell and follow the device-code instructions. Then startgrokin the project. - In a script or CI job, supply your API key as the
XAI_API_KEYenvironment variable through the job’s secret settings. If you need a key, see how to get a Grok API key.
The first question in the Grok Build docs
Type Explain this repo. at the Grok prompt. In the maker’s walkthrough, Grok reads the README, explores the project, and identifies src/main.rs as the file that handles command-line arguments. Your project will have its own entry point. Seeing a file you recognize is a better setup check than getting a plausible explanation of the language.
Follow up with @src/main.rs Walk me through this file., substituting a path from your answer. The @ points the agent at a particular file. When you want a newer release of the CLI, run grok update back in the shell. The same update covers interactive and scripted use.
When to use a script or a compatible editor
Use the interactive terminal when your next question depends on the last answer. For a repeatable job, such as producing an architecture summary for each project you maintain, pass the question with -p. This is headless mode. A script supplies the prompt without opening the full-screen interface.
grok -p "Explain this codebase"If another program needs to consume the output as it arrives, the documented form is grok -p "Explain the architecture" --output-format streaming-json. If you want to stay inside a compatible editor instead, the Agent Client Protocol (ACP) lets that app act as the interface to Grok Build.

For a change that spans files, enter /plan before describing the work. In Plan mode the agent can edit its session plan, while edits to project files wait for approval. You can cycle modes with Shift+Tab. If several sessions are running, the Agent Dashboard shows which need input. Modes and commands
Add a skill when you keep typing the same project instructions, such as how to review a change before release. A plugin can distribute skills and other extensions together. A Model Context Protocol (MCP) server makes external tools available to the agent, for example when the issue you want it to read lives in Linear. ACP connects the app you work in to Grok. MCP connects Grok to tools it can use. Skills and plugins · MCP server configuration
Which model powers Grok Build?
Grok 4.7 powers the coding agent as of November 27, 2026. The similarly named grok-build-0.1 was an earlier model identifier. That distinction matters if you’re following an old setup guide.
The terminal agent entered beta on May 14, 2026. The coding model grok-build-0.1 entered early access on May 19, 2026, and reached end of life on November 19, 2026, when the API stopped serving it. You can still start the agent with grok. If you maintain a program that sends requests to the retired identifier, check the model named in that program. Developer release notes · Grok 4.7 and 4.6 compared

Is Grok Build open source?
The maker publishes the command-line client and its agent runtime. The repository’s first-party code uses the Apache License, Version 2.0, and third-party components retain their own licenses. That covers the software you run on your machine. Access to the hosted model is a separate question. Source repository and license
Questions about Grok Build
What exactly is Grok build?
It’s a coding agent that works in a project folder. Choose the Grok chat app for a general conversation. Choose Grok Bot for a teammate that works across apps on a cloud computer, for example to coordinate your calendar.
Can Grok build a website?
It can work on a website’s code. A useful first task is to ask it to trace a form from the page to the handler, then propose the change you want. Review the changed files and test the form before publishing.
Is grok Build still free?
The Free plan lists limited agent requests. Plus explicitly includes Build. Inside an interactive session, use /usage to check your credit usage.
What does Grok cost to use?
For the coding agent, see the Plus price above. If you sign in with an API key, your API usage is billed separately.
Can I build an AI for free?
Writing an agent and paying for the model it calls are separate decisions. You can inspect Grok Build’s source before choosing how to pay for hosted model calls.
Who has built Grok?
The original Grok announcement came from the xAI team. The current documentation names the maker of Grok Build as SpaceXSI.
Why did Elon name it Grok?
The word means to understand something deeply and intuitively. The original announcement describes the assistant’s inspiration without attributing a personal naming decision to Elon Musk.
Why is grok rude?
The original assistant was designed to answer with wit and a rebellious tone. For a coding session, you can ask for a specific deliverable, such as a list of files with a sentence explaining each. Original Grok announcement
Is grok Build worth it?
Try it if the question you keep asking is about files in an existing project. If you only want a syntax explanation or help wording a message, opening a repository adds little.
Grok Build vs Claude Code for your next project
Try the same repository question in each agent and check whether you can follow its answer to the right file. For a closer look at the workflow differences, read the comparison with Claude Code and Codex.
If you’re choosing what to use across your projects, compare the best AI coding assistants.
- Published
- Category
- Build








