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 — [FEATURE]:LM Studio provider should auto-detect models via /v1/models API (similar to Continue extension) · Issue #23327 · anomalyco/opencode

[FEATURE]:LM Studio provider should auto-detect models via /v1/models API (similar to Continue extension) #23327

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]:LM Studio provider should auto-detect models via /v1/models API (similar to Continue extension)#23327
Copy link
Assignees
jlongster

Description

@lobanov-coder
lobanov-coder
opened on Apr 18, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When connecting OpenCode to LM Studio, it currently fetches a hardcoded list of models from models.dev instead of querying the local LM Studio server's /v1/models endpoint.
Other tools like the "Continue" VS Code extension handle this by using an AUTODETECT model value (or similar logic) to dynamically query available models on the provider side.
This means users have to manually update their config every time they switch or download a new model in LM Studio.
Steps to Reproduce:

  1. Install and start LM Studio with Local Server enabled (default port 1234).
  2. Load any model in LM Studio.
  3. Connect OpenCode to the lmstudio provider via /connect.
  4. Run /models inside OpenCode.
    Current Behavior:
    OpenCode shows a hardcoded list from models.dev (e.g., gpt-oss, qwen3) instead of the models actually loaded in LM Studio.
    Expected Behavior:
    OpenCode should query http://127.0.0.1:1234/v1/models and display the available local models dynamically, similar to how it works for Ollama or when using "AUTODETECT" logic.
Reacted by coton, lustfeind, daru, Spi, Stefan Chirila and Pavel Kocka

Activity

  1. lobanov-coder
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Apr 18, 2026
  2. github-actions commented on Apr 18, 2026

    @github-actions
    github-actionsBot
    on Apr 18, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Auto-discover models from OpenAI-compatible provider endpoints #6231: Requests the same feature — auto-discovering models from OpenAI-compatible provider endpoints (including LM Studio's /v1/models), with essentially the same proposed solution
    • LM Studio Failure to refresh models #2047: Related issue about LM Studio failing to refresh the model list dynamically

    If your request is the same as one of the above, please consider adding a comment there instead to consolidate discussion.

  3. SharkyRawr commented on Apr 18, 2026

    @SharkyRawr
    SharkyRawr
    on Apr 18, 2026
    More actions

    You can use a plugin for that: https://github.com/agustif/opencode-lmstudio

    Reacted by lobanov-coder
  4. yuseferi commented on Apr 27, 2026

    @yuseferi
    yuseferi
    on Apr 27, 2026
    More actions

    Thanks for @SharkyRawr , that plugin didn't work for litellm, but based on what you shared, I created the below one to fetch litellm models
    https://github.com/yuseferi/opencode-litellm

    Reacted by Sophie
  5. thdxr
    assigned
    jlongster
    on May 3, 2026
  6. thdxr
    removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  7. gx16636 commented on May 22, 2026

    @gx16636
    gx16636
    on May 22, 2026
    More actions

    I discovered this plugin https://github.com/GuoChen-thlg/opencode-auto-provider-models

    Reacted by Spi, Jelloeater and Steve Henderson
  8. devcenter
    marked [FEATURE]: Dynamic model discovery for local OpenAI-compatible providers #28999 as a duplicate of this issue on Jun 24, 2026
  9. Jelloeater commented on Jun 25, 2026

    @Jelloeater
    Jelloeater
    on Jun 25, 2026
    More actions

    This would be so great to have implemented, both Crush and Hermes do it. Shouldn't be too hard, right?

  10. github-actions commented on Aug 25, 2026

    @github-actions
    github-actionsBot
    on Aug 25, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  11. github-actions
    closed this as not plannedon Aug 25, 2026
  12. yuhp commented on Sep 11, 2026

    @yuhp
    yuhp
    on Sep 11, 2026
    More actions

    This LM Studio use case is supported by the community plugin:

    https://github.com/yuhp/opencode-models-discovery

    The plugin queries the actual LM Studio /v1/models endpoint instead of relying only on the static models.dev catalog, so the discovered model list reflects the models exposed by the local server.

    It can also use LM Studio's /api/v1/models inventory endpoint for metadata enrichment:

    {
      "plugin": ["opencode-models-discovery@latest"],
      "provider": {
        "lmstudio": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "LM Studio",
          "options": {
            "baseURL": "http://127.0.0.1:1234/v1",
            "modelsDiscovery": {
              "enabled": true,
              "modelInfoFormat": "lmstudio"
            }
          }
        }
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

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.