LightClear/dsh-token-pricing3

dsh-token-pricing

Per-model token pricing for the dsh web surface: durable USD rates with multi-window peak hours, a cost readout in the composer dock, and a collapsible draggable floating window with per-turn and per-model cost views

AI 分析

核心用途是实时估算和展示 API 消耗成本。适合多模型用户,尤其是需要根据高峰时段费率精细控制预算的用户。前置需 Node >= 22。

パッケージ
dsh-token-pricing
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/16

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LightClear/dsh-token-pricing

ドキュメント

README 全文を読む ↗

配置模型价格与高峰时段规则

设置页:展示具体模型的设置页面,读取已设置的模型配置,并配置模型价格与高峰期计价规则

设置 → 模型定价 把模型目录按提供方分组为卡片,每个模型带已配置/未配置圆点。展开某个模型打开编辑器,自动载入已存配置,可编辑三档基础费率——输入未命中、输入命中、输出(美元/每百万 token)——以及高峰期计价规则:启用高峰定价后,可按需增删任意多个高峰时段(添加高峰时段 / 删除时段),全部时段共享一套高峰费率。默认只有一段,时段支持跨午夜(22:00–08:00),当前时间落入任一时段即按高峰价计费。