gemini-cli

gemini-cli is a skill for Claude Code, Codex from hackermanishackerman/claude-skills-vault. It costs 35 tokens per session (398 once invoked), scanned A, original, MIT.

A command-line connection to Google's Gemini AI, which lets developers send prompts and files to Gemini from a terminal. It can return plain text, JSON, or streaming output.

In plain words
What is it for?
Running one-off Gemini queries, selecting a model, analyzing piped files, starting interactive sessions, resuming sessions, and requesting output in machine-readable JSON.
Why use it?
It lets developers ask Gemini questions or get a second AI opinion without leaving the terminal. It also supports comparing Gemini's response with another AI's response.

Skill for Claude CodeCodex

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 skills/hackermanishackerman/claude-skills-vault/gemini-cli
Any agent
npx skills add hackermanishackerman/claude-skills-vault --skill gemini-cli
Clone the repo
git clone --depth 1 https://github.com/hackermanishackerman/claude-skills-vault

Made for: Claude Code, Codex.

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 gemini-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/hackermanishackerman/claude-skills-vault/gemini-cli.svg)](https://agentmods.dev/skills/hackermanishackerman/claude-skills-vault/gemini-cli)
Your own site
<a href="https://agentmods.dev/skills/hackermanishackerman/claude-skills-vault/gemini-cli"><img src="https://agentmods.dev/badge/skills/hackermanishackerman/claude-skills-vault/gemini-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 398 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.00035 $0.00398
Opus 5 $0.00017 $0.00199
Sonnet 5 $0.00007 $0.00080
Haiku 4.5 $0.00003 $0.00040

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

Security

Grade A, and why

gemini-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 4d 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.

.claude/skills/gemini-cli/SKILL.md · 67 lines

What it actually says

Gemini CLI

Interact w/ Google's Gemini CLI locally. Run queries, get responses, compare outputs.

Prerequisites

Gemini CLI must be installed & configured:

  1. Install: https://github.com/google-gemini/gemini-cli
  2. Auth: Run gemini & sign in w/ Google account
  3. Verify: gemini --version

When to Use

  • User asks to "run/ask/use gemini"
  • Compare Claude vs Gemini responses
  • Get second AI opinion
  • Delegate task to Gemini

Usage

# One-shot query
gemini "Your prompt"

# Specific model
gemini -m gemini-3-pro-preview "prompt"

# JSON output
gemini -o json "prompt"

# YOLO mode (auto-approve)
gemini -y "prompt"

# File analysis
cat file.txt | gemini "Analyze this"

Comparison Workflow

  1. Provide Claude's response first
  2. Run same query via Gemini CLI
  3. Present both for comparison

CLI Options

Flag Desc
-m Model (gemini-3-pro)
-o Output: text/json/stream-json
-y Auto-approve (YOLO)
-d Debug mode
-s Sandbox mode
-r Resume session
-i Interactive after prompt

Best Practices

  • Quote prompts w/ double quotes
  • Use -o json for parsing
  • Pipe files for context
  • Specify model for specific capabilities
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. 4d ago First seen · 67 lines · 35 tokens per session scan A 2c784d0bcd6f

Subscribe to this mod's changes

gemini-cli is a skill published in the GitHub repository hackermanishackerman/claude-skills-vault (2 stars, last pushed 6d ago), licensed MIT. It adds 35 tokens to every session and 398 once invoked, about $0.0002 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-31.