Grok
Install, authenticate, and resume xAI's Grok CLI inside Daintree, including its inline default and the --fullscreen alt-screen flag.
Grok
Grok Build is a terminal coding agent, invoked as grok. It runs as a process in its own Daintree terminal panel with full PTY emulation, like every other built-in agent.
| Command | grok |
|---|---|
| Shortcut | None by default; assign one in Keyboard Shortcuts |
| Color | Near-white (#E8E8E8) |
| Bundled context estimate | 200,000 tokens (the checked-in estimate; the installed model may differ) |
| Default rendering | Inline, via --no-alt-screen |
| Permission bypass | --always-approve (per agent or preset only) |
| Resume | grok --resume <session-id>, falling back to grok --continue |
| Platforms | macOS, Windows, Linux |
Install & Authenticate
See Grok Build's current setup instructions for installation and sign-in.
curl -fsSL https://x.ai/cli/install.sh | bashirm https://x.ai/cli/install.ps1 | iexcurl -fsSL https://x.ai/cli/install.sh | bashRun grok once and it opens a browser to sign you in; grok login --device-auth does the same on a machine without a browser. For headless or CI use, set XAI_API_KEY instead. Daintree shows Grok as ready when it finds ~/.grok/auth.json or XAI_API_KEY.
The installer places the launcher at ~/.local/bin/grok on macOS and Linux, and Daintree probes that path directly so a script install is detected even when the Electron process inherits a PATH that misses it.
grok update yourself when you want a newer build (--alpha or --stable switches channel).How Daintree Launches It
Grok is one of the three agents that launch inline by default. Its TUI would otherwise take the alternate screen buffer and grab the mouse; Daintree passes --no-alt-screen so output flows into its own scrollback and stays selectable with the native selection layer. Because Grok then draws in the normal buffer, Daintree's terminal padding takes on Grok's own background color when every edge cell is painted, instead of framing it in the theme color.
Choosing alt-screen (globally, per agent, or per preset) does not merely drop the inline flag: Daintree passes --fullscreen, which asks for the full-screen presentation. Grok goes inline on its own whenever its settings or terminal detection say so (its docs note it runs inline under Zellij and tmux control mode), so omitting a flag was not enough to make the choice stick; both directions now carry an explicit flag.
Grok's bypass flag is --always-approve (Grok also accepts --yolo). Daintree injects it when you turn bypass on for the agent or a preset; the global Skip permission prompts switch passes Grok over, because the agent does not declare bypass support. Daintree does not hand Grok its MCP servers at launch.
--fullscreen covers the chrome, not the buffer. If Grok's terminal settings (alt_screen under [terminal]) keep it off the alternate screen, Grok stays inline even when you pick alt-screen in Daintree; change that setting if you want the alternate buffer. Older Grok builds may not accept --fullscreen at all.Interrupting a turn
Grok cancels a running turn with Ctrl+C, not Escape; a double Escape only prints a reminder while the turn keeps running. Press Ctrl+C in the pane to stop it. Fleet's interrupt sends a double Escape to every armed agent, so it doesn't stop a Grok turn, and an MCP client's terminal.interrupt refuses a Grok pane by name rather than report a keystroke Grok ignores.
State detection
Daintree hasn't calibrated patterns for Grok's working output yet, so it reads Grok's state with the broad patterns shared across agents plus the common approval-prompt cues. Expect working and waiting to be less precise than for agents with their own patterns.
Scrolling
Grok's TUI tracks the mouse, which is the case that used to make trackpad scrolling stutter and, once a pane latched into the low-power resource profile, stay slow. Daintree's scroll handling was retuned for mouse-tracking TUIs like Grok, lazygit, and btop: sub-line trackpad motion is preserved, and each wheel notch advances a sensible number of lines.
Resuming Sessions
Daintree captures Grok's session ID and resumes with grok --resume <session-id>. Quit cleanly with /quit. The pattern Daintree uses to read that ID out of Grok's exit output is still provisional, so capture can miss; the fallback is grok --continue, which reopens the latest session for the launch directory. For the same reason the move-or-rename preview marks a Grok conversation unverified rather than claiming it survives. For the resume mechanics across all agents, see Session Resume.
grok isn't detected after install, confirm it's on your PATH (command -v grok on macOS/Linux, where.exe grok on Windows), then restart Daintree. See Agent Availability for the five detection states, and Presets for launch configurations.Integration reference
This guide describes Daintree's checked-in integration. Its agent definition records the launch command, install guidance, authentication probes, rendering capabilities, and resume support. Authentication badges report local evidence; the CLI still owns sign-in and provider access. After changing an installation, use Re-check in Settings > CLI agents; restart Daintree if its inherited PATH has changed.