# What is Grok Build (the Grok CLI)?

Grok Build is xAI’s coding agent for the terminal, run with the grok command and free to try. Inside: install, first prompt, plan mode, MCP and what it costs.

Tool: Grok. By ColdIQ team. Updated 2026-11-26. Source: https://coldiq.com/university/grok/what-is-grok-build

## In short

- Grok Build is a coding agent for the terminal from SpaceXSI (xAI). You start it with the grok command in a project folder.
- It runs on macOS and Linux. On Windows, you use PowerShell, Git Bash or WSL.
- Grok Build is free to try. The Free plan includes limited Grok Build, and paid plans draw on one weekly usage pool shared with Grok and Cursor.
- Its default model is Grok 4.7. It supports plan mode, subagents, skills, hooks and MCP servers, and its source code is public on GitHub.
- Grok Build also names app building in the Grok chat, on the web and on mobile, where you describe an app and Grok builds a working version.

## Steps

1. Run the install command below in your terminal.
2. Open your project folder and type grok, then sign in.
3. Ask “Explain this repo.” to check that everything works.

## What is Grok Build?

Grok Build is xAI’s coding agent for the terminal (the text window where you type commands). People often call it the Grok CLI, for command-line interface. You describe a task in plain words, and it reads your files, runs commands and edits code, showing each step as it goes.

You can use it three ways: as an interactive app in the terminal, headless in scripts (with no one watching), or inside other apps through the Agent Client Protocol.

xAI released Grok Build in beta in May 2026 and published its source code on GitHub in July 2026, at github.com/xai-org/grok-build.


## How do you install Grok Build?

You need a terminal, a project folder and a SpaceXSI account (your Grok account works) or an xAI API key. Grok Build runs on macOS (Apple silicon or Intel) and Linux (x86_64 or arm64).

1. On Mac or Linux, paste the install command at the top of this page in your terminal. On Windows, paste the PowerShell version.
2. Open a new terminal window if the grok command is not found.
3. Go to your project folder, for example with cd my-project.
4. Type grok and press Enter. Your browser opens so you can sign in. Grok keeps you signed in after that.
5. Type “Explain this repo.” If you get a summary of the project, the setup works.

Tip: On a remote server with no browser, sign in with grok login --device-auth. It prints a short code that you enter on any device with a browser.


## How do you work with Grok Build day to day?

Point Grok at a file with @, such as “@src/main.rs Walk me through this file.” Grok reads only what it needs and shows each step.

For anything larger than a small fix, start in plan mode. Grok writes a plan, and no file can be edited until you approve it. You can comment on single steps or rewrite the plan. Enter it with /plan or by pressing Shift+Tab.

Shift+Tab also switches the permission mode. Ask mode asks before each risky action. Auto mode approves safe actions on its own. Always-approve skips the prompts, which is only for work you fully trust.

- /plan: plan first, edit after your approval.
- /model: switch the model.
- /usage: see your credit usage or manage billing.
- /resume: go back to a previous session.
- /imagine and /imagine-video: create an image or a video from a text description.
- /import-claude: bring in your Claude Code settings.


## How do you connect tools to Grok Build?

Grok Build can use MCP servers (Model Context Protocol, a standard way to plug a tool into an AI agent). Once added, their tools sit next to Grok’s built-in ones.

For a remote server, one command is enough, and Grok handles the sign-in in your browser. For example, to plug in ColdIQ and find leads with verified emails and phone numbers from 40+ data providers, run grok mcp add --transport http coldiq https://mcp.coldiq.com/mcp. ColdIQ gives up to 1,450 free credits as you get started.

Grok Build also reads MCP setups you already have for Claude Code and Cursor. Run grok mcp list to see what is configured, and grok mcp doctor when a server does not connect.

Tip: Add a server with --scope project to save it in the project folder, so everyone who opens the repo gets the same tools.


## How much does Grok Build cost?

Grok Build is free to try. As of November 2026, the Free plan includes limited Grok Build, and every paid plan of The X Subscription includes it: Plus at $8 a month, Premium at $30, Super at $100 and Ultra at $200.

On paid plans, Grok Build draws from the same weekly usage pool as Grok chat, Imagine and Cursor. A long coding task uses far more of it than a chat message.

Grok 4.7 Fast, the same model on faster servers, costs 2 times the standard rates and is not part of Grok Build’s free tier. In scripts and CI (automated builds), you can also run Grok Build with an API key, billed at API rates.


## What is Grok Build on the web and on mobile?

xAI uses the same name for app building inside the Grok chat. You describe an app, a game, a website or a dashboard, and Grok builds a working version live in the chat, on the web, iOS and Android.

Since August 2026 it is available on every plan. You can publish an app to its own address on grok.me, choose who can open it, use your own domain, or export the project to GitHub and keep going in the terminal version.

For a sales or marketing team, this is the quick way to make a small internal tool: a lead score calculator, a pricing page mock-up or a live dashboard fed by a connector.


## Command

```
curl -fsSL https://x.ai/cli/install.sh | bash
```

## What to say

> Read the CSV of leads in this folder. Remove duplicates by email, flag rows with no company domain, and save a clean copy as leads-clean.csv. Show me the plan before you change anything.

## Sources

- [Grok Build: get started](https://docs.x.ai/build/overview)
- [Modes and commands](https://docs.x.ai/build/modes-and-commands)
- [MCP servers in Grok Build](https://docs.x.ai/build/features/mcp-servers)
- [Grok Build](https://x.ai/build)
- [Grok Build is now open source](https://x.ai/news/grok-build-open-source)
- [Grok Build on web and mobile](https://x.ai/news/grok-build-for-everyone)
- [SpaceXSI pricing](https://x.ai/pricing)

## Questions

**Is Grok Build free?** It is free to try. The Free plan includes limited Grok Build; paid plans from $8 a month give more usage, as of November 2026.

**Does Grok Build work on Windows?** Yes, through PowerShell, Git Bash or WSL. Install it with the PowerShell command on this page.

**Is Grok Build open source?** Yes. xAI published the source of the agent and its terminal app on GitHub in July 2026, at github.com/xai-org/grok-build.

**How do I update Grok Build?** Run grok update. It updates both the interactive and the headless versions.


## Related

- [Grok models explained: Grok 3, Grok 4, 4.5, 4.6 and 4.7](https://coldiq.com/university/grok/grok-models)

## Try ColdIQ free

ColdIQ gives new accounts up to 1,450 free credits as they get started, no credit card required.
One subscription covers 40+ B2B data providers for finding, enriching and verifying
contacts and companies, through the web app, the API or the MCP server for AI agents.

1. Create an account: https://coldiq.com/marketplace/sign-up?utm_source=ai-assistant&utm_medium=markdown&utm_content=university
2. Run a first search on your own market with the free credits.
3. Connect the MCP server to Claude, ChatGPT or Cursor: https://coldiq.com/mcp
