ljcscp/dsh-session-cost ↗★ 1

@ljcscp/dsh-session-cost

DeepSeek account balance and session-cost readout for the DeepSeek Harness Web GUI: official balance endpoint, auto-fetched official pricing with peak/off-peak hours, per-model costing (flash/pro). 适合关心API余额与单次会话花费的DSH Web用户,默认零配置即可使用。

パッケージ
@ljcscp/dsh-session-cost
互換性
未検証
Harness ピア範囲
>=0.1.0-rc.5 <0.2.0
Cordis ピア範囲
^4.0.1
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/14

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ljcscp/dsh-session-cost

ドキュメント

README 全文を読む ↗

Configuration

Zero-config by default. Optional composition settings:

- insert:
    - id: session-cost
      name: '@ljcscp/dsh-session-cost'
      config:
        refreshMs: 60000          # balance cache lifetime (ms)
        pricingRefreshHours: 6    # official-pricing page refresh cadence
        apiKeyEnv: DEEPSEEK_API_KEY
        baseURL: https://api.deepseek.com
KeyTypeDefaultMeaning
refreshMsnumber60000Balance cache lifetime in ms (failures retry after 10s)
pricingRefreshHoursnumber6Hours between official-pricing page refreshes
apiKeyEnvstringDEEPSEEK_API_KEYCredential ref storing the DeepSeek API key
baseURLstringhttps://api.deepseek.comEndpoint base; /user/balance is appended
trustedHostsstring[][]Non-loopback authorities served beyond the trust fence