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 — core: github-copilot shows zero models on auto-only accounts (model_picker_enabled false for every model) · Issue #57955 · anomalyco/opencode

core: github-copilot shows zero models on auto-only accounts (model_picker_enabled false for every model) #57955

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
core: github-copilot shows zero models on auto-only accounts (model_picker_enabled false for every model)#57955
Copy link
Labels
pending closetriaging

Description

@thdhyan
thdhyan
opened on Oct 21, 2026
Issue body actions

Description

The github-copilot provider registers zero models on Copilot Free/Student accounts, so /models shows nothing for it and every request fails with Model unavailable: github-copilot/<model>.

Root cause: GET /models returns model_picker_enabled: false for every model on accounts that only support auto model selection, and packages/core/src/github-copilot/models.ts maps that flag directly onto Model.Info.enabled:

enabled: remote.model_picker_enabled,

Every model is then hidden from the picker, so the provider ends up with nothing selectable even though the sync itself succeeds.

Evidence from a live Copilot Free/edu account (copilot_plan: individual, access_type_sku: free_educational_quota), reproduced on both 2.0.27 and 2.1.2:

  • GET https://api.individual.githubcopilot.com/models → HTTP 200, 42 models, model_picker_enabled: false for all 42. 16 of them carry policy.state: "disabled" (not entitled on this plan), the rest are entitled.
  • The sync succeeds: there is no failed to sync GitHub Copilot models warning in the server log.
  • opencode auth list → GitHub Copilot stored.
  • opencode models → no github-copilot/* entry at all.
  • opencode run -m github-copilot/gpt-4o "hi" → Error: Model unavailable: github-copilot/gpt-4o.
  • The models are callable with the stored token, e.g. POST /chat/completions with model: gpt-4o returns a normal completion.

This is the v2 continuation of #42083 (closed as a v1 issue) and the same problem reported in #34644, #56355 and #56434.

Two extra details that may help with the fix, from the same account:

  • /models also returns is_chat_default (gpt-4.1) and is_chat_fallback (gpt-5.3-codex), and 17 models carry billing.auto_discount.
  • POST /auto (requires X-GitHub-Api-Version: 2026-08-01) returns { session_token, selected_model, expires_at }. Here selected_model.id was gpt-5.6-luna, whose billing.restricted_to includes free/edu. Calling that model with the returned Copilot-Session-Token header succeeds. This is the route feat(core): add GitHub Copilot auto model #55960 builds on, and it does work against a free/edu account.

Plugins

None

OpenCode version

2.0.27 and 2.1.2 (both reproduce)

Steps to reproduce

  1. /connect → GitHub Copilot → device login with a Copilot Free/Student account.
  2. opencode auth list → GitHub Copilot GitHub Copilot stored.
  3. opencode models → no github-copilot/* entries.
  4. opencode run -m github-copilot/gpt-4o "hi" → Error: Model unavailable: github-copilot/gpt-4o.

Screenshot

N/A

Operating System

Ubuntu 24.04.5 LTS (linux x64)

Terminal

GNOME Terminal (opencode TUI and CLI)

Activity

  1. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 21, 2026 – with OpenCode Agent
    Contributor
    More actions

    Thanks for the detailed report and the live API checks, including the POST /auto findings. I think this is a duplicate of #34644. It's the same problem: Copilot Free/Student accounts only allow auto model selection, so /models returns model_picker_enabled: false for every model and github-copilot ends up with no selectable models.

    Possible duplicates and closely related issues, ordered by likelihood:

    • GitHub Copilot Free/Student plans (Auto-only) show no models: add github-copilot/auto #34644: open issue for Free/Student (auto-only) accounts showing no Copilot models; this is where the fix is tracked
    • github-copilot: Copilot Free accounts expose no models in /models (enabled mapped from model_picker_enabled) #56355: the same model_picker_enabled → enabled mapping on a Copilot Free account on v2 (2.0.31); it was reproduced and closed as a duplicate of GitHub Copilot Free/Student plans (Auto-only) show no models: add github-copilot/auto #34644
    • providers: GitHub Copilot Free lists no models (model_picker_enabled=false drops all; configured models ignored) #56434: the same symptom on v2.0.27, with configured models ignored too; closed as a duplicate
    • GitHub Copilot provider shows zero models: all models return model_picker_enabled: false #42083: the same root cause in v1; closed

    Related PRs: #55960 adds a github-copilot/auto model (using the /auto route you describe) and is linked to #34644. Your #57956 takes a different approach, keeping the models selectable. It may help to link it to #34644 so maintainers can compare the two.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different from #34644.

  2. opencode-agent
    added
    pending close
    triaging
    on Oct 21, 2026
  3. thdhyan commented on Oct 21, 2026

    @thdhyan
    thdhyan
    on Oct 21, 2026
    Author
    More actions

    Thanks for the triage. This is the same symptom as #34644 and I am linking it there so the fix stays tracked in one place — but there is v2-specific information here that the v1 issue does not have, so I am keeping this open rather than letting it auto-close.

    What is new in this report

    1. Reproduced on v2, on two releases. GitHub Copilot Free/Student plans (Auto-only) show no models: add github-copilot/auto #34644 was filed against 1.17.11. This reproduces on 2.0.27 and 2.1.2 (current). The v1 code filtered the catalog by pickerEnabled; v2 instead maps the flag onto Model.Info.enabled in packages/core/src/github-copilot/models.ts:

      enabled: remote.model_picker_enabled,

      So on v2 the models are fetched and registered, then every one of them is hidden. That is why there is no failed to sync GitHub Copilot models warning in the log — the sync succeeds, the models are just disabled.

    2. Which models those accounts can actually call. With the stored token, /chat/completions answers 200 for the legacy chat models and model_not_supported for everything Copilot meters. On my account (42 models in /models, 22 usable):

      Answer directly with the OAuth token Need the /auto session token
      gpt-4o, gpt-4o-mini, gpt-4.1, gpt-3.5-turbo, gpt-4-o-preview, gpt-4o-2024-*, gpt-4.1-2025-04-14, copilot-search-a/b gpt-4, gpt-4-0613, gpt-41-copilot, claude-haiku-4.5, kimi-k3, gpt-5.3-codex, gpt-5.6-luna, gpt-5.6-luna-utility, gpt-6-luna, mai-code-1.1-flash

      The split follows the /models metadata: the metered ones (billing.token_prices.batch_size > 0) and the ones that only advertise /responses are served through the auto route.

    3. POST /auto verified on a real Free/edu account. feat(core): add GitHub Copilot auto model #55960 notes it was not yet verified on a Student account, so for the record — it works. POST /auto with X-GitHub-Api-Version: 2026-08-01 returns { session_token, selected_model, expires_at }; here selected_model.id was gpt-5.6-luna with billing.restricted_to including free/edu, and calling that model on /responses with the returned Copilot-Session-Token header answers normally. The same model called directly with the OAuth token answers model_not_supported.

    4. Two other fields in /models that may be useful for the auto model: is_chat_default (here gpt-4.1) and is_chat_fallback (here gpt-5.3-codex), plus billing.auto_discount on 17 of the models.

    Related

    • fix(core): keep Copilot models selectable without a model picker #57956 keeps the models an auto-only account can call directly selectable; it leaves the modern models to the auto route.
    • feat(core): add GitHub Copilot auto model #55960 adds the github-copilot/auto model for the rest.

    Against GitHub's own documentation, Copilot Free and Student are auto-model-selection only, so both halves are needed for those accounts.

  4. opencode-agent
    closed this as duplicateon Oct 22, 2026
  5. opencode-agent commented on Oct 22, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 22, 2026 – with OpenCode Agent
    Contributor
    More actions

    Closing this as a duplicate of #34644. It's the same problem: on Copilot Free/Student (auto-only) accounts, /models returns model_picker_enabled: false for every model, so github-copilot ends up with nothing selectable. We didn't hear back about how this report differs, so please follow #34644 for updates. The fix is being worked on there in #55960, and your PR #57956 offers another approach. Thanks for the detailed API findings. If your problem turns out to be different, reply here and we can reopen.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending closetriaging

    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.