debug-null/dsh-spend-pill ↗★ 0
dsh-spend-pill
DeepSeek Harness session cost pill: official CNY prices with peak/off-peak and the 2026 holiday calendar, in the composer dock; click for the token breakdown. 适合需要根据官方价格、峰谷时段及节假日精确估算DeepSeek会话费用的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:debug-null/dsh-spend-pill可选配置
在 profile 的 cordis.patch.yml 里覆盖价格、别名、回退模型或节假日表:
- id: cost-pill
name: dsh-spend-pill
config:
prices:
my-model:
peak: { cacheHit: 0.04, cacheMiss: 2, output: 8 }
offPeak: { cacheHit: 0.02, cacheMiss: 1, output: 4 }
aliases:
my-legacy-model: my-model
fallbackModel: deepseek-flash
# 整表替换内置日历,日期为北京时间(YYYY-MM-DD)
holidays: ['2027-01-01', '2027-02-05', '2027-02-06']
prices 与 aliases 是在内置表上的增量覆盖;holidays 是整表替换。配置变化会改变投影的
stateVersion,已缓存的历史费用会按新配置重新计算。