Cheat sheet

One screen

Cheat sheet

Slash commands, keyboard modes, install lines, and video mode pickers — the desk reference.

Install

Windows PowerShell
irm https://x.ai/cli/install.ps1 | iex
grok --version
cd your-project
grok
macOS / Linux / WSL
curl -fsSL https://x.ai/cli/install.sh | bash
grok --version
Headless / CI
export GROK_CODE_XAI_API_KEY="xai-..."
grok -p "fix failing tests only; stop when green" --no-auto-update

Slash commands & CLI utilities

CommandUse it for
/helpBuilt-in guide (model-driven — costs context)
/plan [task]Architecture doc → approve / comment / quit
/design …Visual system + UI craft (skill)
/imagine [prompt]Inline image in TUI
/imagine-videoInline video when available
/model …Switch model routing
/always-approveSkip prompts; deny rules and hooks still apply
/autoClassifier auto-approval
/workflowLaunch, pause, stop. Bare /workflow lists runs
/deep-researchBackground research
/goalGoal planner
/effortReasoning effort
/memory /dream /flush /rememberCross-session memory (GA)
/themeTUI theme, including auto
/rewindRestore an earlier turn
/loop [interval] …Recurring agent job. Stops itself after 7 days unless you renew it
/btw …Side-channel Q&A without derailing task
/feedbackReport bugs / reactions
/marketplaceSkills & plugins catalog
/skillifyCapture workflow as reusable skill
/plugin /mcpsPlugins and MCP servers
/import-claudeImport Claude Code settings
! / !cmdShell mode from empty prompt
@path/to/fileAttach file into prompt
grok inspectLoaded skills, hooks, MCP, AGENTS.md + cost
grok -p "…"Headless one-shot
grok wrap ssh …Fix remote clipboard (OSC 52)
grok worktree …list | show | rm | gc parallel trees
grok agent stdioACP for IDE orchestration

Browser and Bot, in one screen

WantDo this
Mail + calendar every weekdaygrok.com/automations — schedule, @ the connectors
React when a certain email landsEmail-trigger Automation (SuperGrok)
Click a site that has no APIGrok Bot computer use, or Teach a task
Repeat that click-pathSave a skill, test it, then a routine on one Bot
Team shares one coworkerTeam Bot (Teams / Enterprise): shared context, private chats
Edit the repoGrok Build CLI, not a Bot

Keyboard (TUI + this manual)

KeysAction
Shift+TabCycle Normal / Plan / Auto-approve
Ctrl+OFlip always-approve (same family as /yolo)
Esc Esc (~800ms)Clear draft / rewind picker
⌘K / Ctrl+KSearch this manual

Video mode picker

GoalMode
New scene from wordsText-to-video
Exact first frameImage-to-video from composed still
Same face/product in new placeReference-to-video (1–7 refs)
Same voice + faceImage ref + voice ref
Episode N+1 continuityEnd still of N as ref + freeze list

Freeze list recipe

Freeze list
FREEZE: face geometry, hair, scars/marks, body proportions,
outfit colors & materials, signature props.
CHANGE ONLY: <one action or location>.
Duration: 6s. One camera move. Present tense.

Magic constants (Build stack)

Copy these
#FF00FF                 solid magenta chroma for sprites/maps
window.__controlsTest   vehicle/flight QA probe
?qa=1                   enable QA hooks in games
/api/rtc                WebRTC signaling for P2P co-op
grok-4.5                default runtime chat model
grok-imagine-image-quality | grok-imagine-image
grok-imagine-video      runtime video (async)
voice_id: "eve"         default TTS
XAI_API_KEY             server-only; never VITE_*
1536x864                default side-scroll stage canvas
user_id TEXT            never UUID for auth-scoped rows

Deep dives: Easter eggs chapter.

Hostinger Cloud Startup go-live checklist

  1. On-demand backup
  2. A record → dedicated IPv4 (not a leftover shared IP)
  3. HTTPS / SSL green
  4. CDN on; purge after asset renames
  5. LiteSpeed Cache (WP) or static headers; ObjectCache if WP
  6. Forms tested on real domain
  7. SPF (include the dedicated IP) + DKIM/DMARC if sending mail
  8. SPA: /assets and /media not swallowed by index.html fallback
  9. Optional: traffic power boost the week of launch
Watch out

Never leave /yolo on in production monorepos. Never paste FTP passwords into chat. Never put XAI_API_KEY in the browser.