-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Open
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktopwindows
Description
Description
Bug Report: Ollama local model not working in OpenCode Desktop
Description
When using OpenCode Desktop application (Windows), after configuring a local Ollama model, the model appears in the list but returns invalid JSON responses ({ "name": "skill", "arguments": { "name": "build" } }) instead of actual text responses.
Environment
- OpenCode version: 1.2.27
- Operating System: Windows
- Ollama version: Running locally on port 11434
- Model: DanyaVoredom/DanyAI-qwen2.5-coder-3b-instruct:latest
Steps to Reproduce
- Install OpenCode Desktop for Windows
- Download a model in Ollama (e.g.,
ollama run DanyaVoredom/DanyAI-qwen2.5-coder-3b-instruct) - Configure opencode.json with Ollama provider:
{ "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "name": "Ollama (local)", "options": { "baseURL": "http://localhost:11434/v1" }, "models": { "DanyaVoredom/DanyAI-qwen2.5-coder-3b-instruct:latest": { "name": "DanyAI Coder 3B", "_launch": true } } } } } - Open OpenCode Desktop
- Select the Ollama model from the model list
- Send a prompt
Expected Behavior
The model should return a normal text response.
Actual Behavior
The model returns invalid JSON: { "name": "skill", "arguments": { "name": "build" } }
Verification
- Ollama API works correctly (tested via curl)
- The same configuration works with OpenCode CLI (terminal version)
- This appears to be a bug specific to the OpenCode Desktop application
Additional Information
- Similar issue reported in GitHub: Ollama local provider is not appearing #19326 (Ollama local provider is not appearing)
- Issue Unable to connect local Ollama #10961 (Unable to connect local Ollama)
- The CLI version works correctly, only Desktop app has this issue
Screenshots
N/A
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktopwindows