dsh-token-cost
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 Web 侧边栏按项目展示 LLM Token 用量与人民币花费,分别统计输入(未命中)、命中与输出,并按模型标准价格自动计价。
How to install
dsh plugin add dsh-token-cost About
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…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 0
- mo. downloads
- 736
- Last push
- 2026-08-19
- Created
- 2026-08-17
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- billing, cny, cost, deepseek-harness, dsh, dsh-plugin, token-usage
Related plugins
dsh-context
bowenliang123/dsh-context
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
dsh-token-usage
LeemanCheung/dsh-token-usage
Local-first four-bucket Token observability: persistent session/provider/model/day dashboards, trends, budget and anomaly signals, public-rate estimates, safe aggregate exports, and explicit opt-in usage or session-trajectory analysis.
dsh-usage-chart
Max-Samson/dsh-usage-chart
Token, cost, and balance dashboard under the composer: live indicator plus zero-dependency SVG charts for per-turn usage, estimated cost, and DeepSeek account balance.
dsh-cost-meter
Han-1413141/dsh-cost-meter
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.