@opeoginni/opencode-copilot-autoAdd GitHub Copilot Auto model routing to OpenCode
3
203
近 7 天 42
39.1
生态多维模型
4 天前
2026-08-15
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@opeoginni/opencode-copilot-auto@0.1.8"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@opeoginni/opencode-copilot-auto@0.1.8"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @opeoginni/opencode-copilot-autoopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
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