maxwell234smith/dsh-cost-meter ↗★ 0
dsh-cost-meter
实时统计并显示 API 费用 适合需要精确监控 DeepSeek API 消费额度的用户。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:maxwell234smith/dsh-cost-meter說明文件
閱讀完整 README ↗配置
在 profile 的 cordis.patch.yml 里按 id 覆盖,例如:
- id: dsh-cost-meter
name: dsh-cost-meter
config:
# 覆盖/新增单价(人民币 / 百万 token,忙时价)
prices:
deepseek-flash:
output: 8.0
my-proxy-model:
cacheHitInput: 0.1
cacheMissInput: 3.0
output: 12.0
# 追加自定义放假日(公司假等),北京时间 YYYY-MM-DD
extraHolidays:
- 2026-12-31
# 调休上班日是否按工作日计(默认 false)
makeupWorkdaysArePeak: false
# 账本路径,相对 $DSH_HOME
ledgerPath: storages/cost-meter/ledger.json
# 浏览器取数路由
httpPath: /cost-meter/snapshot
# 额外允许访问取数路由的 Host(默认只允许回环地址)
allowHosts: []
# 是否在挂载时回填历史会话(默认 true)
backfill: true
其它可调项:saveDebounceMs、sessionKeepDays(默认 90)、sessionKeepMax(默认 60)、snapshotSessionLimit、liveBufferLimit。