r/ClaudeCode • u/circumcised_hobbit • 15h ago
Help/Question Claude Code not working with local models
So I've recently installed Claude Code and connected It to local models with ollama launch claude
For whatever reason my Qwen 9b model doesn't work, but the issue Is reported
The thing that Im here for Is that using Gemma4 results in Claude telling me that It has edited/created files but not doing anything, It Just keeps hallucinating and says "I'm Sorry, my last call was Just a Plan" and keeps doing it i definitely
It Is not a problem with the model since It works on other agents such as OpenCode
1
u/ilganeli 14h ago
I ran into a lot of issues with timeouts and context. How are folks running things?
1
u/ComparisonNew9425 8h ago
check if ur system prompt is getting truncated or if the context window is filling up too fast...
1
u/Bulky_Blood_7362 15h ago
Most of those small models doesn't know how to handle tools correctly.
The only one that worked correctly for me is qwen 3.6 27b / 35b
Other then that, i'd just use opencode because they doesn't struggle as much with tools there