hehe1111/dsh-my-cost0

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、需要实时监控账户余额和单次会话精确花费的用户。

Package
dsh-my-cost
Version
0.3.0
License
MIT
Last updated
Aug 15, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

配置

字段默认说明
currencyCNY显示币种
pricesDir$DSH_HOME/prices价格文件目录
pricesUrl官方定价页轮询源
balanceUrlhttps://api.deepseek.com/user/balance余额 API
apiKeyRefDEEPSEEK_API_KEY凭证引用(走 ctx.credentials
pollIntervalMs3600000价格轮询周期(最小 60s)
balanceIntervalMs3600000余额自动刷新周期
balanceCacheMs300000余额缓存时长(?refreshBalance=1 可强制)
peakPricingautoauto:生效日之后自动启用峰谷;on/off 强制

价格覆盖:$DSH_HOME/prices/local-prices.json(可选)可覆盖官方价,格式:

{ "prices": { "deepseek-v4-flash": { "inputPerM": 1.5, "outputPerM": 3, "cacheReadPerM": 0.03 } } }