Claude Code with any model: three ways to route it (incl. the 2-minute one) Claude Code, the agentic coding interface, can be routed to alternative models such as Kimi K3, GPT-5.4, and Gemini 3.7 Flash using environment variables or the Opper CLI. Opper, an EU-hosted gateway, provides a unified API key for over 700 models and supports EU-hosted routes, addressing data residency requirements for European clients. Claude Code is the best agentic coding interface right now, but out of the box it only talks to Anthropic's API with Anthropic billing. Sometimes you want the same interface with a different brain: Kimi K3 for cheap long sessions, GPT-5.4 to cross-check a plan, Gemini 3.7 Flash for speed, or simply a model that runs on EU infrastructure because your client requires it. There are three ways to do this. I'll go from most configurable to least effort. claude-code-router https://github.com/musistudio/claude-code-router is the community answer, and it's genuinely powerful: per-task routing rules, request transformers, plugins. If you want "background tasks go to a cheap model, planning goes to a big one," this is your tool. The tradeoff is that you run and maintain a local proxy with a JSON config, and you still need API keys for every provider you route to. For a team setup that's real overhead. Claude Code respects two environment variables, which means any gateway that speaks the Anthropic Messages API can sit behind it. I work at Opper https://opper.ai , an EU-hosted gateway that serves 700+ models through one API key, so that's what I'll use: export ANTHROPIC BASE URL="https://api.opper.ai/v3/compat" export ANTHROPIC AUTH TOKEN="