haifeiWu/dsh-deepseek-usage

haifeiWu★ 0TypeScriptLast synced: 2026-08-15

Open on GitHub

DSH plugin: real-time DeepSeek token usage, estimated cost and account balance in the DSH Web UI

README excerpt

dsh-deepseek-usage dsh-deepseek-usage is a DSH plugin that shows real-time DeepSeek API token usage, estimated cost, and account balance right in the DSH Web UI (wallet button next to the composer tool row). - Per-session token breakdown (input uncached / cache-hit / cache-write / output) with estimated cost - Today-by-model and last-7-days totals, with configurable per-model pricing (official DeepSeek prices by default) - Account balance via the official GET /user/balance API — the API key never leaves the process - Two accounting modes: 🟢 official platform console figures ( DEEPSEEK PLATFORM TOKEN ) or ⚪ DSH-side estimation — automatic fallback when the platform token is absent or expired 以下为中文文档 / Chinese documentation below: DSH 插件:在 DSH Web 界面实时显示 DeepSeek API 的 token 消耗 、 估算花费 与 账户剩余金额 。 - 按钮位置:输入框工具行右端,与「上下文」按钮同一行(模型选择器左侧),图标为钱包。 - UI 风格参考上下文组件:图标为主、文字从简(会话/今日/近 7 天/余额均为图标 + 短标题,数字为 tabular 主色);模型名显示简称( deepseek-v4-flash → v4-flash , deepseek-v4-pro → v4-pro ),完整模型名以 title 提示显示。 - 点击按钮弹出面板: - 本会话 token 分桶明细(输入未命中 / 缓存命中 / 缓存写入 / 输出)与估算费用 - 今日消费(分模型) 与 近 7 天总消费 - 账户余额(总余额 / 赠金 / 充值)、更新时间、手动刷新 - 「今日 / 近 7 天」金额两种口径,标题旁小圆点指示: - 🟢 官方口径:配置了 DEEPSEEK PLATFORM TOKEN 后,直接读取平台控制台用量接…

View full README on GitHub →
Skins / UIdshdsh-pluginweb ui

Category