Studio guide (HTML)
Brain · Grok CLI
Readable in the browser. Use Print / Save PDF for a PDF copy. Source.md stays on PC for editing only.
The Brain Grok CLI on Studio admin
PURPOSE: Use local Grok Build CLI from Studio without leaving the desk.
WHERE: Studio admin → rail The Brain (or Home tile).
UPDATED: 2026-07-30
In code: public/js/brain.js, lib/brain.js, /api/owner/brain/* headers say MANUAL: docs/BRAIN-GROK-CLI.md
What it is
| Tool | Scope |
|---|---|
| The Brain (admin) | Whole-stack Grok CLI tools can edit files / run commands on this PC when auto-approve is on |
| Grok in Site Builder | Page/copy assistant inside cms.html only |
Studio owner session required.
Setup
- Install Grok Build CLI (
grokin%USERPROFILE%\.grok\bin\or set path). - Optional:
data/secrets.local.json→grokAssistant.enabled/cliPathsee CONFIG-GUIDE.md. - Restart portal.
- Open Studio → The Brain status should show CLI available.
Daily use
- Sign into Studio.
- Open The Brain.
- Leave Auto-approve tools checked only when you trust the request (edits this PC).
- Type a task (e.g. “check booking on 8090”, “fix KJ mobile header”).
- Ctrl+Enter or Send to Brain.
- Long runs can take minutes wait for the busy line to clear.
Safety
- Only you (Studio) should open this panel.
- Auto-approve = real file/command tools. Uncheck for chat-only caution.
- Not for brand owners or clients.
If status is down
- CLI not installed or not on PATH
- Wrong
grokAssistant.cliPath - Portal not restarted after secrets change
- Not signed in as Studio owner
See also: ARCHITECTURE.md · START-HERE-STUDIO.md