dshworks/dsh-meter ↗★ 1

@dshworks/dsh-meter

The DeepSeek time-of-use meter for dsh: what this session cost, which tariff is running, when it flips, and the account balance behind it — one line under the composer. 适合需要实时监控会话花费、资费标准和账户余额的用户。

パッケージ
@dshworks/dsh-meter
互換性
未検証
Harness ピア範囲
^0.1.5-rc.1 || ^0.1.7-rc.2 || ^0.2.0-rc.1
Cordis ピア範囲
^4.0.1
バージョン
0.5.5
ライセンス
MIT
最終更新
2026/09/29

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dshworks/dsh-meter

ドキュメント

README 全文を読む ↗

Configuration

Everything below is a validated config field, set in your profile's cordis.patch.yml:

- id: dsh-meter
  config:
    currency: cny        # pin a rate card instead of detecting it
    balance: false       # never call /user/balance
    savingMode: true     # tell the model which tariff it is standing in
KeyDefaultMeaning
currencyautoWhich rate card to show: auto (the account's own balance currency, then the interface language), usd, or cny
balancetrueServe the account balance to the Web UI
apiKeyEnvDEEPSEEK_API_KEYCredential reference holding the API key
baseUrlhttps://api.deepseek.comOrigin the balance is read from
balanceTtlMs300000Minimum age before a card opening refetches the balance
balanceTimeoutMs4000Per-request timeout for the balance read
savingModefalseContribute a system-prompt section naming the tariff in force, so the model can behave accordingly
savingPeakPromptthe built-in nudgeText injected while a peak window runs
savingOffPeakPrompt''Text injected while no peak window runs; empty (the default) means the section renders to nothing and costs zero prompt tokens