@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. 适合需要实时监控会话花费、资费标准和账户余额的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dshworks/dsh-meterREADME
Read the full 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
| Key | Default | Meaning |
|---|---|---|
currency | auto | Which rate card to show: auto (the account's own balance currency, then the interface language), usd, or cny |
balance | true | Serve the account balance to the Web UI |
apiKeyEnv | DEEPSEEK_API_KEY | Credential reference holding the API key |
baseUrl | https://api.deepseek.com | Origin the balance is read from |
balanceTtlMs | 300000 | Minimum age before a card opening refetches the balance |
balanceTimeoutMs | 4000 | Per-request timeout for the balance read |
savingMode | false | Contribute a system-prompt section naming the tariff in force, so the model can behave accordingly |
savingPeakPrompt | the built-in nudge | Text 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 |