yflmq001/dsh-cost-tracker3

dsh-cost-tracker

DeepSeek Harness 的 Token 成本追踪插件:支持按模型配置价格以及设置高峰/非高峰期费率。

AI 分析

核心用途是统计和估算 DSH 运行中的 Token 资金消耗。适合需要精细化控制和监控 API 账单开销的用户。

套件
dsh-cost-tracker
版本
1.0.0
授權
MIT
最近更新
2026年8月17日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yflmq001/dsh-cost-tracker

Configuration

Pricing lives under the plugin's config (Schemastery-validated). All prices are currency units per million tokens; you fill them in manually (no scraping).

- name: 'dsh-cost-tracker'
  config:
    models:
      deepseek-v4-flash:
        inputMiss: 1.0        # cache-miss input
        inputHit: 0.02        # cache-hit input (omit if no cache tier)
        output: 2.0
        peak:                 # peak tier: hours + toggle + prices
          hours: ["09:00-12:00", "14:00-18:00"]   # Beijing time
          enabled: true       # false = peak off (base rates always); omit = on
          inputMiss: 3.0
          inputHit: 0.10
          output: 9.0
      gpt-4o:                 # any model the harness can reach
        inputMiss: 2.5
        output: 10.0