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
This issue might be a duplicate of existing issues. Please check:
Can't init my project #2269: User experiencing similar problems with /init command not working on Windows/macOS, showing "can't init my project" errors
Stuck on working forever #851: Reports being "Stuck on working forever" which might be the same underlying issue preventing /init from completing
The common thread appears to be /init command failures on Windows systems, particularly with local providers like Ollama. Feel free to ignore if none of these address your specific case.
When you work with these really small models on ollama and you don't adjust the num context I am pretty sure the tools aren't even introduced into their context so they can't take any actions << That's handled at the ollama level to opencode this is just any other model
Activity
github-actions commentedon Oct 13, 2025
This issue might be a duplicate of existing issues. Please check:
The common thread appears to be /init command failures on Windows systems, particularly with local providers like Ollama. Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 13, 2025
@somera so this is the model failing to call tools correctly, when you setup ollama did you set
num_ctx?My general advice is to try increasing
num_ctxin Ollama. Start around 16k - 32k.I added this to docs but Ig they weren't published yet
somera commentedon Oct 13, 2025
@rekram1-node thi, I will try it later.
Now I'm testing it with other Windows 11 system, ollama and
qwen3-coder:30bandgtp-oss:20b.Curl is working fine:
But opencode can't communicate with ollama backend. I don't see nothing in tui and log. No errors. I started it with
opencode --log-level DEBUG:This is an enviroment with an proxy. And http_proxy, https_proxy are set.
And this is my
opencode.json:somera commentedon Oct 13, 2025
The model I'm using, supports:
This
OLLAMA_CONTEXT_LENGTH=16384 OLLAMA_HOST=0.0.0.0 ollama serveis not helping.If
num_ctxshould be high, than I can forgot it with ollama, cause my GPU has only 16GB VRAM.somera commentedon Oct 13, 2025
OK, next try with
mistral:7b-instruct. Now I get real reponse:but I don's see
AGENT.mdin the project directory. Why?rekram1-node commentedon Oct 13, 2025
That's because the model is lying
When you work with these really small models on ollama and you don't adjust the num context I am pretty sure the tools aren't even introduced into their context so they can't take any actions << That's handled at the ollama level to opencode this is just any other model
somera commentedon Oct 13, 2025
@rekram1-node I understand.
But I set
num_ctxinopencode.json:will this be used?
But as I see, I can for got it with only 16GB VRAM.
And I can set it on start
OLLAMA_CONTEXT_LENGTH=16384 OLLAMA_HOST=0.0.0.0 ollama serve.somera commentedon Oct 13, 2025
@rekram1-node any idea here?
rekram1-node commentedon Oct 13, 2025
@somera num_ctx needs to be set in ollama, not opencode,
I do think this is the equivalent tho:
rekram1-node commentedon Oct 13, 2025
not sure what's causing that issue, instead of
opencode --log-level DEBUGmaybe try:opencode run hello --print-logstraceflight commentedon Oct 13, 2025
I'm also encountering this issue, but I'm using vllm instead of ollama. Meanwhile, the same model qwen3 coder works fine for tool calling in roo code.
rekram1-node commentedon Oct 14, 2025
@traceflight out of curiousity is it the same model discussed here?
https://docs.ollama.com/roo-code
traceflight commentedon Oct 14, 2025
hi, i am using Qwen3-Coder-480B-A35B-Instruct hosted by local vllm instance. it works fine in vscode roo code plugin.
somera commentedon Oct 14, 2025
In a git bash the test is working. In opencode tui I see than this.
In PowehShell it can't communicate with ollama (run on other machine).
somera commentedon Oct 14, 2025
Ok, now I'm running my ollama instance with
OLLAMA_CONTEXT_LENGTH=32768and the tools are running with `qwen3-coder:30b' .somera commentedon Oct 14, 2025
This should help others. I'll go ahead and close this issue since everything is working now. Thanks!
rekram1-node commentedon Oct 14, 2025
awesome!!!