chat
01Command
Run text chat, summarization, reasoning, and Q&A through the Grok Responses API. General websearch is enabled by default, which makes the command useful for recent facts.
Command
Run text chat, summarization, reasoning, and Q&A through the Grok Responses API. General websearch is enabled by default, which makes the command useful for recent facts.
Command
Edit one or more reference images with Grok Imagine.
Command
Command "image" from Moore-developers/grok-cli, covering grok-cli image, purpose, common usage, parameters and behavior.
Command
This directory contains specs and usage notes for every public grok-cli command. Use this index for day-to-day command lookup. Deeper output examples and internal design notes live in ../reference/.
Command
Start xAI OAuth PKCE login. By default, the command opens the system browser and exchanges the authorization code for tokens when the local loopback callback arrives.
Command
Delete the local OAuth state file so the CLI returns to an unauthenticated state.
Command
Inspect and choose the shared default model for text commands. chat and search share the same default, so changing it once affects both.
Command
Force a refresh of the saved access token by using the refresh token.
Command
Search X through the Grok Responses API xsearch tool. This command is the dedicated X search entrypoint and is separate from the general websearch attached by default to chat.
Command
Inspect a redacted summary of the local OAuth state file. state does not call the xAI network; it only reads local auth.json.
Command
Check whether the current OAuth state is usable. The command does not make network requests; it only reads the local auth.json file and inspects token state, refresh token state, expiry, and error flags.
Command
Run real-time transcription through the xAI WebSocket STT interface.
Command
Transcribe a local audio file or remote audio URL into text.
Command
Convert text to speech and save the audio locally.
Command
Check the latest GitHub Release and update the local grok-cli binary when a newer version is available.
Command
Inspect local session usage. The command reads the SQLite session store and summarizes text, image, video, and audio usage, along with token, cost estimate, and context-length information.
Command
Edit an existing video with Grok Imagine.
Command
Extend an existing video with Grok Imagine.
Command
Generate video with Grok Imagine, including text-to-video, image-to-video, and reference-image video.