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 peer 범위
>=0.2.0-rc.1
Cordis peer 범위
^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.