>_cli-install
Gr

Install Grok CLI

xAI's agentic coding CLI, powered by Grok

Grok Build CLI is xAI's terminal coding agent powered by Grok. It plans, edits, and runs code from the command line.

Install on macOS
curl -fsSL https://x.ai/cli/install.sh | bash
Install on Windows
irm https://x.ai/cli/install.ps1 | iex
Install on Linux
curl -fsSL https://x.ai/cli/install.sh | bash
Run it
grok
Verify the install
grok --version

Before you start

Grok Build is in beta — availability and commands can change. Only the installer at x.ai/cli is official; beware similarly-named third-party npm packages.

Official documentation: xAI Grok Build docs

Frequently asked questions

Which Grok CLI is official?

Only the installer served from x.ai/cli is from xAI. Several lookalike npm packages (grok-cli variants) are community projects and are not affiliated with xAI.

Is it stable?

Grok Build is in beta; check docs.x.ai/build for current access and commands.

Do I need an xAI account?

Yes — you authenticate with xAI on first run.

Grok and xAI are trademarks of X.AI Corp. cli-install.com is an independent resource and is not affiliated with or endorsed by the trademark owner.