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 — fix(provider): auto-discover models for OpenAI-compatible providers (e.g. LM Studio) · Issue #32076 · anomalyco/opencode

fix(provider): auto-discover models for OpenAI-compatible providers (e.g. LM Studio) #32076

New issue
Copy link
New issue
Copy link
Closed
Closed
fix(provider): auto-discover models for OpenAI-compatible providers (e.g. LM Studio)#32076
Copy link
Assignees
jlongster

Description

@ghost
ghost
opened on Jun 12, 2026

Description

When configuring LM Studio (or other OpenAI-compatible local inference servers) as a custom provider in opencode.json, opencode does not auto-discover the list of loaded models from the GET /v1/models endpoint.

Currently only the 3 LM Studio models hardcoded in the models.dev catalog appear in the UI (GPT OSS 20B, Qwen3 30B A3B 2507, Qwen3 Coder 30B), while other models actually loaded in the local LM Studio instance are invisible.

The discoverModels extension point already exists but is only implemented for GitLab. Generic OpenAI-compatible custom providers lack model discovery.

Steps to reproduce

  1. Configure LM Studio provider in opencode.json with baseURL set to http://127.0.0.1:1234/v1
  2. Load multiple models in LM Studio (e.g. 5+ models)
  3. Open the opencode desktop UI and view available models
  4. Only the 3 models from models.dev are shown, not all models loaded in LM Studio

OpenCode version

1.17.4

Operating System

Windows 11

Activity

  1. github-actions
    assigned
    jlongster
    on Jun 12, 2026
  2. github-actions commented on Jun 12, 2026

    @github-actions
    github-actionsBot
    on Jun 12, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • [FEATURE]: Auto-discover models from OpenAI-compatible providers #27553: Auto-discover models from OpenAI-compatible providers (same feature request)
    • Auto-discover models from OpenAI-compatible provider endpoints #6231: Auto-discover models from OpenAI-compatible provider endpoints (same feature request)
    • [FEATURE]: Dynamic model discovery for local OpenAI-compatible providers #28999: Dynamic model discovery for local OpenAI-compatible providers (same feature request)
    • [FEATURE]: Detect model(s) using the /v1/models route on custom provider #25624: Detect model(s) using the /v1/models route on custom provider (same feature request)
    • [FEATURE]: Hydrate custom provider model metadata from /v1/models and Models.dev #25407: Hydrate custom provider model metadata from /v1/models and Models.dev (closely related)
    • [Feature Request]: Allow dynamic model passthrough for custom OpenAI-compatible providers without explicit declaration #18219: Allow dynamic model passthrough for custom OpenAI-compatible providers without explicit declaration (closely related)

    If your issue is already covered by one of the above, please add a thumbs-up reaction or comment there instead so effort can be consolidated.

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.