dsh-my-cost
DeepSeek Harness cost & balance plugin: hourly official-price polling (peak/off-peak ready), cache-aware per-session/per-message cost projection, and account balance via the DeepSeek API.
AI Analysis
专为 DeepSeek 官方 API 设计的精细化计费工具。适合使用官方 Token、需要实时监控账户余额和单次会话精确花费的用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗配置
| 字段 | 默认 | 说明 |
|---|---|---|
currency | CNY | 显示币种 |
pricesDir | $DSH_HOME/prices | 价格文件目录 |
pricesUrl | 官方定价页 | 轮询源 |
balanceUrl | https://api.deepseek.com/user/balance | 余额 API |
apiKeyRef | DEEPSEEK_API_KEY | 凭证引用(走 ctx.credentials) |
pollIntervalMs | 3600000 | 价格轮询周期(最小 60s) |
balanceIntervalMs | 3600000 | 余额自动刷新周期 |
balanceCacheMs | 300000 | 余额缓存时长(?refreshBalance=1 可强制) |
peakPricing | auto | auto:生效日之后自动启用峰谷;on/off 强制 |
价格覆盖:$DSH_HOME/prices/local-prices.json(可选)可覆盖官方价,格式:
{ "prices": { "deepseek-v4-flash": { "inputPerM": 1.5, "outputPerM": 3, "cacheReadPerM": 0.03 } } }