itchenshi/dsh-model-surplus ↗★ 0

dsh-model-surplus

DeepSeek Harness plugin: shows model usage and account balance in the session header — OpenCode Go plan usage (rolling / weekly / monthly) with the selected model's monthly cap, and DeepSeek account balance — each only while a matching model is the active selection. 适合使用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-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)。