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) #57955DescriptionDescription
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
/connect → GitHub Copilot → device login with a Copilot Free/Student account.
opencode auth list → GitHub Copilot GitHub Copilot stored.
opencode models → no github-copilot/* entries.
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) Activityopencode-agent commented on Oct 21, 2026 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:
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.
thdhyan commented on Oct 21, 2026 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
-
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.
-
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.
-
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.
-
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
Against GitHub's own documentation, Copilot Free and Student are auto-model-selection only, so both halves are needed for those accounts. opencode-agent commented on Oct 22, 2026 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|