跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    OpeOginni

    Copilot Auto

    v0.1.8Git 与版本控制
    @opeoginni/opencode-copilot-auto

    Add GitHub Copilot Auto model routing to OpenCode

    GitHub 星标

    3

    月装机量

    203

    近 7 天 42

    综合评分SCORE

    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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 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