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 shows no models — Auto is not detected after GitHub removed billing.auto_discount from /models · Issue #65464 · anomalyco/opencode

provider/copilot: Copilot Free shows no models — Auto is not detected after GitHub removed billing.auto_discount from /models #65464

New issue
Copy link
New issue
Copy link
In review
In review
provider/copilot: Copilot Free shows no models — Auto is not detected after GitHub removed billing.auto_discount from /models#65464
#63093 (+2)
Copy link
Labels
area/providersProviders and model listsplatform/linuxLinuxstatus/repro-simulatedReproduced with a simulated model or mocktype/bugSomething is brokenversion/v2OpenCode 2.x

Description

@rombert
rombert
opened on Nov 21, 2026
Issue body actions

Summary

With a GitHub Copilot Free account, connecting via /connect → GitHub Copilot → device flow succeeds, but no github-copilot/* model appears in /models — including no Auto. The provider hides every model whose model_picker_enabled is false and synthesizes a single selectable Auto entry, but that entry is only created when the account's /models payload contains a model flagged with billing.auto_discount. GitHub no longer returns that field for this account; the Auto entry is now flagged with a top-level "auto": true instead, which the provider does not model. The result is an empty picker.

Environment

  • opencode version: 2.3.2
  • OS: openSUSE Tumbleweed (opensuse-tumbleweed 20261119), Linux 7.3.4-1-default x86_64
  • Terminal: alacritty inside tmux (TERM_PROGRAM=tmux, TERM=xterm-256color, COLORTERM=truecolor)
  • Shell: /usr/bin/fish
  • Install/channel: release, channel latest
  • Active plugins: none found in config

Reproduction

  1. Connect a GitHub account whose Copilot plan is Copilot Free (access_type_sku: free_limited_copilot).
  2. Finish the device flow; the credential is created and active.
  3. Open /models in the TUI (or run opencode models). No github-copilot/* entry is listed, and there is no Auto either.

Reproduced consistently in the TUI, running fish under alacritty in tmux.

Expected Behavior

At minimum a single selectable Auto entry, since the account is entitled to Copilot Chat and Free/Student plans are Auto-only (see #34644 / #62997).

Actual Behavior

Zero Copilot models. GET /api/model shows no github-copilot models and no github-copilot/auto.

Additional Context

GET https://api.individual.githubcopilot.com/models with the stored OAuth token and X-GitHub-Api-Version: 2026-08-01 returns HTTP 200 with 44 models, where:

  • all 44 carry "model_picker_enabled": false
  • 0 carry billing.auto_discount
  • exactly 1 carries a top-level "auto": true

The one with the new field:

{
  "id": "gpt-5.6-luna-free-auto",
  "name": "GPT-5.6 Luna",
  "auto": true,
  "billing": { "restricted_to": ["free"] },
  "model_picker_enabled": false,
  "capabilities": {
    "limits": { "max_output_tokens": 128000, "max_prompt_tokens": 922000 },
    "supports": { "tool_calls": true, "vision": true }
  },
  "supported_endpoints": ["/responses", "ws:/responses"]
}

A representative model with no auto_discount:

{
  "id": "gpt-5.6-luna",
  "billing": {
    "restricted_to": ["free", "edu", "pro", "pro_plus", "business", "enterprise", "max"],
    "token_prices": { "batch_size": 1000000, "default": { "input_price": 20, "output_price": 120 } }
  },
  "model_picker_enabled": false,
  "policy": { "state": "enabled" }
}

Applying the provider's own usable() filter leaves 22 models, but the provider sets enabled: model_picker_enabled, so all 22 are hidden; and the Auto pool (built from billing.auto_discount) is empty, so no Auto model is added. Net result: nothing selectable.

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

{
  "access_type_sku": "free_limited_copilot",
  "chat_enabled": true,
  "copilot_plan": "individual",
  "endpoints": { "api": "https://api.individual.githubcopilot.com" },
  "quota_snapshots": { "chat": { "has_quota": true, "quota_remaining": 200.0 } }
}

Why this is not a duplicate of #34644 / #63763

  • GitHub Copilot Free/Student plans (Auto-only) show no models: add github-copilot/auto #34644 was closed as completed in v2.2.7 by feat(core): add GitHub Copilot Auto and a model resolve hook #62997, which detects the Auto pool via billing.auto_discount. That assumption no longer holds for this account: the field is absent from every model in the response.
  • provider/copilot: Copilot Free accounts show no models because model_picker_enabled gates enabled #63763 (reported on v2.2.5) was closed as a duplicate of GitHub Copilot Free/Student plans (Auto-only) show no models: add github-copilot/auto #34644; its write-up attributes the problem to model_picker_enabled gating enabled. The distinguishing detail here is different: the Auto entry now carries a top-level "auto": true, and billing.auto_discount is gone.
  • Reproduced on v2.3.2, i.e. after the v2.2.7 change.

Workaround

None via the UI. Pinning a model in config (providers.github-copilot.models.<id>.disabled: false) is not a real workaround on a Free plan: direct calls with the OAuth token are rejected (model_not_supported), so only the Auto route with a session token works — and no Auto entry is created.

Activity

  1. opencodejr
    added
    area/providersProviders and model lists
    platform/linuxLinux
    type/bugSomething is broken
    version/v2OpenCode 2.x
    on Nov 21, 2026
  2. opencodejr commented on Nov 21, 2026

    @opencodejr
    opencodejrBot
    on Nov 21, 2026
    Contributor
    More actions

    Seen with a simulated model or a mock server, not a real provider; a maintainer should confirm.

    Thanks for the detailed write-up. I could reproduce this with a mock in place of GitHub's Copilot API, because I don't have a Copilot Free account here.

    What I did:

    • Ran the released opencode serve (v2.3.2) with a GitHub Copilot OAuth credential pointed at a local mock.
    • The mock's /models follows your payload: every model has model_picker_enabled: false, none has billing.auto_discount, and gpt-5.6-luna-free-auto has a top-level "auto": true.
    • OpenCode fetched /models (API version 2026-08-01), but GET /api/model then listed no github-copilot provider at all: no models and no auto.
    • With the same payload plus billing.auto_discount on the auto entry, github-copilot/auto appears and is enabled. The missing field alone is enough to empty the picker.

    It still happens on the latest dev (55b127bff) run from source. The script below reproduces it (it needs the small mock server next to it). This confirms OpenCode's side given the payload you describe. I did not check GitHub's live response myself.

    Reproduction script (repro.sh)
    #!/usr/bin/env bash
    # Reproduces #65464: Copilot Free payload without billing.auto_discount (Auto flagged with "auto": true)
    # yields no github-copilot model at all. Uses a mock Copilot API on 127.0.0.1:4599 and an OAuth
    # credential whose metadata.apiEndpoint points to it.
    # Set OC_CMD to run another build, e.g. OC_CMD="bun --conditions=browser ... packages/cli/src/index.ts".
    set -u
    DIR=$(cd "$(dirname "$0")" && pwd)
    OC_CMD=${OC_CMD:-opencode}
    export HOME=$(mktemp -d) XDG_DATA_HOME= XDG_CONFIG_HOME= XDG_STATE_HOME= XDG_CACHE_HOME=
    unset XDG_DATA_HOME XDG_CONFIG_HOME XDG_STATE_HOME XDG_CACHE_HOME
    export OPENCODE_SERVER_PASSWORD=repro
    AUTH=(-u opencode:repro)
    PORT=4599 bun "$DIR/mock-copilot.ts" > /tmp/opencode/mock.log 2>&1 & MOCK=$!
    mkdir -p "$HOME/proj" && cd "$HOME/proj"
    $OC_CMD serve --hostname 127.0.0.1 --port 4600 > /tmp/opencode/serve.log 2>&1 & SRV=$!
    trap 'kill $MOCK $SRV 2>/dev/null' EXIT
    for i in $(seq 60); do curl -sf "${AUTH[@]}" http://127.0.0.1:4600/api/credential >/dev/null && break; sleep 1; done
    curl -s "${AUTH[@]}" -X POST http://127.0.0.1:4600/api/credential -H 'content-type: application/json' -d '{
      "integrationID":"github-copilot","label":"copilot free",
      "value":{"type":"oauth","methodID":"oauth","refresh":"gho_fake","access":"gho_fake","expires":0,
               "metadata":{"apiEndpoint":"http://127.0.0.1:4599"}}}'
    echo; sleep 8
    echo "--- mock requests"; cat /tmp/opencode/mock.log
    echo "--- github-copilot models from GET /api/model (id enabled)"
    curl -s "${AUTH[@]}" http://127.0.0.1:4600/api/model > /tmp/opencode/models.json; jq -r "[.data[]?] | flatten | .[] | select(.providerID==\"github-copilot\") | \"\(.id) enabled=\(.enabled)\"" /tmp/opencode/models.json
    echo "--- providers in /api/model:"; curl -s "${AUTH[@]}" http://127.0.0.1:4600/api/model | jq -c "[.data[]?] | flatten | map(.providerID) | unique"
    echo "--- count of enabled github-copilot models"
    curl -s "${AUTH[@]}" http://127.0.0.1:4600/api/model | jq "[.data[]?] | flatten | map(select(.providerID==\"github-copilot\" and .enabled != false)) | length"

    Run it: bash repro.sh

  3. opencodejr
    added
    status/repro-simulatedReproduced with a simulated model or mock
    on Nov 21, 2026
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/linuxLinuxstatus/repro-simulatedReproduced with a simulated model or mocktype/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.