grok-build-upstream-mirror/crates/codegen/xai-grok-pager/npm/grok
Repository files (latest commit first)
Filename Latest commit message Latest commit date
grokkybara[bot] c68e39f604 Publish harness and TUI open-source
initial sync from the monorepo
2026-07-16 06:46:02 +01:00
..
bin Publish harness and TUI open-source 2026-07-16 06:46:02 +01:00
scripts Publish harness and TUI open-source 2026-07-16 06:46:02 +01:00
package.json Publish harness and TUI open-source 2026-07-16 06:46:02 +01:00
README.md Publish harness and TUI open-source 2026-07-16 06:46:02 +01:00

Grok

Bring Grok into your terminal. Fast, flicker-free CLI built for plans, subagents, and parallel work.

Homepage | Documentation

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.