Welcome to Grok Code Documentation

Build with Grok Code, the terminal-first AI coding agent powered by xAI. Multi-agent systems, governed review, and real research workflows.

Core Concepts

LanesWork, Gate, Research, Recall, Control — top-level TUI surfaces
SessionsSaved runs with branches for export, replay, and resume
ArtifactsStaged change bundles reviewed in Gate before landing
CheckpointsRollback snapshots of changed files in git repos
ProfilesRouting presets: Balanced, Research fast, Research deep

Ready to start?

Install Grok Code with a single command.

$curl -fsSL https://grok.chaitanya.science/install.sh | sh