Run xAI's Grok Build CLI in T3 Code using your xAI subscription or XAI_API_KEY.
- Install the Grok Build CLI (
@xai-official/grok) on the machine running your T3 Code server. - Authenticate on that machine:
- Run
grok login(orgrok login --device-authon a headless/remote host), or - Set
XAI_API_KEYin the Grok instance's Environment settings.
- Run
- Open Settings → Providers, enable Grok Build, and refresh. Set Binary path if
grokisn't on the server'sPATH.
- Multiple accounts: Use a separate
GROK_HOMEenvironment variable per provider instance to isolate logins and usage. - Updates: In-app updates follow your install method (standalone script, Homebrew, mise, or Nix—update Nix and pinned installs via their package manager).
- Models & options: Discovers models and reasoning effort levels from Grok Build. Add unlisted models under Custom models.
- Permission modes: Supports Supervised, Auto (Grok reviews routine actions and forwards remaining approvals to you), and Full access. Auto-accept edits is not supported (runs as Supervised). File approvals offer session-wide allow; command approvals are per-request.
- Skills: Grok skills appear in the composer's
$menu. - Usage & limits: Subscription limits under Usage → Limits require
grok login(notXAI_API_KEYor custom endpoints). Usage totals only include turns with saved completed-turn records. - Not supported: Conversation rewind (Edit from here) and the Plan interaction mode toggle.
- Provider check timeouts: Startup checks in large directories can take 9–14 seconds. If discovery times out, set
T3CODE_GROK_PROBE_TIMEOUT_MS=60000in the server's environment and restart (Provider check timeouts).