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

    Qoder

    v0.2.1模型接入
    opencode-qoder

    Qoder provider plugin for opencode

    GitHub 星标

    2

    近 30 天 +1

    月装机量

    371

    近 7 天 91

    综合评分SCORE

    41.0

    生态多维模型

    最近提交

    21 天前

    2026-07-30

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-qoder@0.2.1"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    Qoder Global provider plugin for opencode. This is a port of the global-only pieces of pi-provider-qoder: PAT exchange, COSY request signing, Qoder body encoding, chat SSE parsing, reasoning, image input, and tool calls.

    Qoder China endpoints and model aliases are intentionally not included.

    Build

    npm install
    npm run build
    

    Installation

    Add the built plugin to opencode.json in this repo, or adjust the relative path for your config location:

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-qoder"],
      "model": "qoder/auto"
    }
    

    The plugin registers provider qoder and these models: auto, ultimate, performance, efficient, lite, qmodel_preview, qmodel, qmodel_latest, dmodel, dfmodel, gm51model, kmodel_latest, kmodel, and mmodel.

    Authenticate

    Use a Qoder Personal Access Token (pt-...). A PAT is exchanged for a short-lived Qoder job token automatically before requests.

    export QODER_PERSONAL_ACCESS_TOKEN="pt-..."
    opencode
    

    You can also run opencode's auth flow after the plugin is loaded:

    /connect qoder
    

    Choose Personal Access Token and paste the PAT.

    After adding or changing the plugin config, quit and restart opencode. Plugins and provider config are loaded at startup.