dshworks/dsh-meter ↗★ 1

@dshworks/dsh-meter

提供会话计费、资费与余额显示 适合需要实时监控会话花费、资费标准和账户余额的用户。

包名
@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年9月29日

安装

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

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