yflmq001/dsh-cost-tracker3

dsh-cost-tracker

Token cost tracking with per-model configurable pricing and peak/off-peak rates for the DeepSeek Harness

AI 分析

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

パッケージ
dsh-cost-tracker
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/08/17

インストール

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

ドキュメント

README 全文を読む ↗

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