All apps/Grok Build

Grok Build

grok

xAI's coding agent for the terminal.

Runs as grok|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 14 fields

Start the Grok Build TUI with an initial prompt, or run a single headless prompt. Sub-commands (login, mcp, plugin, sessions ...), resume/worktree options and rule lists are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui grok
Run GrokExample values, fixed in this page — nothing here reaches a terminal
Basic
Initial prompt
string
Model
string
Continue most recent session
--continue
Working directory
directory
Permission mode
6 choicesenum
TasksEach one presets the form for one job
Interactive session
promptmodelcwdcontinuepermission_mode
One-shot headless prompt
singlemodelcwdoutput_formatmax_turnspermission_mode
ParametersOnly these flags are editable in the form
Initial prompt
Opens the interactive session with this prompt.
string · positional 0
Single-turn prompt (headless)
Print the response to stdout and exit instead of opening the TUI.
string
--single-p
Prompt from file (headless)
path
--prompt-file
Model
string
--model-m
Continue most recent session
boolean
--continue-c
Working directory
path
--cwd
Output format (headless)
enum
--output-formatplainjsonstreaming-jsonstreaming-messages-json
Permission mode
enum
--permission-modedefaultacceptEditsautodontAskbypassPermissionsplan
Auto-approve all tool executions
boolean
--always-approve
Maximum agent turns
integer
--max-turns
Reasoning effort
string
--reasoning-effort--effort
Extra rules
Appended to the system prompt.
string
--rules
Run inline (no alternate screen)
boolean
--no-alt-screen
Disable web search
boolean
--disable-web-search
SourcesEvery flag above is checked against these
help
Usage: grok [OPTIONS] [PROMPT] [COMMAND] [PROMPT] Initial prompt for the interactive session, e.g. `grok "fix the bug"` or `grok --worktree=feat "create this feature"` --always-approve Auto-approve all tool executions -c, --continue Continue the most recent session for the current working directory --cwd <CWD>…
helpgrok --help (local install) 2026-10-27

Before it fills your prompt, Otty checks the installed grok against its version. A form that does not match your version is not offered.