CH2008445/dsh-api-balance ↗★ 0

dsh-api-balance

DeepSeek API account balance and per-run usage cost for the DeepSeek Harness web GUI. The API key never leaves the host process. 适合需要实时监控DeepSeek API使用额度和单次对话成本的用户。

パッケージ
dsh-api-balance
互換性
未検証
Cordis ピア範囲
~4.0.4
バージョン
1.1.1
ライセンス
Apache-2.0
最終更新
2026/10/01

同名パッケージの別リポジトリ

インストール

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

ドキュメント

README 全文を読む ↗

Configuration

Optional, in the profile's cordis.yml/cordis.patch.yml:

- id: api-balance
  name: dsh-api-balance
  config:
    cacheMs: 60000
    path: /api/dsh-api-balance
    persistUsage: true
    holidays:
      - '2026-10-01'
      - '2026-10-02'
    prices:
      deepseek-flash:
        cacheHit: 0.02
        cacheMiss: 1
        output: 4
        peak:
          cacheHit: 0.04
          cacheMiss: 2
          output: 8
FieldDefaultMeaning
cacheMs60000Lifetime of a cached balance reading, in milliseconds (0 – 3600000)
path/api/dsh-api-balanceExact HTTP route serving the payload
persistUsagetruePersist usage totals so a plugin reload keeps this run's cost
holidays[]Beijing holiday dates (YYYY-MM-DD) billed at off-peak rates
pricesbuilt-inOverride or extend the price table, CNY per 1M tokens

Usage totals live in $DSH_HOME/storages/api-balance/usage.json.