le-soleil-se-couche/dsh-token-cost ↗★ 0
@deepseek-ai/dsh-token-cost
DSH Web 插件:统计单会话及总体的 Token 使用量、缓存命中情况与费用,支持价格方案自动切换。
AI 分析
核心用途是帮助用户精确掌握 DeepSeek API 的消耗成本与 Token 细节。适合需要精细化控制 API 预算、分析缓存优化效果的个人或企业用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:le-soleil-se-couche/dsh-token-cost說明文件
閱讀完整 README ↗Configuration
| Key | Type | Default | Meaning |
|---|---|---|---|
enabled | boolean | true | Master switch (dock chip + summary card) |
currency | 'cny' | 'usd' | 'cny' |
priceMode | 'auto' | 'scheme-a' | 'scheme-b' |
customPrices | string (JSON) | '' | Per-model price overrides |
keyAliases | string (JSON) | '' | Provider > API key alias map |
All editable from the card's Settings tab; a "Rescan session logs" action forces a full re-parse.