dsh-token-cost
在 DSH Web 侧边栏按项目展示 LLM Token 用量与人民币花费,分别统计输入(未命中)、命中与输出,并按模型标准价格自动计价。
Per-project LLM token usage and RMB cost in the DSH Web sidebar, split by input (cache miss), cache hit, and output with model price auto-pricing.
怎么安装
dsh plugin add dsh-token-cost 简介
dsh-token-cost A DSH plugin that shows per-project LLM token usage and converts tokens to **RMB cost**, split into: **输入(未命中)** — uncached input tokens **命中** — cache-hit input tokens (cacheReadTokens) **输出** — output tokens Costs are calculated from the model's standard price table (CNY per 1M tokens). Unknown models are listed with their token counts but no cost, so you can add/override prices without touching code. Features Reads local DSH session logs (~/.dsh/sessions or $DSH_HOME/sessions). Aggregates by **project** (the session cwd) and by **model**. Adds a 💰 button to the DSH web sideb…
推荐参考
信息
- 协议
- MIT
- 语言
- JavaScript
- GitHub 星标
- 0
- 月下载
- 736
- 最近更新
- 2026-08-19
- 创建于
- 2026-08-17
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- billing, cny, cost, deepseek-harness, dsh, dsh-plugin, token-usage
同类推荐
dsh-context
bowenliang123/dsh-context
DSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
dsh-token-usage
LeemanCheung/dsh-token-usage
本地优先的四 bucket Token 可观测性:持久会话/provider/model/日期仪表盘、趋势、预算与异常信号、公开费率估算、安全聚合导出,以及显式触发的用量/会话轨迹分析。
dsh-usage-chart
Max-Samson/dsh-usage-chart
输入框下方的用量/成本/余额仪表盘:实时指标指示器 + 零依赖 SVG 用量图表,按轮次统计用量、估算成本并实时查询 DeepSeek 账户余额。
dsh-cost-meter
Han-1413141/dsh-cost-meter
会话与当日 API 费用统计、预算图框(已用%)、官方余额、历史看板,支持峰谷计价与官方价格一键同步。