/models command does not list authenticated Copilot models that can be used with -m #7486

Open
opened 2026-02-16 18:07:20 -05:00 by yindo · 1 comment
Owner

Originally created by @JValdivia23 on GitHub (Jan 24, 2026).

Originally assigned to: @rekram1-node on GitHub.

Problem

When using OpenCode with a Copilot Pro subscription, the model github-copilot/claude-opus-4.5 can be set and works with the -m argument or in JSON config, but does not appear when running /models, even though it is visible and enabled in my Copilot settings and is accessible for actual use.

Expected

  • Any Copilot models that are authenticated, active in the user's Copilot settings, and usable with -m or via config should appear in the output of /models

Actual

  • Copilot models like github-copilot/claude-opus-4.5 do not show up in /models output, misleading users into thinking they are not available
  • This is confusing because the model works fine if referenced explicitly

Steps to Reproduce

  1. Have a Copilot subscription (with a model like Claude Opus 4.5 enabled at https://github.com/settings/copilot/features)
  2. Authenticate via /connect for GitHub Copilot in OpenCode
  3. Run /models in OpenCode -- github-copilot/claude-opus-4.5 is not shown
  4. Run opencode -m github-copilot/claude-opus-4.5: model works

Additional Info

  • The codebase sets autoload: false for Copilot provider, so Provider.list() may filter Copilot
  • This seems like a logic/UX bug: if a provider/model is authenticated and usable, it should be discoverable via /models.
  • The problem started since I instaled Oh-my-Opencode. Now I cannot revert the problem.

Suggestion

  • /models should detect and display any Copilot models that can actually be used with current authentication/context.
  • At minimum, clarify or add diagnostics if a model is hidden but available when referenced explicitly.
  • Optional: Add a hint to /models output if special config is needed to make Copilot models visible.
Originally created by @JValdivia23 on GitHub (Jan 24, 2026). Originally assigned to: @rekram1-node on GitHub. ## Problem When using OpenCode with a Copilot Pro subscription, the model `github-copilot/claude-opus-4.5` can be set and works with the `-m` argument or in JSON config, but does **not** appear when running `/models`, even though it is visible and enabled in my Copilot settings and is accessible for actual use. ## Expected - Any Copilot models that are authenticated, active in the user's Copilot settings, and usable with `-m` or via config **should** appear in the output of `/models` ## Actual - Copilot models like `github-copilot/claude-opus-4.5` do not show up in `/models` output, misleading users into thinking they are not available - This is confusing because the model works fine if referenced explicitly ## Steps to Reproduce 1. Have a Copilot subscription (with a model like Claude Opus 4.5 enabled at https://github.com/settings/copilot/features) 2. Authenticate via `/connect` for GitHub Copilot in OpenCode 3. Run `/models` in OpenCode -- `github-copilot/claude-opus-4.5` is not shown 4. Run `opencode -m github-copilot/claude-opus-4.5`: model works ## Additional Info - The codebase sets `autoload: false` for Copilot provider, so Provider.list() may filter Copilot - This seems like a logic/UX bug: if a provider/model is authenticated and usable, it should be discoverable via `/models`. - The problem started since I instaled Oh-my-Opencode. Now I cannot revert the problem. ## Suggestion - `/models` should detect and display any Copilot models that can actually be used with current authentication/context. - At minimum, clarify or add diagnostics if a model is hidden but available when referenced explicitly. - Optional: Add a hint to `/models` output if special config is needed to make Copilot models visible.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 24, 2026):

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

  • #7256: GitHub Copilot provider lists unavailable models instead of org-enabled ones
  • #7414: Websearch and Codesearch not working with Copilot models
  • #9203: Feature: Support disabled_models config to hide specific models

These issues relate to models not being properly displayed or available in the models list when using GitHub Copilot as a provider, which seems closely related to your report about authenticated models not showing up in the /models command output.

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

@github-actions[bot] commented on GitHub (Jan 24, 2026): This issue might be a duplicate of existing issues. Please check: - #7256: GitHub Copilot provider lists unavailable models instead of org-enabled ones - #7414: Websearch and Codesearch not working with Copilot models - #9203: Feature: Support disabled_models config to hide specific models These issues relate to models not being properly displayed or available in the models list when using GitHub Copilot as a provider, which seems closely related to your report about authenticated models not showing up in the /models command output. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7486