/gemini:setup [--json]from gemini
Check whether Gemini CLI is ready (binary, auth, subscription)
Ships in gemini. Installing the plugin adds it to Claude Code.
Run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" setup --json "$ARGUMENTS"
If the result says Gemini is unavailable and bun is available:
AskUserQuestion exactly once to ask whether Claude should install Gemini now.(Recommended).Install Gemini CLI (Recommended)Skip for nowbun install -g @google/gemini-cli
node "${CLAUDE_PLUGIN_ROOT}/scripts/gemini-companion.mjs" setup --json "$ARGUMENTS"
If Gemini is already installed or bun is unavailable:
Output rules:
! gemini interactively to complete Google OAuth.task (rescue) uses flash-lite, review uses flash, adversarial-review uses pro with model-side Deep Think reasoning./gemma:rescue (local, free) for trivial consultation, /codex:rescue (separate subscription) for agentic coding sessions, gemini when its specific advantages matter — 1M-token context, Gemini 3.1 Pro reasoning, or genuinely orthogonal second opinion./gemini:explain to see today's per-model usage, the full cascade per subcommand, and the policy in detail.ai.google.dev/gemini-api/docs/models for current IDs and update MODEL_PREFERENCES in the companion script.Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
6 commands in this plugin
/adversarial-reviewAdversarial ReviewRun a Gemini review that challenges the implementation approach and design choices/explainPrint the gemini plugin's full model policy (tiers, cascades, quota rules) without making an API call/optimize/gemini:optimizeAnalyze a task and recommend the optimal Gemini model, context scope, and prompt to conserve quota/rescueDelegate investigation, an explicit fix request, or follow-up rescue work to the Gemini rescue subagent/reviewRun a Gemini code review against local git statenpx claudepluginhub afarrell/gemini-plugin --plugin geminiOther plugins' commands for the same job