You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using LM Studio with a local model, and responding in OpenCode takes much much longer (I would say 20x) than directly in LM Studio. I have also already tried with Ollama and the performance was poor as well. Is there a special reason for that, or could that be improved?
OpenCode version
1.0.67
Steps to reproduce
Use Local model with LM Studio (Ollama the same)
Wait for a response in OpenCode and compare to LM Studio directly
The issues show a pattern of local model performance problems across both LM Studio and Ollama providers. Issue #4255 provides particularly detailed analysis suggesting the root cause may be related to empty tool_calls array handling.
Feel free to ignore if none of these address your specific case.
@JimmyBenHur I assume this is because opencode sends a lot more context right? tools + system prompt = ~10k tokens, add in your AGENTS.md files or mcp servers and it is even more
Definitely makes sense that it's slower because of the context, but this much? The issue seems to be similar to #4182, but I have no AGENTS.md and no mcp servers, I wouldn't except it to be that much slower. I have about 12 tokens per second in LM Studio and I would say less than half a token in OpenCode, when using Qwen3 Coder. Isn't there something to do to improve performance?
@JimmyBenHur yes the tools are the whole thing as you know, but that's proof that the context is slowing down your local model, it isn't an opencode issue right?
Activity
github-actions commentedon Nov 16, 2025
This issue might be a duplicate of existing issues. Please check:
The issues show a pattern of local model performance problems across both LM Studio and Ollama providers. Issue #4255 provides particularly detailed analysis suggesting the root cause may be related to empty tool_calls array handling.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 16, 2025
@JimmyBenHur I assume this is because opencode sends a lot more context right? tools + system prompt = ~10k tokens, add in your AGENTS.md files or mcp servers and it is even more
JimmyBenHur commentedon Nov 16, 2025
Definitely makes sense that it's slower because of the context, but this much? The issue seems to be similar to #4182, but I have no AGENTS.md and no mcp servers, I wouldn't except it to be that much slower. I have about 12 tokens per second in LM Studio and I would say less than half a token in OpenCode, when using Qwen3 Coder. Isn't there something to do to improve performance?
rekram1-node commentedon Nov 16, 2025
I just don't know how we could possibly be causing an issue for you? We send an http request and the results stream in
Here is a good way to test it, make an
opencode.jsonfile and add:That should disable all tools, and then see if it is any faster
JimmyBenHur commentedon Nov 16, 2025
Yeah, it is actually much faster without the tools. Thing is I need the tools...
rekram1-node commentedon Nov 17, 2025
@JimmyBenHur yes the tools are the whole thing as you know, but that's proof that the context is slowing down your local model, it isn't an opencode issue right?
akemmanuel commentedon Jan 7, 2026
Looks like it isn't...
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.