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 — Lmstudio Models are not listed correctly · Issue #2456 · anomalyco/opencode

Lmstudio Models are not listed correctly #2456

New issue
Copy link
New issue
Copy link
Closed
#8359
Closed
Lmstudio Models are not listed correctly#2456
#8359
Copy link
Assignees
thdxr

Description

@haltingstate
haltingstate
opened on Sep 6, 2025
Issue body actions

Bug: GPT-120B-oss and other loaded models are not displayed in /models in opencode, when using lmstudio

  1. It will use GPT-120B-oss if I set model that is not on lmstudio (like qwen)

  2. but if I set GPT-30B-oss; then it will tell lmstudio to load that model and it loads model

  3. the model I am actually using (GPT-120B) does not show up in /models); and is only used if I select a model that lmstudio has not loaded

Maybe, use API, to check

    1. which models lm studio has loaded/ready (and show in /models)
    1. to check the context size for the model (which I had to increase; maybe put warning)

Very good job on this tool


I have Lmstudio running with GPT-120-oss

I am using opencode (latest).

I did "opencode auth login" and set BS api key for lm studio

  • NOTE: for LMstudio put note "type in any code; unless configured" when doing auth
  • it wasted 2 minutes of my time, looking up that lmstudio does not need api key unless configured; so instructioners were confusing
  • bug: blank api key is rejected as invalid for lmstudio auth,

Reacted by marduk191, Robin Bially and Davi S. Zucon

Activity

  1. github-actions commented on Sep 6, 2025

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

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

    • LM Studio Failure to refresh models #2047: LM Studio Failure to refresh models - Similar issue where models aren't getting refreshed/listed correctly in opencode
    • Better support for LM Studio local provider/models #508: Better support for LM Studio local provider/models - Request for using /models endpoint to automatically detect loaded models, similar to your suggestion
    • LM Studio Missing as Provider, custom provider for LM Studio non-functional. #1555: LM Studio Missing as Provider, custom provider for LM Studio non-functional - Issues with LM Studio configuration and model detection
    • How to use apiKey with local models endpoint? #738: How to use apiKey with local models endpoint? - Discusses API key handling with local models (mentions blank API key rejection)

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

  2. rekram1-node commented on Sep 6, 2025

    @rekram1-node
    rekram1-node
    on Sep 6, 2025
    Member
    More actions

    I think at the moment you need to specify the models in your configuration see docs:
    https://opencode.ai/docs/providers/#lm-studio

    Reacted by Dominik Weckmüller
  3. rekram1-node
    assigned
    thdxr
    on Sep 6, 2025
  4. Lord-ZuzurNC commented on Nov 21, 2025

    @Lord-ZuzurNC
    Lord-ZuzurNC
    on Nov 21, 2025
    More actions

    Hello,

    I'm facing similar issue. I saw issue #4232 with the formatting but doesn't help.

    Here my auth.json (in C:\users\myUser\.local\share\opencode)

    {
      "lmstudio": {
        "type": "api",
        "key": "qwen2.5-coder-14b-instruct"
      }
    }
    

    For the API I saw on LM Studio that it says "API identifier" so I tried this (but whatever if I use that or "lm-studio" I don't have result)

    Image

    My opencode.json (in C:\users\myUser\.local\share\opencode)

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "lmstudio": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "LM Studio",
          "options": {
            "baseURL": "http://127.0.0.1:1234/v1"
          },
          "models": {
            "lmstudio-community/Qwen2.5-Coder-14B-Instruct-GGUF": {
              "name": "Qwen 2.5 Coder 14B Instruct"
            }
          }
        }
      }
    }
    

    Of course LM Studio is opened, Model is loaded and server is UP. I can curl my LM Studio API

    # curl http://localhost:1234/v1/models
    
    {
      "data": [
        {
          "id": "qwen2.5-coder-14b-instruct",
          "object": "model",
          "owned_by": "organization_owner"
        },
        {
          "id": "text-embedding-nomic-embed-text-v1.5",
          "object": "model",
          "owned_by": "organization_owner"
        }
      ],
      "object": "list"
    }
    

    Here when I do opencode models

    lmstudio/openai/gpt-oss-20b
    lmstudio/qwen/qwen3-30b-a3b-2507
    lmstudio/qwen/qwen3-coder-30b
    opencode/gpt-5-nano
    opencode/big-pickle
    opencode/grok-code
    

    Me env is:
    Windows 11 25H2 build 26200.7171
    I use VS Code with "opencode" plugin (v0.0.12)
    OpenCode is installed ver 1.0.81
    LM Studio installed ver 0.3.32

    Reacted by stoneskin (Mr. Sun), Jeon Suyeol and Dmitry D.
  5. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    rekram1-node
    on Nov 21, 2025
    Member
    More actions

    We don't automatically grab the models for lm studio but we should

    Reacted by Lord_ZuzurNC, Leo Li, stoneskin (Mr. Sun), Joe Park, Jarkko, Robin Bially, Andreas Wäscher, Alexander Trauzzi, lowlandz, Stoned and 3 more
  6. Lord-ZuzurNC commented on Nov 23, 2025

    @Lord-ZuzurNC
    Lord-ZuzurNC
    on Nov 23, 2025
    More actions

    Hello again,
    I re-read all the docs and if I was able to read properly I would be able to make it work...

    The thing that I missed (it was well documented but you and I missed it in my comment) is where is located my opencode.json

    In my com I said I put it in C:\users\myUser\.local\share\opencode but it should be located in (at least for a Global Config) in C:\users\myUser\.config\opencode.

    It all works for me now, sorry for the noises..

  7. thdxr
    closed this as completedon Mar 25, 2026
  8. harduino commented on Apr 20, 2026

    @harduino
    harduino
    on Apr 20, 2026
    More actions

    Hi All, if you put models to config JSON-file, but still don't see it listed, try to "activate" its view in "Manage Models"

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

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

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.