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 — provider/copilot: Copilot Free accounts show no models because model_picker_enabled gates enabled · Issue #63763 · anomalyco/opencode

provider/copilot: Copilot Free accounts show no models because model_picker_enabled gates enabled #63763

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
provider/copilot: Copilot Free accounts show no models because model_picker_enabled gates enabled#63763
Copy link
Labels
area/providersProviders and model listsplatform/macosmacOStype/bugSomething is brokenversion/v2OpenCode 2.x

Description

@marcodegra5
marcodegra5
opened on Nov 13, 2026
Issue body actions

Summary

GitHub Copilot models are registered but hidden from /models for accounts on the Copilot Free plan. The Copilot provider sets each model's enabled flag from GitHub's model_picker_enabled field, and GitHub returns model_picker_enabled: false for every model of such an account, so no Copilot model is selectable even though the account has Copilot Chat access.

Environment

  • opencode version: v2.2.5 (release, channel latest)
  • OS: Darwin 27.2.0 (arm64)
  • Terminal: TERM=xterm-256color, TERM_PROGRAM and COLORTERM unset
  • Shell: /bin/zsh
  • Install/channel: release, latest
  • Active plugins: opencode-mobile-notifications, local notify plugin, ./plugins/caveman, @dietrichgebert/ponytail, superpowers (git), github:homeruntech/qa-plugin-marketplace#main::path:plugins/homerun-test-toolkit

Reproduction

  1. Connect a GitHub account whose Copilot plan is Copilot Free (access_type_sku: free_limited_copilot).
  2. Run /connect → GitHub Copilot → finish the device flow. The models list appears briefly, then empties.
  3. Open /models. No github-copilot/* entry is listed.

Expected Behavior

The Copilot models that the account is entitled to (in my case gpt-4.1, gpt-4o, gpt-4o-mini) are listed and selectable.

Actual Behavior

/models shows no Copilot model. opencode models prints zero github-copilot/* lines. Calling a Copilot model works only after forcing it back on through config, so the credentials and entitlement are fine:

"providers": {
  "github-copilot": {
    "models": {
      "gpt-4.1": { "disabled": false },
      "gpt-4o": { "disabled": false },
      "gpt-4o-mini": { "disabled": false }
    }
  }
}

With that config opencode run --model github-copilot/gpt-4o "reply with exactly: ok" answers ok.

Additional Context

GET https://api.individual.githubcopilot.com/models with the stored Copilot token returns HTTP 200 and 46 models, and all 46 carry model_picker_enabled: false:

{"data":[{"capabilities":{"family":"claude-fable-5.1", ...},"id":"claude-fable-5.1","model_picker_enabled":false,"policy":{"state":"disabled"}, ...}]}

Account state from GET https://api.github.com/copilot_internal/user:

{"access_type_sku":"free_limited_copilot","chat_enabled":true,"copilot_plan":"individual","quota_snapshots":{"chat":{"quota_remaining":200.0,"has_quota":true}}}

So the account is entitled to Copilot Chat, and 24 of the returned models pass the provider's own filter in GithubCopilotPlugin:

function sV(e) {
  return e.policy?.state !== "disabled"
    && e.capabilities.limits?.max_output_tokens !== undefined
    && e.capabilities.limits.max_prompt_tokens !== undefined
    && e.capabilities.supports.tool_calls !== undefined
}

but Y6() then assigns:

status: "active",
enabled: a.model_picker_enabled,

which turns every one of them off.

Suggested fix: do not treat model_picker_enabled as the source of truth for enabled. Either keep the model enabled and let the first request surface the real entitlement error, or gate on policy.state plus the capability checks already present, using model_picker_enabled only as a display hint.

Related observation, possibly separate: some models are rejected per client with The requested model is not available for integrator "opencode". Verify the correct Copilot-Integration-Id header is being sent. (kimi-k3-base, kimi-k3-copilot, gpt-5.4-nano). gpt-5.4-nano returns 200 with Copilot-Integration-Id: vscode-chat, so GitHub allowlists some models per integrator id.

Workaround in use: enabling the working models explicitly through providers.github-copilot.models.<id>.disabled: false.

Reacted by ln-12

Activity

  1. opencodejr commented on Nov 13, 2026

    @opencodejr
    opencodejrBot
    on Nov 13, 2026
    Contributor
    More actions

    Thanks for the detailed report and the API data. I think this is a duplicate of #34644, the tracking issue for Copilot Free and Student accounts showing no Copilot models. On these accounts Copilot's /models marks every model model_picker_enabled: false, and OpenCode copies that into each model's enabled flag.

    Possible duplicates and related issues, ordered by likelihood:

    • GitHub Copilot Free/Student plans (Auto-only) show no models: add github-copilot/auto #34644: the tracking issue for this problem. It was closed as fixed in v2.2.7 (feat(core): add GitHub Copilot Auto and a model resolve hook #62997), which adds a Copilot Auto model for accounts with an Auto pool, including Free and Student plans.
    • fix(core): keep Copilot models selectable without a model picker #57956: an open pull request that keeps the models an Auto-only account can call directly (such as gpt-4o and gpt-4.1) selectable. It hasn't been merged.
    • github-copilot: Copilot Free accounts expose no models in /models (enabled mapped from model_picker_enabled) #56355, providers: GitHub Copilot Free lists no models (model_picker_enabled=false drops all; configured models ignored) #56434, core: github-copilot shows zero models on auto-only accounts (model_picker_enabled false for every model) #57955: earlier reports of the same problem, closed as duplicates of GitHub Copilot Free/Student plans (Auto-only) show no models: add github-copilot/auto #34644.
    • provider: slow plugin setup disables all github-copilot models #57495, copilot: models fail to sync in shared service; attached models still resolve as unavailable #60702: related. Copilot models disappear there for a different reason (sync timing).

    You're on v2.2.5, and the latest release is v2.2.7, so upgrading should give you Auto in /models. In v2.2.7 the individual models still get their enabled flag from model_picker_enabled, so gpt-4.1, gpt-4o and gpt-4o-mini will probably still be hidden. Your disabled: false config remains the workaround for those; #57956 is where that part is being handled.

    The not available for integrator "opencode" rejection looks like a separate problem. I didn't find an existing issue for it, so please open a new one for it if it matters to you.

    I'm closing this issue now as a duplicate of #34644. Please add your details there (your v2.2.5 /models data and whether v2.2.7 shows Auto would help). If you think this isn't a duplicate, reply here and the issue will reopen.

  2. opencodejr
    closed this as a duplicateof GitHub Copilot Free/Student plans (Auto-only) show no models: add github-copilot/auto #34644 on Nov 13, 2026
  3. opencodejr
    added
    area/providersProviders and model lists
    platform/macosmacOS
    type/bugSomething is broken
    version/v2OpenCode 2.x
    on Nov 13, 2026
  4. ln-12 commented on Nov 18, 2026

    @ln-12
    ln-12
    on Nov 18, 2026
    More actions

    I installed the latest build v2.3.2 but can still not select any GitHub Copilot models in the free plan. After some more investigation it might be related to my account, here are my findings.

    The github-copilot/auto model in OpenCode is only created when at least one model returned by the GitHub /models API has the billing.auto_discount flag enabled. This flag indicates that the model supports usage-based billing, which is required for OpenCode to synthesize the auto model and route requests to GitHub's /auto endpoint.

    For Free plans (free_limited_copilot), the /models API response does not return any models with billing.auto_discount. Instead:

    • All 44 models return billing.auto_discount: null, preventing routing to Auto.
    • model_picker_enabled: false for all these models, making them inaccessible from the OpenCode model menu without manual overrides.

    Even though the /auto endpoint works (it always selects mai-code-2-flash on my account), the model remains inaccessible directly from OpenCode because mai-code-2-flash isn't made available by GitHub as an OpenCode compatible model.

    Models That Work

    From the 44 models returned, 12 models work directly (via /chat/completions), including 3 modern and optimal Copilot models. These were tested successfully with a test prompt.

    # Model ID Name Endpoint Notes
    1 gpt-4.1 GPT-4.1 /chat/completions Default + fallback for this account.
    2 gpt-4o GPT-4o /chat/completions Latest and strongest Copilot model.
    3 gpt-4o-mini GPT-4o mini /chat/completions Cheaper, leaner version of GPT-4o.
    4 gpt-4.1-2025-04-14 GPT-4.1 /chat/completions Dated alias for GPT-4.1.
    5 gpt-4o-2024-05-13 GPT-4o /chat/completions Snapshot of GPT-4o.
    6 gpt-4o-2024-08-06 GPT-4o /chat/completions Snapshot of GPT-4o.
    7 gpt-4o-2024-11-20 GPT-4o /chat/completions Snapshot of GPT-4o.
    8 gpt-4o-mini-2024-07-18 GPT-4o mini /chat/completions Snapshot of GPT-4o mini.
    9 copilot-search-a Copilot Agent A /chat/completions Special-purpose search-agent model.
    10 copilot-search-b Copilot Search B /chat/completions Special-purpose search-agent model.
    11 gpt-4-o-preview GPT-4o /chat/completions Legacy alias for GPT-4o.
    12 gpt-3.5-turbo-0613 GPT 3.5 Turbo /chat/completions Functional legacy model.

    So the only really usable ones are gpt-4.1, gpt-4o and gpt-4o-mini - just as the original author already concluded.

    However, I played around with those but the usage in my account dashboard did not increase, so I am not sure if this is supported/intended or if it might cause issues due to some kind of terms of service violations.

    Complete Table of All Returned Models

    For completeness, here is the full list of models returned by GitHub's /models endpoint:

    # Model ID Name Picker Policy OpenCode-usable Free SKU Auto Discount
    1 claude-fable-5.1 Claude Fable 5.1 no disabled no no
    2 claude-fable-5.2 Claude Fable 5.2 no disabled no no
    3 claude-fable-5 Claude Fable 5 no disabled no no
    4 claude-haiku-5.5 Claude Haiku 5.5 no disabled no no
    5 claude-opus-4.8-fast Claude Opus 4.8 (fast) no disabled no no
    6 claude-opus-5.5 Claude Opus 5.5 no disabled no no
    7 claude-opus-5 Claude Opus 5 no disabled no no
    8 claude-sonnet-5.5 Claude Sonnet 5.5 no disabled no no
    9 claude-sonnet-5 Claude Sonnet 5 no disabled no no
    10 copilot-search-a Copilot Agent A no — yes yes no
    11 copilot-search-b Copilot Search B no — yes yes no
    12 gemini-3.8-flash Gemini 3.8 Flash no disabled no no
    13 gemini-4-argon Gemini 4 Argon no disabled no no
    14 gpt-5.6-luna GPT-5.6 Luna no enabled yes yes no
    15 gpt-5.6-sol GPT-5.6 Sol no disabled no no
    16 gpt-5.6-luna-utility GPT-5.6 Luna Utility no — yes no
    17 gpt-6.1-sol GPT-6.1 Sol no disabled no no
    18 gpt-6-astra GPT-6 Astra no disabled no no
    19 gpt-6-luna-decisions GPT-6 Luna Decisions no — no no
    20 gpt-6-luna GPT-6 Luna no enabled yes yes no
    21 gpt-6-sol GPT-6 Sol no disabled no no
    22 kimi-k3 Kimi K3 no disabled no no
    23 mai-code-1.1-flash MAI-Code-1.1 Flash no enabled yes yes no
    24 mai-code-2-flash MAI Code 2 Flash no enabled yes yes no
    25 mai-code-2 MAI Code 2 no disabled no no
    26 gpt-4o-mini-2024-07-18 GPT-4o mini no — yes no
    27 gpt-4o-2024-11-20 GPT-4o no — yes no
    28 gpt-4o-2024-08-06 GPT-4o no — yes no
    29 text-embedding-3-small Embedding V3 Small no — no no
    30 text-embedding-3-small-inference Embedding V3 Small (Inference) no — no no
    31 claude-haiku-4.5 Claude Haiku 4.5 no enabled yes no
    32 gpt-4.1-2025-04-14 GPT-4.1 no enabled yes no
    33 gpt-5.6-luna-free-auto GPT-5.6 Luna Free Auto no — yes yes no
    34 gpt-41-copilot GPT-4.1 Copilot no — no no
    35 gpt-3.5-turbo-0613 GPT 3.5 Turbo no — yes no
    36 gpt-4 GPT 4 no — yes no
    37 gpt-4-0613 GPT 4 no — yes no
    38 gpt-4o-2024-05-13 GPT-4o no — yes no
    39 gpt-4-o-preview GPT-4o no — yes no
    40 gpt-4.1 GPT-4.1 no enabled yes default+fallback no
    41 gpt-3.5-turbo GPT 3.5 Turbo no — yes no
    42 gpt-4o-mini GPT-4o mini no — yes no
    43 gpt-4o GPT-4o no — yes no
    44 text-embedding-ada-002 Embedding V2 Ada no — no no

    The final config I used is this one (~/.config/opencode/opencode.jsonc):

    {
      "$schema": "https://opencode.ai/config.json",
      "providers": {
        "github-copilot": {
          "models": {
            "gpt-4.1": { "disabled": false },
            "gpt-4o": { "disabled": false },
            "gpt-4o-mini": { "disabled": false }
          }
        }
      }
    }

    It works for me but as I said, I am not sure if it might cause issues to use them. Use as your own risk.

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

    area/providersProviders and model listsplatform/macosmacOStype/bugSomething is brokenversion/v2OpenCode 2.x

    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.