Agent Guides16 min read
Running Claude Code with Other Models Through an Anthropic-Compatible Gateway
Updated 31 October 2026: Claude Code only speaks the Anthropic Messages API, so any gateway that speaks it can put a different model behind the CLI. Kimi K2 closes to new users 31 October 2026 with retirement planned by end of December 2026 — test Kimi K3.1 Pro as its successor. Here is how the environment variables fit together, what Anthropic doesn't support, and which settings keep a non-Claude model usable.
Tokens Team · 3 Oct 2026
