Han-1413141/dsh-cost-meter 预览 preview

Han-1413141/dsh-cost-meter

DeepSeek Harness会话成本统计与OpenCode Go配额显示,DS官方余额及自定义提供商余额查询,类Codex令牌热力图插件:会话/每日成本、预算、历史记录、峰谷定价、价格同步、多供应商定价(90+目录),编码计划配额查询(6家供应商),余额进度条

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness, designed to track and display conversation costs and usage quota for LLM API calls. It supports real-time calculation of current session and daily costs, displays official DeepSeek account balance, custom provider balances, and OpenCode Go subscription quota. It also covers 9 different coding plan providers, supports peak/off-peak pricing with configurable reminders for price switching, and one-click sync of official model prices. It includes a built-in price list for over 90 models, separates billing for subscription plans and pay-as-you-go usage, and generates a Codex-style token usage heatmap.

This plugin is targeted at developers who regularly use LLMs from DeepSeek and other vendors, as it helps them keep track of their usage and spending to avoid unexpected overages. It adds a horizontal bar above the input box that shows the percentage used for budget and each enabled subscription plan, warns when usage hits 80%, and alerts when usage exceeds 100%. Users can click any section to manually refresh data, and they can also enable simplified sidebar display to compress content and save interface space. All UI elements can be toggled on or off based on user preference, so users only see what they need for their workflow.

This plugin is released under the open-source MIT license, and it only relies on Node.js built-in modules and a small number of official DSH dependencies, so there is little risk of dependency conflicts. It has several documented limitations: historical cost breakdown by model requires unexpired host session logs, official price sync depends on the current structure of DeepSeek's pricing page, and balance queries require network access to the official DeepSeek API domain. After installing or updating the plugin, you need to restart the dsh web process for changes to take effect. Custom model prices added by users are never overwritten during official price sync operations.

这是专为DeepSeek Harness开发的原生插件,用于追踪LLM对话的使用成本。它支持实时统计当前会话和当日费用,可显示DeepSeek官方账户余额、自定义供应商余额,以及OpenCode Go和9家主流厂商编码计划订阅额度。它还支持峰谷计价展示、可配置的价格切换提醒、一键同步官方模型定价,生成类似Codex的Token用量热图。内置90+模型价格目录,支持双轨计费分别统计订阅额度和按量付费金额。

这款插件适合经常使用DeepSeek及其他厂商大模型做开发的用户,帮助用户清晰掌握用量和费用,避免意外超预算。它会在输入框上方显示一条横条,实时展示预算、各订阅额度的使用百分比,用量超过80%会预警,超过100%明确提示超支。用户可以点击任意区块手动刷新数据,还可以自主设置是否开启简化侧边栏显示,压缩不必要内容节省界面空间。

插件采用MIT许可开源,仅依赖Node.js内置模块和少量DSH官方依赖包,无多余第三方依赖,不会产生依赖冲突。它的已知限制包括:历史按模型回填依赖宿主未清理的会话日志,官方价格同步依赖当前官网结构,API余额查询需要可访问官方域名的网络环境。安装更新后需要重启dsh web才能生效,用户自定义的模型价格不会被官方同步覆盖。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-cost-meter

把 Han-1413141/dsh-cost-meter 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-cost-meter

English | 简体中文

Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)

Per-conversation cost · daily totals · OpenCode Go subscription quota display · budget with usage percentage · official account balance · custom provider balance · balance progress bar · history · peak/off-peak pricing hours display (peak hours UTC 01:00–04:00, 06:00–10:00; weekends and Chinese public holidays are off-peak all day, with separate labels) · pre-switch popup & system-notification alerts for peak/off-peak changes (position / lead time / alert type configurable) · one-click price sync from the official docs · Codex-style token usage heat grid · multi-vendor model pricing (built-in 170+ model-ID catalog with auto-matching) · mainstream Coding Plan quota queries & display (Anthropic / Z.ai / MiniMax / Kimi / OpenRouter / SiliconFlow / CommandCode / SCNet / Volcano Ark / Qwen / Xiaomi MiMo) plan/API dual-track billing (subscription quota vs pay-as-you-go money separated, per-1% & full-window token/equivalent-cost estimates with daily/weekly/monthly curves) · · quota strip above the input box (budget / Go / coding-plan usage in one row, toggleable)

version

v1.8.10 aligns cumulative totals, conversation badges and rankings, including subagent spending. See the release notes.

Desktop users: follow the Desktop installation instructions for the application's own CLI and desktop Profile.

npm license dsh awesome · DSH plugin WhaleHarness audit

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev awesome-dsh-plugin 下一个 Next dsh-mobile →