Wei-l-w/dsh-cline-quota ↗★ 0

dsh-cline-quota

在 DeepSeek Harness 会话页头显示 Cline / ClinePass 订阅额度、Credits 余额与 ClinePass token 消耗,支持多账号切换。Show Cline / ClinePass subscription quota, credits, and ClinePass token usage in the DSH session header, with multi-account switching. 适合使用 Cline/ClinePass 服务,需要实时监控额度并管理多账号的用户。

パッケージ
dsh-cline-quota
互換性
未検証
バージョン
0.2.1
ライセンス
MIT
最終更新
2026/10/19

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wei-l-w/dsh-cline-quota

ドキュメント

README 全文を読む ↗

配置账号

默认使用凭据引用 CLINE_API_KEY(就是 profile 里 cline provider 用的那个名字)。

方式一:面板里粘贴(推荐)

账号行右侧 + → 粘贴 key → 保存。插件会先用 GET /users/me 验证这个 key,通过后:

  • key 写进 DSH 凭据库 $DSH_HOME/.credentials.yaml(与现有 CLINE_API_KEY 同一处,权限 600)
  • 插件自己的名单文件 $DSH_HOME/cline-quota.accounts.json 只记 label + 引用名,不存明文
  • 面板自动切到这个新账号;账号名默认取该账号邮箱

方式二:配置文件

在 profile 的 cordis.patch.yml 里:

- id: cline-quota
  config:
    accounts:
      - label: 主号
        keyRef: CLINE_API_KEY
      - label: 备号
        keyRef: CLINE_API_KEY_2

key 本体放 $DSH_HOME/.credentials.yaml 的 refs: 下,或 $DSH_HOME/.env(只读回退层)。配置改完不必重启(loader 会带新配置重新 apply)。