Skip to content

/models command shows preset list instead of actual LM Studio local models #25351

Closed as not planned

Description

Description

Describe the bug
When using LM Studio as local provider, the /models command displays hardcoded preset models from models.dev (like "GPT OSS 20B", "Qwen3 30B A3B 2507") instead of querying the local LM Studio API endpoint http://127.0.0.1:1234/v1/models to get actually loaded models.

To Reproduce

  1. Start LM Studio and load a model (e.g., gemma-4-26b-a4b-it)
  2. Enable Local Server (default port 1234)
  3. Configure opencode.json with lmstudio provider
  4. Run /models in OpenCode Desktop/TUI

Expected behavior
/models should query http://127.0.0.1:1234/v1/models and display only models actually available in local LM Studio instance.

Actual behavior
Shows preset models from models.dev that user does not have downloaded.

Evidence
Direct API call returns correct local models:

curl http://127.0.0.1:1234/v1/models

About the duplicate flag: #18011 reports that LM Studio shows only 3/9 models (partial list). This issue reports that /models shows a completely different preset list (from models.dev) rather than querying the API at all. These are different symptoms: #18011 gets some models from the API but not all; this issue gets zero models from the API. #2047 and #23327 are related (LM Studio model refresh issues) but do not address the preset vs API discrepancy.

Activity

  1. github-actions commented on May 1, 2026

    @github-actions
    Contributor

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

    Please review these issues and consider whether your report adds new information or should be tracked there instead.

  2. removed
    bugSomething isn't working
    on May 3, 2026
  3. rekram1-node commented on Jun 22, 2026

    @rekram1-node
    Contributor

    STOP SPAMMING ISSUES.

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

Metadata

Metadata

Assignees

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