weiw0923/dsh-composer-balance ↗★ 0

dsh-composer-balance

Minimal composer chip for DeepSeek Harness: account balance and current-session spend, rendered in the host's own visual language. Unofficial, standalone implementation.

包名
dsh-composer-balance
兼容性
待验证
Harness 依赖范围
>=0.2.0-rc.1
Cordis 依赖范围
^4.0.1
版本
0.2.1
许可证
MIT
最近更新
2026年10月28日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-composer-balance

Configuration

Write overrides into your profile's cordis.patch.yml:

- id: dsh-composer-balance
  config:
    apiKeyRef: DEEPSEEK_API_KEY       # credential reference holding the key
    baseUrl: https://api.deepseek.com # /user/balance is appended
    refreshIntervalMs: 120000         # how long one reading stays fresh
    warningThreshold: 10              # chip turns amber at or below this
    dangerThreshold: 5                # chip turns red at or below this
    defaultPrice: { cacheHit: 0.2, cacheMiss: 2, output: 8 }  # ¥ / 1M tokens
    modelPrices:                      # per-model overrides
      deepseek-flash: { cacheHit: 0.02, cacheMiss: 1, output: 2 }

defaultPrice / modelPrices ship with placeholder numbers — replace them with the provider's current list price so the session estimate is meaningful. Tokens are always shown; a missing price only greys out the amount.