r/opencodeCLI • u/Imaginary-Mix-7777 • 3d ago
Anyone running OpenCode fully on a local model? Which one actually handles the tool calls?
I've been on OpenCode with the DeepSeek API for a couple of months and it's been great, but I'd like the long loops (test, fix, test again) to stop costing money every run.
I've got a Mac mini M4 Pro with 48GB that sits idle most of the day, so that's what it would run on.
Not trying to replace the API model for the big refactors. Just the grind work where it calls tools 40 times in a row.
If you run OpenCode against a local model, which model, which quant, what's serving it, and do the tool calls actually hold up or does it fall apart after a few turns?
4
u/taytay735 3d ago
Qwen3.8-27B-AWQ-INT4 on VLLM. Works okay. Fails about 20% of CLI tool calls, but it's agentic so it corrects itself and reattempts successfully.
4
u/grabber4321 3d ago
Qwen 3.8:Flash-Next - I already built a bunch of my own stuff with it. Its fantastic. Runs non-stop.
You might be able to fit in only Qwen 3.8:27B - its not as capable, but it will do.
2
u/Dismal-Frame7329 2d ago
Qwen3.8-27B also. I put the analysis here with what hardware I'm using: https://www.reddit.com/r/RackBrainsResearch/comments/1vrzi5m/we_ran_qwen3827b_locally_on_a_24_gb_radeon_gpu/
OpenCode handles the calls to tools, and I have some self-built tools added into OpenCode also.
2
u/ea_man 2d ago
Now the hype is https://huggingface.co/blog/harness-adapters-at-scale , there's also one for opencode yet they say the Pi one works better even with opencode.
2
u/donwrightphoto 2d ago
Qwen 3.8 27B with full context + Gemma 4 31 instruct both largest q8 (qwen) or q6 for Gemma
Even though its old - qwen3 coder is still great at long tool heavy tasks
I love Orinth as well
2
u/rwtd5150 1d ago edited 1d ago
I do everything locally. I do have a Mac Studio M3 Ultra with 512 GB of RAM so my options are a bit more open to what I can run. I have documented my setup here: https://github.com/edseabolt/local-agent-stack. I run everything via oMLX and use OpenCode v2 as my harness. I have another project I use to manage the harness to provide me a mechanical pipeline for planning, implementation, testing, and review. You can find that here if interested: https://github.com/edseabolt/turnstile. It journals all decisions and provides summaries of tokens used at the parent and sub-agent level. No UI/TUI, but everything can be queried via the CLI interface and skills. I typically use GLM-5.3-Flash-oQ6-mtp as my main driver but have also used different models for different agents.
Edit: I did have some issues with model looping but setting a topK = 20 and minP = 0.05 has helped with that for this specific model and its oQ4 bit quant as well.
1
u/jonas-reddit 3d ago
Qwen 3.8 27B FP8 using sglang with DFlash2.
1
u/SirRobinBlibs 3d ago
I'd judge a local model on tool-call parse success over a fixed loop, not on tokens per second. A stack that is fast but drops or retries one in five tool calls will lose a long test-and-fix run, even if the chat looks fine.
Pick one representative loop (a failing test, a patch, a re-run) and count clean tool calls, retries, and wrong-format arguments. Once that number is stable, then compare speed and VRAM. The reports already in the thread are useful starting points, but they are hard to compare without that same loop.
1
u/mguffin 2d ago
I run Opencode cli and desktop on Linux connected to my Mac Mini M4 Pro 48GB running oMLX with Qwen3.6-35B-A3B. Furthermore, I use Opencode-Go with Deepseek orchestrating my Mac Mini model for coding.
1
u/Sad_Recording_1290 2d ago
If ur running 3.8 27B
https://huggingface.co/harness-hub/Qwen3.8-27B-opencode-adapted
Might help it out perform better
1
u/aruthesa 2d ago
I think a hybrid setup makes a lot of sense here. Use a local model for repetitive tool calls and test-fix loops, then keep a stronger API model for the more complex reasoning and refactoring.
One thing worth experimenting with is routing between models instead of trying to make one model handle everything. I've also been looking at io Intelligence for API access to different models. Full disclosure, I'm part of the ionet community, but it could be another option to compare for the tasks that still need a hosted model.
Curious how Qwen performs on your M4 Pro, especially with longer tool-call sequences