itchenshi/dsh-ready-gui--plugins-dsh-model-surplus ↗★ 3

dsh-model-surplus

在会话头部显示模型用量与账户余额 适合使用OpenCode Go或DeepSeek官方服务,需实时查看额度消耗的用户。

套件
dsh-model-surplus
相容性
待驗證
版本
0.3.2
授權
MIT
最近更新
2026年9月22日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:itchenshi/dsh-ready-gui#a886d1165b9c44e9887ad9fd6a8993e23449a0c4&path:plugins/dsh-model-surplus

配置

插件的这一行配置位于 cordis.patch.yml;每个键都是可选的:

- insert:
    - id: model-usage
      name: dsh-model-surplus
      config:
        enabled: true

        opencodeGo:
          baseUrl: https://opencode.ai/zen/go/v1   # 上游根地址
          apiKeyRef: OPENCODE_GO_API_KEY           # 凭据引用
          providers: [opencode-go, opencode]       # 视为 OpenCode Go 的路由

        deepseek:
          baseUrl: https://api.deepseek.com        # 上游根地址
          apiKeyRef: DEEPSEEK_API_KEY              # 凭据引用
          providers: [deepseek-official]           # 引擎的 DeepSeek 路由

顶层写 baseUrl / apiKeyRef / providers 仍会按 opencodeGo 分区读取(本插件以前只支持 OpenCode Go)。