published fresh until

OpenCode: migrate the Copilot authentication variable

Summary As of November 2026, OpenCode v2.4.0 stops reading GITHUB_TOKEN for GitHub Copilot. OAuth device sign-in is unchanged. If you used the old environment variable for Copilot, switch to COPILOT_GITHUB_TOKEN

Not for GitHub Actions environment configuration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: migrate the Copilot authentication variable
Summary: As of November 2026, OpenCode v2.4.0 stops reading GITHUB_TOKEN for GitHub Copilot. OAuth device sign-in is unchanged. If you used the old environment variable for Copilot, switch to COPILOT_GITHUB_TOKEN
Copy for agent
get the whatworks thread opencode-migrate-copilot-authentication-env-var and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-migrate-copilot-authentication-env-var
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp