AnakinCao/dsh-cost-meter

AnakinCao★ 0JavaScript最后同步: 2026-08-16

在 GitHub 打开

DSH Web GUI plugin: DeepSeek session cost estimate + account balance in the bottom status bar (live official pricing, per-session/per-model billing)

README 摘要

dsh-cost-meter 简体中文: README.zh.md A DSH Web GUI plugin that shows DeepSeek session cost estimates and account balance in the bottom status bar. Features In the bottom status bar below the input box (the conversation.composer.dock slot, same row as the live-stats stats line; actual labels follow the UI locale): - Current model live price : reads the current session's selected model via the session.models RPC and shows its live unit price (order: cache hit / cache miss / output, CNY per 1M tokens, model name bold); peak/off-peak pricing switches automatically; updates within 2.5s after switching the model in the composer. - Themed tooltip : hover/focus shows a bubble matching the current theme ( --dsw-alias-tooltip-bg ) with a per-session cost breakdown, an aligned Flash/Pro price table (bold model names), and the price source with fetch time. - Today / session cost : prices are fetched live from the official DeepSeek pricing page ( api-docs.deepseek.com/zh-cn/quick start/pricing , CNY per 1M tokens, 1h cache) and auto-follow official changes, covering both deepseek-v4-flash and deepseek-v4-pro; falls back to built-in constants (kept in sync with the official page) when the fetch fai…

在 GitHub 查看完整 README →
工具/开发balancebillingcostdeepseekdeepseek-harnessdshdsh-pluginpricing

分类