| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .. | ||
| bin | ||
| scripts | ||
| package.json | ||
| README.md | ||
Grok
Bring Grok into your terminal. Fast, flicker-free CLI built for plans, subagents, and parallel work.
Install
curl -fsSL https://x.ai/cli/install.sh | bash
Or install with npm:
npm i -g @xai-official/grok
Get Started
# Launch the interactive TUI
grok
# Run a single task
grok -p "Explain this codebase"
On first launch, Grok opens your browser to authenticate. For CI or headless environments, use an API key from console.x.ai:
export XAI_API_KEY="xai-..."
Update
grok update
Or if installed via npm:
npm i -g @xai-official/grok@latest
Supported Platforms
| Platform | Architecture |
|---|---|
| macOS | Apple Silicon (arm64) |
| Linux | x86_64, arm64 |
| Windows | x86_64 |
Documentation
For full documentation including configuration, MCP servers, custom models, headless mode, agent mode, and more, visit docs.x.ai/build/overview.
Feedback
Run /feedback inside Grok to report issues or send feedback directly.