Charaaah/dsh-web-api-balance ↗★ 1

dsh-web-api-balance

在 Harness Web 界面显示 DeepSeek API 余额与本次对话消耗:输入框旁的常驻余额胶囊,悬停展开明细。 适合使用DeepSeek官方API,需要直观监控余额与单次对话Token消耗的用户。

パッケージ
dsh-web-api-balance
互換性
未検証
バージョン
1.0.5
ライセンス
MIT
最終更新
2026/10/10

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Charaaah/dsh-web-api-balance

ドキュメント

README 全文を読む ↗

配置

写在 web profile 的 cordis.patch.yml 里 id: dsh-web-api-balance 那行。不配也能用:

- id: dsh-web-api-balance
  disabled: false
  inject: [webServer]
  config:
    apiKey: ''                       # 单独指定 key 时填 sk-...(优先级最高)
    apiKeyEnv: DEEPSEEK_API_KEY      # 否则用这个凭证引用 / 环境变量名
    baseURL: https://api.deepseek.com
    refreshSeconds: 300              # 缓存窗口,30-86400 秒

顺序是账号授权 → config.apiKey → 凭证服务的 apiKeyEnv → 同名环境变量,谁先命中用谁。