Gemini For Claude Code — Development skill for Claude Code
A Python program allowing the use of Claude Code with Google's Gemini models.
How to install Gemini For Claude Code
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open coffeegrind123/gemini-for-claude-code and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Gemini For Claude Code does
This server acts as a bridge, enabling you to use **Claude Code** with Google's powerful **Gemini models**. It translates API requests and responses between the Anthropic format (used by Claude Code) and the Gemini format (via LiteLLM), allowing seamless integration.
Alternatives in Development
- Notebooklm Skill — Use this skill to enable Claude Code to communicate directly with your Google NotebookLM notebooks 5.9k ★
- Claude SEO — Multi-Platform Agent Instructions — For Cursor, Cursor Cloud Agents, Google Antigravity, and Gemini CLI 5k ★
- Antigravity Claude Proxy — Proxy that exposes Antigravity provided claude / gemini models, so we can use them in Claude Code and OpenClaw 3.5k ★
README
FOR OFFICIAL GOOGLE AI CLI TOOL SEE https://github.com/google-gemini/gemini-cli
Gemini for Claude Code: An Anthropic-Compatible Proxy
This server acts as a bridge, enabling you to use **Claude Code** with Google's powerful **Gemini models**. It translates API requests and responses between the Anthropic format (used by Claude Code) and the Gemini format (via LiteLLM), allowing seamless integration.
Features
- Claude Code Compatibility with Gemini: Directly use the Claude Code CLI with Google Gemini models.
- Seamless Model Mapping: Intelligently maps Claude Code model requests (e.g.,
haiku,sonnet,opusaliases) to your chosen Gemini models. - LiteLLM Integration: Leverages LiteLLM for robust and flexible interaction with the Gemini API.
- Enhanced Streaming Support: Handles streaming responses from Gemini with robust error recovery for malformed chunks and API errors.
- Complete Tool Use for Claude Code: Translates Claude Code's tool usage (function calling) to and from Gemini's format, with robust handling of tool results.
- Advanced Error Handling: Provides specific and actionable error messages for common Gemini API issues with automatic fallback strategies.
- Resilient Architecture: Gracefully handles Gemini API instability with smart retry logic and fallback to non-streaming modes.
- Diagnostic Endpoints: Includes
/healthand/test-connectionfor easier troubleshooting of your setup. - Token Counting: Offers a
/v1/messages/count_tokensendpoint compatible with Claude Code.
Recent Improvements (v2.5.0)
🛡️ Enhanced Error Resilience
- Malformed Chunk Recovery: Automatically detects and handles malformed JSON chunks from Gemini streaming
- Smart Retry Logic: Exponential backoff with configurable retry limits for streaming errors
- Graceful Fallback: Seamlessly switches to non-streaming mode when streaming fails
...
Related Skills
Agent Oracle Gemini
Invoke the Code Oracle Gemini subagent for fast, large-context code analysis using Google's Gemini models.
Skills To Extensions
A Python command-line tool to automatically convert Anthropic Claude skills into self-contained Google Gemini
Gemini Morning Briefing Gem
Morning Briefing Agent for Technical Program Managers with Gemini
Tmux Rc
Watch and control whatever runs in a tmux pane — Codex, Claude Code, Gemini CLI, OpenCode, or any program that
Claude OAuth
Run Google, xAI and OpenAI models inside Claude Code over your own OAuth sessions. The native claude path is n
Civitai MCP Ultimate
Ultimate MCP server for Civitai API — search models, browse top images with prompts, download LoRAs/Checkpoint
Related Agents
CLI Subagents Antigravity
Runs a task in Google Antigravity (agy, Gemini models) on the user's Google account (CLI Subagents; extra Goog
Gemini Researcher
Use this agent to orchestrate comprehensive multi-perspective research using Google's Gemini model. Breaks dow
Adk Reviewer
Reviews Google ADK 1.29.0 agent code. Checks ADK-specific patterns, tool contracts, session management, SSE st