Integrate with Google's Gemini CLI for delegating tasks to Gemini. Use when you need an alternative AI perspective, Google Search grounding, parallel task execution, or want to leverage Gemini's 1M token context window. Enables "Claude calling Gemini" patterns for diverse AI collaboration.
65
77%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./planning/done/gemini-cli/SKILL.mdThe canonical home for this skill is gemini-cli-bridge in Raudbjorn/TTTRPS
Delegate tasks to Google's Gemini CLI from any context.
| Feature | Claude Code | Gemini CLI |
|---|---|---|
| Search | Web search tool | Native Google Search |
| Context | 200K tokens | 1M tokens |
| Free Tier | API key required | 1000 req/day free |
| Strengths | Coding, analysis | Search, multimodal |
If the gemini-cli-mcp server is configured, use the MCP tools:
Use gemini_prompt to ask Gemini: "What are the latest developments in WebGPU?"Tools available:
gemini_prompt - Send a prompt to Gemini CLIgemini_prompt_with_input - Send prompt with piped contentgemini_search - Use Google Search groundinggemini_version - Get version infoExecute Gemini CLI directly:
# Single prompt
gemini -p "Explain this error message" --output-format json
# Pipe input
cat error.log | gemini -p "Analyze these errors"
# With Google Search
gemini -p "What's the current price of Bitcoin?"
# YOLO mode (auto-approve all actions)
gemini -p "Fix all linting errors" --yolouse gemini_cli_rs::GeminiCliClient;
let client = GeminiCliClient::new()?;
let response = client.prompt("Analyze this codebase").await?;
println!("{}", response.text());Add to Claude Desktop's claude_desktop_config.json:
{
"mcpServers": {
"gemini": {
"command": "npx",
"args": ["@google/gemini-cli"]
}
}
}| Variable | Description |
|---|---|
GOOGLE_API_KEY | API key for usage-based billing |
GEMINI_SYSTEM_MD | Path to custom system prompt |
working_dir for file operationssandbox: true for safer executionI'll use Gemini for real-time search:
[gemini_search]
query: "What companies announced layoffs this week?"Let me get Gemini's perspective on this code:
[gemini_prompt_with_input]
prompt: "Review this code for bugs and suggest improvements"
stdin_input: "<paste code here>"Gemini can handle larger context:
[gemini_prompt]
prompt: "Analyze the architecture of this entire codebase"
working_dir: "/home/user/large-project"[gemini_prompt]
prompt: "Generate API documentation for all public functions in src/"
working_dir: "/home/user/project"
yolo_mode: truenpm install -g @google/gemini-cligemini interactively to authenticate with Googletimeout_secs for complex tasksGemini CLI supports multiple auth methods:
Personal Google Account (recommended for personal use)
gemini and select "Login with Google"Google AI Studio API Key
export GOOGLE_API_KEY="your-key"Vertex AI (for enterprise)
export GOOGLE_API_KEY="your-key"
export GOOGLE_GENAI_USE_VERTEXAI=true387c8cf
Canonical home
since Aug 28, 2026
Also appears in
since Aug 28, 2026
since Aug 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.