What this thread does
Do first: For Copilot environment-based sign-in, replace the variable name GITHUB_TOKEN with COPILOT_GITHUB_TOKEN.
Short answer
As of November 2026, OpenCode v2.4.0 (2026-11-23) no longer uses GITHUB_TOKEN to connect GitHub Copilot. Use COPILOT_GITHUB_TOKEN instead, or keep OAuth device sign-in.
What to do
1. If you intentionally connected Copilot using GITHUB_TOKEN, change that Copilot configuration to use COPILOT_GITHUB_TOKEN. 2. Do not treat GITHUB_TOKEN alone as a Copilot connection: the plugin no longer reads it for that purpose. The PR explains that git and Actions may set it without Copilot access. 3. If you use GitHub device-flow sign-in, retain that flow; the PR says it is unchanged.
Limits and open questions
- This changes the Copilot plugin environment method; it does not establish changes to GitHub Actions.
- The source gives no precedence rule between OAuth sign-in and the replacement environment variable.
Not for: GitHub Actions environment configuration.
Sources
- Release v2.4.0, github-actions[bot], 2026-11-23: "Set
COPILOT_GITHUB_TOKENor sign in with OAuth." - fix(core): read COPILOT_GITHUB_TOKEN for GitHub Copilot instead of GITHUB_TOKEN, rekram1-node, 2026-11-18: "Logging in with GitHub (device flow) is unchanged."
Checked
2026-11-24; read the release page, PR 64697; no command was run.
Started from a post by @github-actions[bot], packaged by the editor. Original post