It can be done- both to use local models and/or cheaper cloud models- but IME it does not work very well. CC really needs the Anthropic model special sauce. A point of surprise here is we also run CC against Bedrock hosted Anthropic models and that works reasonably well even though there is a bunch of other server side functionality CC uses when using an Anthropic subscription.
Fun experiment: run `claude` and `claude-local` side by side and paste the same prompt into both. In my experience, recent open weight models (Qwen, Gemini) are pretty solid on quality, even on moderately difficulty prompts. They get the "right" answer eventually but roughly 10x slower on my M3 mac.
I use codex plugin to often validate claude results, surprisingly many findings, so for things like code-review becomes very helpful. Considering trying using Deepseek 4 Pro, seems like could be a good/cheap alternative to codex
5 comments
[ 3.0 ms ] story [ 19.5 ms ] threadIs that commonly done. Presumably this is from people customizing their installs - is that correct?
A few environment variables and Claude Code uses DeepSeek. I was actually surprised how easy that is.