Skip to content

desktop: model picker omits custom openai-compatible provider models; search finds nothing #59840

Closed as duplicate

Description

@nakedhavoc

Summary

Models declared under custom providers using package: "@opencode/ai/providers/openai-compatible" do not appear in the desktop model picker, and picker search returns nothing for them. Only the currently active session's model is shown. The CLI lists all declared models correctly.

Environment

  • opencode version: 2.2.0
  • OS: macOS 26.x (Darwin 25.6.0, arm64)
  • Terminal: OpenCode Desktop (Electron)
  • Shell: /bin/bash
  • Install/channel: latest
  • Active plugins: none

Reproduction

  1. Declare a custom OpenAI-compatible provider in ~/.config/opencode/opencode.json:

    {
      "providers": {
        "bigbot": {
          "package": "@opencode/ai/providers/openai-compatible",
          "settings": { "baseURL": "http://<lan-host>:8080/v1" },
          "models": {
            "deepseek-v4.1-flash": {},
            "glm-5.3-flash": {}
          }
        }
      }
    }
  2. Restart the desktop app cold (also tried: config reload, killing the opencode server process).

  3. Open the model picker and search for the declared models.

Expected Behavior

All declared custom provider models appear in the picker and are selectable/searchable, matching CLI behavior.

Actual Behavior

Only the active session's model (deepseek-v4.1-flash) appears in the picker; glm-5.3-flash and a second custom provider's models never appear, and picker search finds nothing for them. Persists across reload, app restart, and server restart.

Server log shows:

SessionRunnerModel.ModelInitializationError: Cannot initialize bigbot/deepseek-v4.1-flash:
No versions available for openai-compatible

The CLI (opencode TUI) lists all three declared models correctly, and the running service's config API also returns all of them, so the service sees the models — the desktop picker's resolution path appears to drop custom openai-compatible providers.

Related: the desktop also cannot add local providers through its provider-adding UI (known issue); the config had to be hand-edited.

Additional Context

  • Endpoints verified working: /v1/models returns the loaded models on both endpoints.
  • Requesting a declared-but-unloaded model ID succeeds (server serves whatever is loaded), so this is purely a picker/resolver-side issue.
  • Possibly relevant: ModelResolver.loadCatalogPackage treating openai-compatible as a catalog package with "no versions".

Activity

  1. opencodejr commented on Oct 28, 2026

    @opencodejr

    Thanks for the detailed report! I think this is a duplicate of #50726.

    Possible duplicates and related issues, ordered from most to least likely:

    The No versions available for openai-compatible log line might be a separate problem. If it still shows up once the picker lists your models, or if models from one provider work and the other's don't, please say so here.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. nakedhavoc commented on Oct 29, 2026

    @nakedhavoc
    Author
  3. opencodejr commented on Oct 29, 2026

    @opencodejr

    We haven't heard back, so I'm closing this as a duplicate of #50726. That issue covers the same problem: models from config-declared openai-compatible providers are missing from the desktop model picker and search, even though the server lists them. Please follow #50726 for updates. The workaround reported there may help in the meantime: in the providers UI, turn the Personal / OpenCode group off and back on.

    If your problem turns out to be different, please reply here and we can reopen this. That includes the case where the No versions available for openai-compatible error remains after your models show up in the picker. Thanks again for the detailed report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions