grokodex-setup

grokodex-setup is a skill for Claude Code from anlostsheep/grokodex. It costs 77 tokens per session (1,067 once invoked), scanned C, original, MIT.

A setup and troubleshooting skill for the local Grok command-line tool used by Grokodex. It checks whether Grok is installed, available at the expected path, and logged in.

In plain words
What is it for?
Use it when enabling Grokodex for the first time, when Grok cannot be found, when login fails, or when tools report setup errors.
Why use it?
It helps diagnose missing programs and authentication problems before other Grokodex tools are used.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex.

Part of the grokodex plugin — 6 skills shipped together

Good fit Use it when enabling Grokodex for the first time, when Grok cannot be found, when login fails, or when tools report setup errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anlostsheep/grokodex/grokodex-setup
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.

Any agent
npx skills add anlostsheep/grokodex --skill grokodex-setup
Clone the repo
git clone --depth 1 https://github.com/anlostsheep/grokodex

Made for: Claude Code.

Or install grokodex, the plugin that ships this one along with the rest of its 6 skills.

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

agentmods badge for grokodex-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/anlostsheep/grokodex/grokodex-setup.svg)](https://agentmods.dev/skills/anlostsheep/grokodex/grokodex-setup)
Your own site
<a href="https://agentmods.dev/skills/anlostsheep/grokodex/grokodex-setup"><img src="https://agentmods.dev/badge/skills/anlostsheep/grokodex/grokodex-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,067 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00077 $0.01067
Opus 5 $0.00039 $0.00534
Sonnet 5 $0.00015 $0.00213
Haiku 4.5 $0.00008 $0.00107

Measured 8d ago against content hash 483aacee2350, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

grokodex-setup scanned grade C with 2 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 8d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://x.ai/cli/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://x.ai/cli/install.sh | bash
plugins/grokodex/skills/grokodex-setup/SKILL.md · 108 lines

How it starts

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

Grokodex Setup

Check that the local Grok CLI is installed and logged in so other Grokodex tools can run.

When to use

  • First time using Grokodex in a session or machine
  • Any tool returns GROK_NOT_FOUND or GROK_NOT_LOGGED_IN
  • User asks to install / login / verify Grok for Grokodex (Codex, Claude Code, etc.)
  • Before heavy grok_run / grok_imagine / grok_x_search work if setup looks broken

Tool preference

  1. Always call the MCP tool grok_setup first (logical name; Claude may show an mcp__…__grok_setup prefix — use /mcp list).
  2. Do not use a terminal/shell tool to run grok for diagnostics when grok_setup is available.
  3. Exception: after grok_setup fails or reports missing binary / bad auth, you may guide the user to run install and grok login in their own terminal (see below). That is the only case where shell/grok is appropriate, and only as user-facing install guidance—not as a bypass for other tools.

How to call

grok_setup

Optional (currently ignored by the bridge, reserved):

grok_setup  fix=true

No other parameters are required.

Interpret the result

Envelope shape (text content is JSON):

  • ok: true → report text and/or meta:
    • meta.grok_path — binary path
    • meta.version — CLI version if known
    • meta.auth_ok — whether login looks healthy
  • ok: false → surface error.code, error.message, and error.hint
    • Common codes: GROK_NOT_FOUND, GROK_EXIT_NONZERO

If auth_ok is false (or message says login required):

  1. Tell the user to run in a local terminal:
    grok login
    
  2. After they finish, call grok_setup again.
  3. Only then proceed to grok_run / grok_imagine / grok_x_search.

If Grok is not installed (GROK_NOT_FOUND)

Give official install steps (macOS / Linux / WSL):

curl -fsSL https://x.ai/cli/install.sh | bash

Windows (PowerShell):

irm https://x.ai/cli/install.ps1 | iex

Read the full file on GitHub · 108 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. 8d ago First seen · 108 lines · 77 tokens per session scan C 483aacee2350

Subscribe to this mod's changes

grokodex-setup is a skill published in the GitHub repository anlostsheep/grokodex (2 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 1,067 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.