claude-code-gemini: run Claude Code on Gemini via a local LiteLLM proxy
jonkhler · x · 2026-11-29
Developer jonkhler open-sourced claude-code-gemini, a small MIT-licensed tool that lets you run Claude Code against Google's gemini-4-neon model. It works by standing up a local LiteLLM proxy (127.0.0.1:4100, /v1/messages) that translates Anthropic's API format to the Gemini API, sidestepping Anthropic's restriction on non-Claude models in Claude Code.
Setup and usage:
- Install uv and Claude Code, copy .env.example to .env, and set GEMINIAPIKEY (Google project needs billing enabled)
- bin/claude-gemini starts the proxy if needed and launches Claude Code; -p "..." does a single headless call
- status and stop subcommands manage the proxy lifecycle
The author flags it as an unofficial hack to use at your own risk.
More from coding & agent
- Founder replaces $5K/mo lead-gen agency with a 12-signal Claude outbound engine — aryanXmahajan · 2026-11-29
- H3-Motion-Context v0.8 ships Chain Upscale, making MiniMax H3 video clip joins nearly invisible — Sad_Berry_4621 · 2026-11-29
- Using Neon agent to drive Bryce3D and insert himself into Warp's 1992 'Artificial Intelligence' cover — sebkrier · 2026-11-29
- Agent traces will hold all business data, and trace analytics is bigger than self-improvement — sh_reya · 2026-11-29
- Animating real knee kinematics with AI, plus 7 free pose-estimation repos worth saving — Promptmethus · 2026-11-29
- Dev's new workflow: AI sends plans to e-ink tablet for annotated review — _AustinCalvert_ · 2026-11-29