What I learned:
The whole trick is that coding-agent CLIs speak the Anthropic API, so you can keep the tool and swap the brain underneath by pointing it at any Anthropic-compatible endpoint. Nobody is forking Claude Code — they set ANTHROPIC_BASE_URL to a provider's compatibility endpoint (DeepSeek, a local server, an OpenRouter proxy) and the same agent loop drives a different model. The most-viewed walkthrough of this, Nate Herk's Ollama + Claude Code = 99% CHEAPER (501K views), lays out the two paths people actually take: run a local model on your own machine, or route through OpenRouter — "a lot easier than you would think." The env-var swap is the entire mechanism; everything else is choosing which model to aim it at.
The cheap-model roster people are running is now crowded, and the pitch is always the same benchmark: "as good as Sonnet." The recurring names are Qwen 3 Coder, DeepSeek V4 (and the faster V4 Flash), GLM, MiniMax, and local Qwen 3.5/3.6 + Gemma 4 through Ollama. The framing gets aggressive — AI LABS titled a video Qwen 3 ACTUALLY Made Me Quit Claude Code, pointing at Qwen's "2,000 free Quen code runs every single day" as the thing that "makes AI coding affordable for everyone," while AI with Hassan walks through a free MiniMax-class model plugged into Claude Code that he claims "beats even the top models of Anthropic like Sonnet and Opus... both in terms of speed and quality." On Reddit's r/hermesagent, builders running always-on agents say they just point straight at "DeepSeek V4 Flash directly from DeepSeek" to keep monthly spend survivable.
The reason this exists at all is cost and rate limits — the economics are the whole story. The pull quotes are all money: "99% cheaper," "17x cheaper," people who "paid $1200 for Claude Max over the last six months" and wonder why, and creators who claim they cut a ~$1,500/year AI-tools bill (ChatGPT, Cursor, Claude Code) to roughly zero by swapping in free or local models. Rate limits are the other trigger — Callum's Google Antigravity + Claude Code tutorial is explicitly about "hitting rate limits... and burning through claude code," and the workaround is a hybrid: plan on a cheaper or different model, then spend your scarce premium tokens only on the build step.
Where it holds up: routine, well-scoped coding. Where it breaks: the honest caveats are consistent across every source. The recurring qualifier is "if you're okay with sonnet-level performance" — i.e. it's a lateral move for mid-tier work, not a match for Opus on hard reasoning. Local inference is the sharpest trade-off: people report a Qwen model taking real time per token on consumer hardware, so you swap a subscription for slowness. And the agentic layer is where cheap models wobble — tool-calling, long-context adherence, and multi-step reliability degrade fastest, which matters more in an autonomous loop than in a chat box. The most repeated wisdom is a shrug: "in about a week, there's going to be a better/cheaper setup," so nobody treats their current rig as permanent.
A quieter theme: the friction is moving from "which model" to "which model where," and the tooling isn't fully there yet. As people run mixed setups, the pain points shift to routing and orchestration — e.g. an active openai/codex issue where users are furious that a top-tier model "cannot specify subagent models, forcing all subagents to also be" the expensive one: "Simple tasks spawned from [the big model]... should use a lighter model." That's the real 2026 frontier here — not just can you swap the model, but can you swap it per-task, per-subagent, per-step to spend premium tokens only where they earn their keep.
KEY PATTERNS from the research: 1. The mechanism is boring and universal — set the Anthropic-compatible base URL and the CLI doesn't care what's behind it, per Ollama + Claude Code 2. Every cheap model is marketed against Sonnet, and "2,000 free runs/day" style giveaways are the real wedge, per AI LABS 3. Rate limits and bills, not curiosity, drive the swap — hybrid "plan cheap, build premium" is the emerging default, per Wanderloots 4. Honest ceiling: Sonnet-level for routine work, weakest on agentic tool-use and hard reasoning; local buys ownership at the cost of speed 5. The next bottleneck is per-task model routing (subagents, cheap-vs-premium steps), still rough in the tools, per openai/codex#31814