pangzi499/dsh-balance-stats2

dsh-balance-stats

Community balance and spend statistics plugin for DeepSeek Harness Web, with session usage and privacy-preserving invoice summaries.

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.