原生 DSH 插件,在 DeepSeek Harness 界面内展示会话 / 当日费用、预算、官方 + 自定义 Provider 余额与 Token 热图。通过 `dsh plugin --profile web add dsh-cost-meter` 安装;重启 dsh web。需要 Node.js ≥ 20。
DSH 适配
原生运行时
作者声明
安全审计
未审计
最后核验
2026-08-23
许可证
MIT
01它能帮你完成什么?
Track DeepSeek Harness session and daily API cost, budget and official balance in the UI
Per-session and daily cost badges, budget %, official/custom-provider balance bars, a 26-week token-usage heatmap, and a history ledger — all in the sidebar and settings
DeepSeek Harness users who want real-time spend visibility, peak/off-peak pricing alerts and multi-vendor Coding Plan quota tracking
02如何接入 DeepSeek Harness?
前置条件
- Node.js ≥ 20
- DeepSeek Harness with the `dsh plugin` command (`npm install -g @deepseek-ai/dsh`)
安装步骤
- 01
Run `dsh plugin --profile web add dsh-cost-meter` (or pin a tag: `dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.5.41`)
$ dsh plugin --profile web add dsh-cost-meter
- 02
Restart `dsh web` for the plugin rows, Typert manifest and client bundle to be scanned at startup
$ dsh web
验证接入成功
作者未说明
回滚
- Uninstall with `dsh plugin --profile web remove dsh-cost-meter`.
03DSH 适配与能力边界
Native DSH plugin (web profile) that shows session/daily cost, budgets, balances and token usage inside the DeepSeek Harness UI.
Cost & balance dashboard
DSH session usage (input/cache/output tokens)→Per-session and daily cost, budget %, official balance (3-segment bar), custom-provider balance via configurable HTTP
Balance queries go only to the official domain (api.deepseek.com); the API key is never sent to non-official baseURLsPeak/off-peak pricing + alerts
Real-time usage timestamps→Peak windows (UTC 01:00–04:00, 06:00–10:00) with popup + system-notification alerts before switching; weekend all-off-peak rule from 2026-08-23
Budget and overspend alerts only notify; they do not block callsMulti-vendor billing
provider+model usage across OpenAI/Anthropic/Gemini/Mistral etc.→Per-provider/per-model isolated billing with a 90+ model price catalog and auto-matching; 8 Coding Plan quota queries
Price sync can overwrite official same-name model prices; custom model entries are unaffected
04适合谁?何时不该用?
适合
- DeepSeek Harness users who want real-time spend visibility, peak/off-peak pricing alerts and multi-vendor Coding Plan quota tracking
不适合
- Per-model history backfill depends on the host session log still being on disk; calls whose log was cleaned can only be reconstructed as an 'unassigned model' residual row.
05兼容性、维护与安全提示
- After installing or updating the plugin you must restart `dsh web` for the plugin rows, Typert manifest and client bundle to load.
- Balance queries require network access to api.deepseek.com and a valid API key; the key is only ever sent to the official domain, and requests to a non-official baseURL are refused for balance.
- Per-model history backfill depends on the host session log still being on disk; calls whose log was cleaned can only be reconstructed as an 'unassigned model' residual row.
MIT · 由 facts pack 抓取(README 分支 master)
06常见问题
怎么安装 dsh-cost-meter?
执行 `dsh plugin --profile web add dsh-cost-meter`(或固定到发布 tag),然后重启 `dsh web`。插件行与客户端 bundle 在启动时扫描加载。
我的 API Key 会发到哪里?
余额查询只通过模型请求所用的同一把 API Key 发往官方域名(api.deepseek.com)。若 baseURL 指向非官方域名,余额查询会被拒绝;模型请求不受影响。
什么是峰谷计价?
2026-08 起,峰时段为 UTC 01:00–04:00、06:00–10:00(峰时价),其余为谷时价(半价)。2026-08-23 起周末全天按谷价。插件在切换前会弹窗并可发送系统通知提醒。
超预算时会阻断调用吗?
不会。预算与超支提示仅作提醒,不会阻止模型调用。
07相关的 DSH 工作流
dsh-usage-stats
作者 ychris12138
为 DeepSeek Harness Web GUI 提供提供方余额、订阅额度与 Token 用量分析。
tokdash
作者 jingbiaomei
智能体仪表盘:以热力图、成本追踪与 Token 计数可视化各提供方的会话与配额用量,帮助分析与优化。
dsh-balance-meter
作者 ghost011118
在 DSH Web 输入框下方实时显示 DeepSeek 账户余额与本场会话花费,自动抓取官方价格并支持峰谷计价。
dsh-plugin-langfuse
作者 linyp
Langfuse 可观测性插件:以 OpenTelemetry 追踪树导出会话至 Langfuse OTLP 端点
08数据与来源
DeepSeek Harness 会话费用统计插件(界面中英双语)
dsh plugin --profile web add dsh-cost-meter
页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-23。发现错误?提交更正。
最佳 DeepSeek Harness 插件
从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。
