anomalyco / anomalyco/opencode

github-copilot: accounts without entitlement appear connected but expose no models

Open
#46,891 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

GitHub Copilot authentication succeeds even when the GitHub account has no Copilot subscription or assigned seat, but the provider has no usable models.

In v1, the empty model list sends the user back through the connection flow indefinitely. In v2, Integrations shows GitHub Copilot as connected, but no models are available and there is no actionable explanation that the account lacks a Copilot entitlement.

This differs from reports where paid/entitled accounts lose models because of OAuth scopes. Here the account is known not to have a Copilot subscription or seat.

Expected: after OAuth, OpenCode should detect that the account has no Copilot entitlement and show a clear message. The provider should not appear usable/connected without explaining why no models are available.

Actual: OAuth completion is treated as a successful connection. v1 loops back to connect with an empty model list; v2 shows a connected integration with no models or useful entitlement error.

Plugins

None required

OpenCode version

v1: 1.18.26; v2: v0.0.0-beta-18866

Steps to reproduce
  1. Use a GitHub account without a GitHub Copilot subscription or assigned organization seat.
  2. In OpenCode v1, choose GitHub Copilot in /connect and complete the GitHub device authorization.
  3. Open the model picker. No Copilot models are shown, and attempting to connect again repeats the same flow.
  4. Repeat in OpenCode v2.
  5. Open Integrations. GitHub Copilot appears connected, but the model list is empty and no message explains the missing entitlement.
Screenshot and/or share link

Not available; this occurs before a usable model can be selected.

Operating System

macOS 26.6.2 (arm64)

Terminal

Ghostty

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the GitHub Copilot OAuth/device authorization flow used by /connect, then compare how v1's model picker and v2's Integrations screen handle an empty model list. Verify the behavior with an account lacking a Copilot subscription or seat; done means OAuth does not present the provider as usable without a clear entitlement explanation, and the v1 reconnect loop is avoided.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, typescript
Domain
ai, authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.