GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Ollama models not appearing in my model selection menu. Ollama setup trouble. · Issue #5160 · anomalyco/opencode

Ollama models not appearing in my model selection menu. Ollama setup trouble. #5160

New issue
Copy link
New issue
Copy link
Closed
Closed
Ollama models not appearing in my model selection menu. Ollama setup trouble.#5160
Copy link
Assignees
rekram1-node

Description

@qwerty108109
qwerty108109
opened on Dec 6, 2025
Issue body actions

Question

This time around when setting up OpenCoder with Ollama to use offline, I am having a lot of trouble.
This is what my configuration file looks like.

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama (PC1)",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "ministral-3:3b": {
          "name": "ministral-3:3b"
        }
      }  
    }  
  }  
}  

Whenever I use the /models it does not give me an option for my Ollama models.

I am currently using Linux Debbie 13 and I am using opencode Version 1.0.134.
Ollama Version 0.13.1

Reacted by Matt

Activity

  1. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 6, 2025
  2. github-actions commented on Dec 6, 2025

    @github-actions
    github-actionsBot
    on Dec 6, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • need help setting up ollama #4862: Ollama provider initialization fails with similar configuration setup (ProviderInitError with TypeError)
    • Why is opencode not working with local llms via Ollama? #4428: Similar issues with Ollama models not working despite correct configuration
    • bug? Ollama does not work as a provider unless configured with an API key #227: Ollama requires API key configuration even for localhost setup

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

  3. qwerty108109 commented on Dec 6, 2025

    @qwerty108109
    qwerty108109
    on Dec 6, 2025
    Author
    More actions

    No, I can't get my Ollama models to come up at all.

  4. qwerty108109 commented on Dec 6, 2025

    @qwerty108109
    qwerty108109
    on Dec 6, 2025
    Author
    More actions

    My Ollama models do not even appear as an option.
    Image

  5. qwerty108109
    changed the title [-]Ollama setup trouble.[/-] [+]Ollama models not appearing in my model selection. Ollama setup trouble.[/+] on Dec 6, 2025
  6. qwerty108109
    changed the title [-]Ollama models not appearing in my model selection. Ollama setup trouble.[/-] [+]Ollama models not appearing in my model selection menu. Ollama setup trouble.[/+] on Dec 6, 2025
  7. rekram1-node
    removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 6, 2025
  8. rekram1-node
    self-assigned this
    on Dec 6, 2025
  9. qwerty108109 commented on Dec 7, 2025

    @qwerty108109
    qwerty108109
    on Dec 7, 2025
    Author
    More actions

    I was testing to see if it was just the smaller models that have the problem but I'm still having the same problem with the larger models as well.

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "ollama": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "Ollama (local)",
          "options": {
            "baseURL": "http://localhost:11434/v1"
          },
          "models": {
            "qwen3-vl:235b": {
              "name": "qwen3-vl:235b"
            }
          }
        }
      }
    }
    
  10. rekram1-node commented on Dec 8, 2025

    @rekram1-node
    rekram1-node
    on Dec 8, 2025
    Member
    More actions

    I suspect the file isn't in the correct location.

    Can you run:

    opencode debug config

  11. qwerty108109 commented on Dec 9, 2025

    @qwerty108109
    qwerty108109
    on Dec 9, 2025
    Author
    More actions
    {
      "agent": {},
      "mode": {},
      "plugin": [],
      "command": {},
      "username": "misty",
      "keybinds": {
        "leader": "ctrl+x",
        "app_exit": "ctrl+c,ctrl+d,<leader>q",
        "editor_open": "<leader>e",
        "theme_list": "<leader>t",
        "sidebar_toggle": "<leader>b",
        "username_toggle": "none",
        "status_view": "<leader>s",
        "session_export": "<leader>x",
        "session_new": "<leader>n",
        "session_list": "<leader>l",
        "session_timeline": "<leader>g",
        "session_share": "none",
        "session_unshare": "none",
        "session_interrupt": "escape",
        "session_compact": "<leader>c",
        "messages_page_up": "pageup",
        "messages_page_down": "pagedown",
        "messages_half_page_up": "ctrl+alt+u",
        "messages_half_page_down": "ctrl+alt+d",
        "messages_first": "ctrl+g,home",
        "messages_last": "ctrl+alt+g,end",
        "messages_last_user": "none",
        "messages_copy": "<leader>y",
        "messages_undo": "<leader>u",
        "messages_redo": "<leader>r",
        "messages_toggle_conceal": "<leader>h",
        "tool_details": "none",
        "model_list": "<leader>m",
        "model_cycle_recent": "f2",
        "model_cycle_recent_reverse": "shift+f2",
        "command_list": "ctrl+p",
        "agent_list": "<leader>a",
        "agent_cycle": "tab",
        "agent_cycle_reverse": "shift+tab",
        "input_clear": "ctrl+c",
        "input_forward_delete": "ctrl+d",
        "input_paste": "ctrl+v",
        "input_submit": "return",
        "input_newline": "shift+return,ctrl+j",
        "history_previous": "up",
        "history_next": "down",
        "session_child_cycle": "<leader>right",
        "session_child_cycle_reverse": "<leader>left",
        "terminal_suspend": "ctrl+z"
      }
    }
    
  12. qwerty108109 commented on Dec 9, 2025

    @qwerty108109
    qwerty108109
    on Dec 9, 2025
    Author
    More actions

    I am accessing the file by using Nano in the command line in my Debian operating system.
    nano ~/.local/share/opencode/auth.json

    The Nano output is the following.

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "ollama": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "Ollama (local)",
          "options": {
            "baseURL": "http://localhost:11434/"
          },
          "models": {
            "qwen3-vl:235b": {
              "name": "qwen3-vl:235b"
            }
          }
        }
      }
    }
    
    
  13. iplayfast commented on Dec 12, 2025

    @iplayfast
    iplayfast
    on Dec 12, 2025
    More actions

    opencode.json

    Try setting up your config at ~/.opencode/opencode.json

  14. qwerty108109 commented on Dec 13, 2025

    @qwerty108109
    qwerty108109
    on Dec 13, 2025
    Author
    More actions
    • Unfortunately, even with the file provided, I'm still getting this error.
    Config file at /home/qwerty/.opencode/opencode.json is not valid JSON(C): 
    --- JSONC Input ---
    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "ollama": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "Ollama (local)",
          "options": {
            "baseURL": "http://localhost:11434/v1"
          },
          "models": {
            "llama3": {
              "name": "Llama 3"
            },
            "kimi-k2-thinking:cloud": {
              "name": "kimi k2"
            },
            "qwen3-v1:latest": {
              "name": "qwen3"
            },
            "gpt-oss:latest": {
              "name": "gtp-oss"
            },
            "llama3:latest": {
              "name": "llama3"
            },
            "devstral-small-2:latest": {
                    "name": "devstral"
          }
        }
      }
    }
    
    --- Errors ---
    CloseBraceExpected at line 32, column 1
    --- End ---
    
  15. qwerty108109 commented on Dec 13, 2025

    @qwerty108109
    qwerty108109
    on Dec 13, 2025
    Author
    More actions
    • I have updated the file and added one extra missing bracket.
    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "ollama": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "Ollama (local)",
          "options": {
            "baseURL": "http://localhost:11434/v1"
          },
          "models": {
            "llama3": {
              "name": "Llama 3"
            },
            "kimi-k2-thinking:cloud": {
              "name": "kimi k2"
            },
            "qwen3-v1:latest": {
              "name": "qwen3"
            },
            "gpt-oss:latest": {
              "name": "gtp-oss"
            },
            "llama3:latest": {
              "name": "llama3"
            },
    	"devstral-small-2:latest": {
    		"name": "devstral"
          }
        }
      }
    }
    }
    

    It is working now. Thank you.

    Reacted by Matt
  16. qwerty108109
    closed this as completedon Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.