This plugin overrides OMP's built-in github-copilot provider so GitHub Copilot uses the OpenCode OAuth app instead of VSCode-extension impersonation.
It keeps the normal github-copilot/<model> model names, reuses OMP's Copilot request shaping and billing headers, and stores a direct GitHub OAuth token for all Copilot API calls.
- Replaces the built-in GitHub Copilot transport with an override that still uses OMP's exported Copilot provider helpers.
- Uses the OpenCode OAuth app client ID
Ov23li8tweQw6odWQebz. - Uses direct GitHub OAuth bearer tokens against
https://api.githubcopilot.com. - Preserves the standard
github-copilot/*model IDs instead of introducing a parallel provider namespace. - Preserves the Copilot request-shaping path that controls headers like
X-Initiatorand premium-request accounting.
Supported upstream install path once the package is published:
omp plugin install omp-github-copilot-opencodeLocal development fallback:
git clone https://github.com/inprealpha/omp-github-copilot-opencode.git
cd omp-github-copilot-opencode
bun install
omp plugin link "$PWD"If OMP is already running, reload extensions once:
/reload-plugins
After the plugin is installed, use this inside OMP interactive mode:
/copilot-opencode-login
Optional enterprise host/domain:
/copilot-opencode-login ghe.example.com
The plugin intentionally uses its own explicit command instead of intercepting OMP's built-in /login github-copilot flow. Successful login still writes credentials into the standard github-copilot auth slot.
If you previously authenticated GitHub Copilot with the legacy flow, re-run /copilot-opencode-login once after installing this plugin.
Keep using the normal built-in models:
/model github-copilot/gpt-5
/model github-copilot/claude-sonnet-4
Nothing changes in the provider name. The plugin only replaces how authentication and transport are resolved.
/copilot-opencode-logout
Or use OMP's regular logout flow for github-copilot.
Run the package check locally:
bun run checkThis repo is intended to be published to npm so upstream OMP can install it through omp plugin install.
Manual publish:
bun publishGitHub Actions publish:
- Set the
NPM_TOKENrepository secret. - Run the
publishworkflow manually or publish a GitHub release.
- The supported login path is
/copilot-opencode-login. OMP's built-in/login github-copilotstill runs the core flow and is intentionally not intercepted by this plugin. - Upstream OMP does not currently load
omp.extensionsfrom marketplace-installed repo caches, so marketplace installation is intentionally not used for this plugin. - If you installed an older marketplace build of this repo, remove it with
omp plugin uninstall omp-github-copilot-opencode@omp-github-copilot-opencodeand reinstall via package install or local link. - This plugin depends on the exported
@oh-my-pi/pi-aihelpers instead of copying Copilot request-shaping code, so future upstream transport changes are easier to inherit by updating the dependency.