index

A reference index for the public commands in grok-cli, a command-line program for using xAI services. It links each command to notes describing its purpose and usage.

In plain words
What is it for?
Looking up commands for login, account status, text chat, search, image and video generation, text-to-speech, speech-to-text, model settings, usage, and updates.
Why use it?
It gives developers one place to find the right command and its documentation instead of searching through separate files.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/moore-developers/grok-cli/index
Clone the repo
git clone --depth 1 https://github.com/Moore-developers/grok-cli
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 788 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00788
Opus 5 $0.00000 $0.00394
Sonnet 5 $0.00000 $0.00158
Haiku 4.5 $0.00000 $0.00079

Measured 2d ago against content hash b9edab4d916c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

index scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/index.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLI Command Index

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/.

Top-Level Commands

grok-cli <login|status|refresh|logout|state|model|usage|update|chat|search|image|image-edit|video|video-edit|video-extend|tts|stt|stt-stream> ...

Authentication

Command Doc Purpose
login login.md Open a real browser, complete xAI OAuth login, and save tokens.
status status.md Read local OAuth state and report whether login is usable.
refresh refresh.md Refresh the saved access token with the refresh token.
logout logout.md Delete local OAuth state.

State And Models

Command Doc Purpose
state state.md Inspect a redacted local OAuth state summary.
model model.md Manage the shared default text model for chat and search.

Text

Command Doc Purpose
chat chat.md Run Grok text chat with web search enabled by default.
search search.md Search X through Grok x_search.

Media

Command Doc Purpose
image image.md Generate images with Grok Imagine.
image-edit image-edit.md Edit one or more reference images.
video video.md Generate text-to-video, image-to-video, or reference-image video.
video-edit video-edit.md Edit an existing video from a URL or local file.
video-extend video-extend.md Extend an existing remote video URL.

Audio

Command Doc Purpose
tts tts.md Convert text to speech and save audio locally.
stt stt.md Transcribe local audio files or remote audio URLs.
stt-stream stt-stream.md Experimental WebSocket speech-to-text.

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 66 lines · 0 tokens per session scan A b9edab4d916c

Subscribe to this mod's changes

index is a command published in the GitHub repository Moore-developers/grok-cli (52 stars, last pushed 19d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 788 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.