Skip to content

OpenCode displays models which aren't configured & don't exist in LM Studio #4232

@jschmdt

Description

@jschmdt

Description

I configured the opencode.json to work with LM Studio. And made sure to delete all opencode files under .local beforehand to have a clean init and config.

I used the config example provided https://opencode.ai/docs/providers/#lm-studio

When I added my custom model, launched LM Studio and ran OpenCode in Terminal, the model list shows additional models which aren't configured in my opencode.json. The other configured models show up with the right name (as defined in the .json) and can be loaded successfully. See screenshots & steps to reproduce or further details.

Where do the other model

OpenCode version

1.0.58 (brew, macOS)

Steps to reproduce

  1. Copied config example from https://opencode.ai/docs/providers/#lm-studio
  2. Added a custom model from LM Studio (gpt-oss-20b) in opencode.json
  3. Run opencode in Terminal
  4. Ctrl+x > m to list models
  5. Model list shows additional models: Qwen3 Coder 30B & Qwen3 30B A3B 2507 - the latter isn't even installed in LM Studio) (Screenshot Nr. 1)
  6. opencode.json doesn't contain neither Qwen3 Coder 30B or Qwen3 30B A3B 2507 (Screenshot Nr. 2)

Screenshot and/or share link

Screenshot Nr. 1 – Select Model in OpenCode 1.0.58
Image

Screenshot Nr. 2 – Custom Models added in opencode.json
Image

Operating System

macOS Tahoe 26.1

Terminal

iTerm 3.5.6 / Visual Studio Code 1.106.0-insider

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