deepforce/dsh-balance2

@deepforce/dsh-balance

DeepSeek account balance: /balance command plus a composer-dock readout in the web GUI

AI 分析

核心用途是实时监控 DeepSeek 账户余额与会话 Token 消耗成本。适合需要严格控制 API 预算、关注调用成本的个人及企业用户。

パッケージ
@deepforce/dsh-balance
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/14

インストール

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

ドキュメント

README 全文を読む ↗

Configuration

FieldDefaultMeaning
apiKeyEnvDEEPSEEK_API_KEYCredential reference (environment-variable name), resolved per call
baseURLhttps://api.deepseek.comAPI endpoint base
timeoutMs10000Per-request timeout in milliseconds
estimateModeldeepseek-v4-flashModel whose prices the session-cost estimate uses
offpeakPrices{input: 1.5, cacheHit: 0.05, output: 4.5}Off-peak CNY per-million-token prices (uncached input / cache hit / output)
peakMultiplier2Peak-hour multiplier over the off-peak prices
peakWindows[[9,12],[14,18]]Beijing-time peak windows as [startHour, endHour) pairs
topUpUrlhttps://platform.deepseek.com/top_upDeepSeek platform top-up page the readout links to
usageDays7Default historical window (in days) for the daily-spend chart

Usage

  • Type /balance in the session composer:

    Balance (CNY): 110.00
      Topped up: 100.00
      Granted:   10.00
    
  • In the web GUI, the stats area under the composer shows Balance: ¥110.00 ⟳; hover reveals the topped-up / granted split, and the ⟳ button refreshes.