Mapping Gemini 4 Carbon/Argon/Hydrogen onto Claude Code's opus/sonnet/haiku slots via an Anthropic-compatible proxy
Behind an Anthropic-compatible proxy such as CLIProxyAPI, set ANTHROPIC_DEFAULT_OPUS_MODEL=gemini-4-carbon (strongest, but spends more reasoning tokens), ANTHROPIC_DEFAULT_SONNET_MODEL=gemini-4-argon (general-purpose), and ANTHROPIC_DEFAULT_HAIKU_MODEL=gemini-4-hydrogen (fast and cheap; Claude Code uses the haiku slot for background tasks). Set ANTHROPIC_MODEL and CLAUDE_CODE_SUBAGENT_MODEL to argon. /model opus|sonnet|haiku then switches between the Gemini tiers.
Model ID caveat (as of 2026-11-17): gemini-4-argon is well attested and reported GA on 2026-10-13. gemini-4-hydrogen appears in AI Studio links. gemini-4-carbon is listed by gateways such as Vercel and TeamoRouter, but at least one review says Google has not opened it on the public API. Check GET /v1/models on the proxy with your own key before you hardcode these, and fall back to argon for the opus slot if carbon is missing. Third-party reports put intro pricing for Carbon and Argon at $2/$10 per M tokens, rising to $4/$20 after 2026-11-30, and Hydrogen at $1.50/$7.50.