ollama usage not work in airplane mode? #2166

Open
opened 2026-02-16 17:34:28 -05:00 by yindo · 2 comments
Owner

Originally created by @Jovonni on GitHub (Oct 18, 2025).

Originally assigned to: @rekram1-node on GitHub.

even with a config like:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "gpt-oss:dev": { "tools": true },
      }
    }
  }
}

it doesn't work in airplane mode, Do you need to disable other models?

Originally created by @Jovonni on GitHub (Oct 18, 2025). Originally assigned to: @rekram1-node on GitHub. even with a config like: ```json { "$schema": "https://opencode.ai/config.json", "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "http://localhost:11434/v1" }, "models": { "gpt-oss:dev": { "tools": true }, } } } } ``` it doesn't work in airplane mode, Do you need to disable other models?
Author
Owner

@github-actions[bot] commented on GitHub (Oct 18, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3265: Very similar Ollama integration issue with no results returned and timeouts, created on the same day with similar Ollama configuration

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 18, 2025): This issue might be a duplicate of existing issues. Please check: - #3265: Very similar Ollama integration issue with no results returned and timeouts, created on the same day with similar Ollama configuration Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 18, 2025):

what do u seen if u run:

opencode run hello --print-logs

maybe the models.dev call causes the issue

@rekram1-node commented on GitHub (Oct 18, 2025): what do u seen if u run: opencode run hello --print-logs maybe the models.dev call causes the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2166