@opeoginni/opencode-copilot-auto
v0.1.8
Published
Add GitHub Copilot Auto model routing to OpenCode
Maintainers
Readme
@opeoginni/opencode-copilot-auto
Adds GitHub Copilot's Auto model to OpenCode. Copilot selects the appropriate available model for every request.
Install
Add the plugin to opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@opeoginni/opencode-copilot-auto"]
}Restart OpenCode, authenticate GitHub Copilot if necessary with opencode auth login, then select github-copilot/auto.
The plugin uses the existing OpenCode GitHub Copilot authentication and sends the prompt to Copilot's routing endpoint solely to select a model.
Commands
/copilot-refresh: Clears the routing cache so the next prompt selects a fresh model./copilot-autorefresh: Toggles fresh model selection for every prompt. Run it again to resume using the cached routing session./copilot-notify: Toggles notifications between a toast and the projection bus.
Development
bun install
bun run check
bun run test
bun run build