yweilai77-dev/dsh-plugin-cost ↗★ 0

dsh-plugin-cost

Session cost estimate for the DSH Web UI: tokenUsage projection × configurable price table, with a one-click refresh of official DeepSeek prices 适合关心会话 token 花费、想按价格表估算成本的网页端用户。

パッケージ
dsh-plugin-cost
互換性
未検証
バージョン
0.1.0
最終更新
2026/08/14

同名パッケージの別リポジトリ

インストール

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

ドキュメント

README 全文を読む ↗

配置

插件行 cost 的 config 可覆盖默认价格表(每百万 tokens):

字段默认含义
prices.input1输入(缓存未命中)CNY/百万 tokens
prices.cacheRead0.02输入(缓存命中)CNY/百万 tokens
prices.cacheWrite1缓存写入(按未命中输入计)CNY/百万 tokens
prices.output2输出 CNY/百万 tokens
prices.currencyCNY币种(CNY → ¥,USD → $)
fetchUrl官方中文价格页"刷新价格"拉取地址;可指向 JSON({input, cacheRead, cacheWrite, output, currency?})

在你的 profile 的 cordis.patch.yml 里按行 id 覆盖,例如:

- id: cost
  name: dsh-plugin-cost
  config:
    prices:
      input: 1.5
      cacheRead: 0.05
      cacheWrite: 1.5
      output: 4.5
      currency: CNY
    fetchUrl: 'https://api-docs.deepseek.com/zh-cn/quick_start/pricing/'

注意:覆盖整行时需重述全部键(补丁替换整行 config,不做深合并)。