pangzi499/dsh-balance-stats2

dsh-balance-stats

DeepSeek Harness Web 的社区版余额与消费统计插件,提供会话用量分析和保护隐私的账单摘要。

AI 分析

核心用途是监控和统计 DSH 的 API 消费情况。适合需要实时掌握 Token 消耗、缓存命中率、账户余额以及生成消费账单的用户。建议配置 apiKeyRef 以安全复用凭据。

套件
dsh-balance-stats
版本
0.1.1
授權
MIT
最近更新
2026年8月14日

安裝

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

Configuration

Override plugin configuration in $DSH_HOME/profiles/web/cordis.patch.yml. Configuration is replaced as a whole, so repeat every key you want to retain:

- id: dsh-balance-stats
  config:
    apiKey: ''
    apiKeyRef: DEEPSEEK_API_KEY
    baseUrl: https://api.deepseek.com
    refreshIntervalMs: 300000
    clientPollIntervalMs: 30000
    timeoutMs: 8000
    currency: CNY
    prices:
      deepseek-chat: { cacheHit: 0.1, cacheMiss: 1, output: 2 }
      deepseek-reasoner: { cacheHit: 1, cacheMiss: 4, output: 16 }
    defaultPrices: { cacheHit: 0.1, cacheMiss: 1, output: 2 }

Prefer apiKeyRef so the plugin reuses Harness credentials. Never put a real API key in a cordis.patch.yml file that you plan to share.