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.
npx skills add Yrzhe/claude-skills --skill grok-cligit clone --depth 1 https://github.com/Yrzhe/claude-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/yrzhe/claude-skills/grok-cli)<a href="https://agentmods.dev/skills/yrzhe/claude-skills/grok-cli"><img src="https://agentmods.dev/badge/skills/yrzhe/claude-skills/grok-cli/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/yrzhe/claude-skills/grok-cli"><img src="https://agentmods.dev/badge/skills/yrzhe/claude-skills/grok-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00168 | $0.01534 |
| Opus 5 | $0.00084 | $0.00767 |
| Sonnet 5 | $0.00034 | $0.00307 |
| Haiku 4.5 | $0.00017 | $0.00153 |
Grade A, and why
grok-cli 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
grok-cli
Use this skill when the user or an agent needs a local CLI wrapper around Grok/xAI with:
- Browser-based xAI / SuperGrok OAuth login using Authorization Code + PKCE.
- Optional
XAI_API_KEYfallback. - xAI
/v1/responseschat calls. - Grok Imagine image generation (sync) and video generation (async poll).
- X/Twitter search through xAI's server-side
x_searchResponses tool. - Persistent local session history in SQLite.
- Multi-session switching, export, and summarization.
Safety and credential rules
Never ask the user to paste their xAI password. Use grok-cli login to open the xAI authorization URL in a browser. Do not scrape browser cookies, automate grok.com, or capture interactive login credentials. OAuth tokens are stored locally under ~/.grok-cli/auth.json with owner-only file permissions when supported by the OS.
Prefer OAuth for SuperGrok users. API keys are supported only as fallback through XAI_API_KEY or grok-cli key set.
Do not print access tokens, refresh tokens, API keys, or ID tokens. grok-cli status sanitizes credential output.
Image and video generation are paid xAI operations (≈ $0.02 / image,
≈ $0.40 / 8s video — video is ~20x an image). The CLI refuses paid generation
in non-interactive mode unless --yes is passed; never auto-pass --yes for an
agent without the user's intent. No credentials are bundled in this package —
each user logs in with their own SuperGrok / X Premium account via
grok-cli login.
Installation
From the skill folder:
python -m venv .venv
source .venv/bin/activate
pip install -e .
Smoke test without network:
grok-cli --help
grok-cli status
Login
Local machine with browser:
grok-cli login
Remote SSH/container session:
# On your local machine, in a separate terminal:
ssh -N -L 56121:127.0.0.1:56121 user@remote-host
# On the remote host:
grok-cli login --no-browser
# Open the printed URL locally.
Alternative API key fallback:
What ships with it
27 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .claude-plugin/plugin.json 382 B
- .gitignore 96 B
- CHANGELOG.md 2.7 KB
- docs/architecture.md 2.0 KB
- docs/oauth_notes.md 1.4 KB
- docs/sources.md 2.5 KB
- docs/troubleshooting.md 1003 B
- examples/agent_usage.md 582 B
- examples/codex_prompt.md 771 B
- grok_cli_tool_manifest.json 2.8 KB
- grok_cli/__init__.py 53 B runs code
- grok_cli/__main__.py 48 B runs code
- grok_cli/auth.py 15 KB runs code
- grok_cli/cli.py 21 KB runs code
- grok_cli/client.py 13 KB runs code
- grok_cli/config.py 2.7 KB runs code
- grok_cli/constants.py 2.0 KB runs code
- grok_cli/paths.py 1.2 KB runs code
- grok_cli/sessions.py 10 KB runs code
- LICENSE 1.0 KB
- pyproject.toml 589 B
- README.md 2.1 KB
- requirements.txt 17 B
- scripts/install.sh 118 B runs code
- scripts/smoke_test.py 486 B runs code
- tests/__init__.py 0 B runs code
- tests/test_offline.py 1.8 KB runs code
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.
- 9d ago First seen · 160 lines · 168 tokens per session scan A a0273a7f03fa
grok-cli is a skill published in the GitHub repository Yrzhe/claude-skills (33 stars, last pushed 3mo ago), licensed MIT. It adds 168 tokens to every session and 1,534 once invoked, about $0.0008 per session on Opus 5. 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.
Other skills, from other repositories
webgl-holographic-foil
A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.
general-video
Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…
html-ppt-hermes-cyber-terminal
OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.
html-ppt-taste-brutalist
16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).
diagnostic-stem-delivery
Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.
chengfeng-check-updates
An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.