grok.com
The Musketeer
Grok SuperGrok web UI
grok-web
the-musketeer
Blocks until Copy capture
xAI's API meters credits. SuperGrok already pays for an unmetered web-UI entitlement — Expert and Heavy included — that no official CLI fully exposes.
Attaches to the family Chrome, opens a fresh grok.com tab by default (--follow-up attaches to an existing chat tab), types the prompt, waits for streaming to finish, then captures Grok's own Copy button via navigator.clipboard.writeText. Returns verbatim formatting, not a scraped DOM dump.
The installer symlinks the bridge as grok. When the official Grok Build CLI owns the grok command, run the bridge as grok-web — same script, alias name.
Commands
Capture a reply
grok-web "give me a 3-line haiku about persistent browser cookies"
Expert mode, long wait
GROK_MODE=Expert GROK_WAIT_CEILING_S=240 grok-web "architecture review of this design"
Continue an existing chat
grok-web --follow-up "now stress-test assumption two"
Limits
- Default opens a fresh chat tab per call, isolated from manual chats. --follow-up continues an existing grok.com/c/ tab, preferring the active one.
- Default wait ceiling is 90s. Raise GROK_WAIT_CEILING_S for Expert or Heavy.
- Selectors are Grok-UI-specific and will need updates after a redesign.
- Do not retry on timeout from an orchestrator — SuperGrok rate limits punish re-submits.
Flags and env
- GROK_MODE=Auto|Fast|Expert|Heavy
- GROK_WAIT_CEILING_S
- --follow-up (-f)