opencode, but note that all the self-hosted llms are much worse at coding than claude code with opus/sonnet.
there's also claude-code-proxy to make claude code use other models.
Re:Claude Opus 4.1
by ptrrrrrrppr on Wednesday August 06, 2025 @09:22AM
(#44811643)
Claude code proxy technically works with openai but tool use breaks every now and then on o3-mini, making it unusable for me
Claude Code Router (https://github.com/musistudio/claude-code-router) lets you use Claude Code with other, non-Anthropic models.
I've used Aider for a while, and I kind of liked if, but it felt like it needed way more manual work, and I also want to use different models, probably locally hosted. Haven't used Aider in 2 or 3 months, so I don't know if it already has evolved in that way...
edit: in the other hand, the automatic feedback loop means it sometimes go very crazy and the API costs skyrocket easily. But maybe that's another reason to run it locally.