Grok Build Keyboard Shortcuts
Keyboard shortcuts, session modes, and slash commands for Grok Build — xAI's terminal coding agent — on MacWindowsLinux.
Starting & Session Modes
| Action | Shortcut |
|---|---|
| Start Grok Build in the current project | grokgrokgrok |
| Send your prompt | EnterEnterEnter |
| Cycle session modes (Code → Plan → Ask) | ShiftTabShiftTabShiftTab |
| Start in Plan mode (read-only planning, no edits) | grok --mode plangrok --mode plangrok --mode plan |
| Start in Ask mode (answers questions, no edits) | grok --mode askgrok --mode askgrok --mode ask |
| View the current session plan | /plan/plan/plan |
| Toggle always-approve (skip tool permission prompts) | /always-approve/always-approve/always-approve |
| Run headless with a prompt (scripting / CI) | grok -p "…"grok -p "…"grok -p "…" |
| Select a model in headless mode | grok -m <model>grok -m <model>grok -m <model> |
Session Management
| Action | Shortcut |
|---|---|
| Show all available commands | /help/help/help |
| Start a new session | /new/new/new |
| Resume a previous session | /resume/resume/resume |
| Browse and select past sessions | /sessions/sessions/sessions |
| Fork the current session | /fork/fork/fork |
| Rename the current session | /rename <title>/rename <title>/rename <title> |
| Show session information | /session-info/session-info/session-info |
| Return to the welcome screen | /home/home/home |
| Exit Grok Build | /quit/quit/quit |
Context & Model
| Action | Shortcut |
|---|---|
| Check current context usage | /context/context/context |
| Show token and credit usage | /usage/usage/usage |
| Compact conversation history to free up context | /compact/compact/compact |
| Switch the active model | /model <name>/model <name>/model <name> |
| Switch the color theme | /theme/theme/theme |
| Toggle a denser UI layout | /compact-mode/compact-mode/compact-mode |
| Toggle multiline input | /multiline/multiline/multiline |
Planning & Navigation
| Action | Shortcut |
|---|---|
| Cycle to Plan mode | ShiftTabShiftTabShiftTab |
| View the working plan | /plan/plan/plan |
| Return to an earlier point in the conversation | /rewind/rewind/rewind |
| Ask a side question without interrupting the task | /btw <question>/btw <question>/btw <question> |
Memory & Extensions
| Action | Shortcut |
|---|---|
| Search and edit persistent memory | /memory/memory/memory |
| Save conversation memory immediately | /flush/flush/flush |
| Trigger offline memory consolidation | /dream/dream/dream |
| Open the hooks modal | /hooks/hooks/hooks |
| Open the plugins modal | /plugins/plugins/plugins |
| Open the skills modal | /skills/skills/skills |
| Show connected MCP servers | /mcps/mcps/mcps |
| Inspect discovered config (skills, hooks, MCP) | grok inspectgrok inspectgrok inspect |
Images & Sharing
| Action | Shortcut |
|---|---|
| Generate an image from a text prompt | /imagine <prompt>/imagine <prompt>/imagine <prompt> |
| Generate a video from a text prompt | /imagine-video <prompt>/imagine-video <prompt>/imagine-video <prompt> |
| Share the current session via URL | /share/share/share |
| Submit feedback about the session | /feedback/feedback/feedback |
No shortcuts found. Try a different search term.
Frequently Asked Questions
What is Grok Build?
Grok Build is xAI's official terminal coding agent — a command-line / TUI tool (powered by the grok-build-0.1 model) that reads, writes, and runs code in your project from the terminal. It's xAI's counterpart to Claude Code and the Gemini CLI. It is distinct from the Grok chat assistant: Grok chat is the web and app conversational interface (see the Grok shortcuts page), while Grok Build runs in your terminal for agentic coding.
How do I enter Plan mode in Grok Build?
Press Shift+Tab to cycle through Grok Build's session modes — Code, Plan, and Ask. In Plan mode, Grok Build analyzes your codebase and drafts an implementation plan without editing files (write tools are blocked except the session plan file), so you can review the approach before any changes happen. You can also launch straight into it with grok --mode plan, and view the current plan any time with /plan.
What are the slash commands in Grok Build?
Grok Build is primarily driven by slash commands typed into the prompt. Type /help to list them all. Common ones include /new, /resume and /sessions for session management; /compact, /context and /usage for managing the context window; /model to switch models; /memory for persistent memory; and /plan, /rewind and /always-approve for planning and navigation. There are also /imagine and /imagine-video for media generation.
Is Grok Build the same as the Grok chat app?
No. The Grok chat app is xAI's conversational assistant on the web, X, and mobile — that's covered on the Grok keyboard shortcuts page. Grok Build is a separate terminal-based coding agent for developers, with its own modes and slash commands. If you searched for 'grok build cli' or 'grok build tui' shortcuts, this page is the right one.
How do I switch models in Grok Build?
Type /model followed by the model name inside a session to switch the active model. In headless or scripted mode, pass the model on the command line with grok -m <model>. You can check your current token and credit usage at any time with /usage.
Is Grok Build the same as the open-source grok-cli?
No — they share a category but are different projects. Grok Build is xAI's official, first-party terminal agent (documented at docs.x.ai/build). There is also a separate community open-source project named grok-cli (by superagent-ai) that wraps the Grok API. This page documents xAI's official Grok Build. Keybindings and commands in the community grok-cli may differ.