WinnieJQ/dsh-conversation-cost ↗★ 0
dsh-conversation-cost
Per-conversation DeepSeek API cost badge for DeepSeek Harness: a zero-dependency session projection pricing each LLM step against the official rate card, with a live cost badge and hover card in the web conversation header.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WinnieJQ/dsh-conversation-cost说明文档
阅读完整 README ↗配置
在 ~/.dsh/profiles//cordis.patch.yml(用户覆盖层)中按行 id 覆盖:
- id: cost-meter
config:
currency: CNY # 徽章显示币种:CNY 或 USD
cnyRate: 7.25 # USD→CNY 汇率
offPeakFactor: 0.5 # 谷时价格系数
peakWindowsUtc: # 峰时窗口(UTC 小时,周一至周五)
- [1, 4]
- [6, 10]
defaultModel: deepseek-v4-pro
models: # USD / 1M tokens(峰时价)
deepseek-v4-pro:
input: 1.32
cacheRead: 0.044
output: 3.96
deepseek-v4-flash:
input: 0.44
cacheRead: 0.014
output: 1.32
单价取自 DeepSeek 官方定价页,调价时按上面格式更新即可。