Description
OpenCode Version: 1.1.38
Operating System: Linux
Content of opencode.json:
{ "$schema": "https://opencode.ai/config.json", "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "name": "Ollama (local)", "options": { "baseURL": "http://172.18.4.152:11434/v1" }, "models": { "qwen3:14b": { "name": "qwen3:14b", "tool_call": false } } } } }
Error Message:
ERROR 2026-01-28T08:04:45 +1ms service=session.processor error=Unable to connect stack="AI_APICallError: Unable to connect\n at <anonymous> (../../node_modules/.bun/@[email protected]+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:918:18)\n at processTicksAndRejections (native:7:39)" process
Problem Description:
I am able to run curl manually to Ollama, but when integrated with opencode, it shows "Unable to connect"
Plugins
No response
OpenCode version
1.1.38
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
OpenCode Version: 1.1.38
Operating System: Linux
Content of opencode.json:
{ "$schema": "https://opencode.ai/config.json", "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "name": "Ollama (local)", "options": { "baseURL": "http://172.18.4.152:11434/v1" }, "models": { "qwen3:14b": { "name": "qwen3:14b", "tool_call": false } } } } }Error Message:
ERROR 2026-01-28T08:04:45 +1ms service=session.processor error=Unable to connect stack="AI_APICallError: Unable to connect\n at <anonymous> (../../node_modules/.bun/@[email protected]+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:918:18)\n at processTicksAndRejections (native:7:39)" processProblem Description:
I am able to run curl manually to Ollama, but when integrated with opencode, it shows "Unable to connect"
Plugins
No response
OpenCode version
1.1.38
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response