Shiye-10Pages/dsh-whale-meter 预览 preview

Shiye-10Pages/dsh-whale-meter

Plugin插件 Native原生 ⭐ 11 MIT Usage & Cost用量与计费Data & Analysis数据与分析

🐳 Whale Meter: How many tokens have you burned on DeepSeek Harness? Usage tiers, shareable achievement cards, precise pricing for 46 models from 6 vendors (including domestic tiered pricing), comparison before and after the 8·17 price adjustment. Zero configuration, all data stored locally. | Token usage tiers & cost dashboard for DSH

Project Overview项目介绍

dsh-whale-meter is a native plugin built exclusively for DeepSeek Harness (DSH) to track AI model API token consumption and usage cost. It supports 46 models from 6 different vendors including DeepSeek, OpenAI, Anthropic, Google, Zhipu GLM, and Moonshot AI Kimi. You can install it with a single terminal command dsh plugin --profile <your-profile> add dsh-whale-meter, then restart the dsh web service to start using it right away. It can compare cost differences before and after DeepSeek’s August 17 price hike, categorize usage into tiers, and generate shareable PNG cost cards for social sharing.

This plugin is designed for DSH users who want to keep track of their AI API spending, identify which models are consuming the most budget, and set daily spending limits. Right after installation, it automatically backfills all historical session data that was generated before the plugin was installed, so you don’t have to start tracking from zero. It runs entirely locally on your machine, all data is stored on your local device, and no telemetry data is sent to any external server. It also sends alerts when you go over your configured daily budget, so you can avoid unexpected overspending.

dsh-whale-meter is released under the open-source MIT license, so it is completely free to use and modify. It works out of the box with zero configuration required, but advanced users can customize settings like currency type, daily budget, API key for DeepSeek balance queries, and custom pricing for models not included in the built-in list. All pricing data is manually checked against official pricing pages before being included, and optional remote updates of manually verified pricing data are supported. The only external network request it makes is the optional DeepSeek balance query, so your privacy is fully protected.

dsh-whale-meter 是专为 DeepSeek Harness (DSH) 开发的原生插件,用于统计 DSH 中各 AI 模型 API 的 token 消耗量与使用费用。它支持 DeepSeek、OpenAI、Anthropic、Google、智谱 GLM、月之暗面 Kimi 共 6 家厂商的 46 个模型,可对比 DeepSeek 涨价前后的费用差异,按消耗量划分使用段位、估算人民币账单,还能一键生成可分享的账单卡片,仅需一行命令即可安装,安装后重启 dsh web 即可启用。

该插件面向所有需要统计 AI API 消费情况的 DSH 用户,帮助用户清晰掌握自身的 token 消耗和费用支出情况。安装完成后,它会自动读取插件安装前的 DSH 历史会话日志补全历史账单,同时实时监听新的会话请求,记录每一次调用的消耗量。所有数据都存储在用户本地,不会上传任何遥测数据,用户可查看多维度统计,超出每日预算后会收到提醒。

该插件基于 MIT 许可证开源,完全免费使用,默认零配置即可运行,用户也可根据需求自定义货币类型、每日预算、API 密钥和自定义模型价目。价格数据由人工核对官方定价页后内置,支持可选的远程同步人工核对后的最新价目。除了可选的 DeepSeek 余额查询,所有计算都在本地完成,不会发起额外的网络请求,也不会收集用户数据。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 11 stars - an early-stage project星标 11,属于早期项目
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-whale-meter

把 Shiye-10Pages/dsh-whale-meter 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

鲸鱼电表 whale-meter

🐳 鲸鱼电表 whale-meter

给你的鲸鱼装个电表 —— DeepSeek Harness 用量与费用面板

一行安装 · 零配置 · 消耗量段位 · 人民币账单 · 涨价前后对比 · 可晒的战绩卡片

English · 安装 · 配置 · FAQ


你这个月在 DeepSeek Harness 上烧了多少 token?到什么段位了?

鲸鱼电表把它算清楚:本月消耗量、🐟→🐳 五档段位、估算超过多少用户,外加一句有画面感的换算——「≈ 592 遍《三体》全集」。一键生成战绩卡片,直接发出去。

顺带也把钱算明白:8-17 DeepSeek 涨价了(v4-flash 未命中输入 ¥1 → ¥3,输出 ¥2 → ¥9),同一份用量按新旧两套价目分别算给你看,缓存帮你挡下多少、哪个模型在烧钱,一目了然。

鲸鱼电表演示

真实运行录制:会话头部的花费徽章 → 完整账单 → 一键生成账单卡片。
画面里每个数字都是真跑出来的,没有摆拍。

30 秒装上

dsh plugin --profile <你的profile> add dsh-whale-meter

重启 dsh web,会话页顶部出现 🐳 花费徽章,点开就是完整账单。

从源码装:dsh plugin --profile <你的profile> add github:Shiye-10Pages/dsh-whale-meter(首次需按提示在 profile 的 pnpm-workspace.yaml 里授权构建,建议锁定 commit)。

它能告诉你什么

  • 🐳 消耗量段位:本月烧了多少 token → 🐟小鱼苗 / 🐠热带鱼 / 🐬海豚 / 🐋座头鲸 / 🐳蓝鲸,附估算分位与「≈ 多少遍《三体》」的量级换算。全部本地计算,零上报——分布曲线内置在仓库里(tier.data.ts 写明了推导依据,欢迎用真实数据提 PR 改进),分位如实标注为估算,不谎称「全球排名」
  • 今日 / 昨日 / 本月 / 累计花费:按 DeepSeek 官方价目实时估算,¥ 为主(可切 $)
  • 📈 涨价对比:同一份用量,新价 vs 旧价分别多少、多花了多少,直接标在面板上。8-17 之前是预演(「按新价今天要花 ¥X」),之后是回溯(「按旧价只要 ¥X」)
  • ⚡ 峰谷计价:8-17 起分高峰/空闲两档(空闲是高峰的一半)。电表按每笔请求各自发生的时刻套价,处于空闲档时徽章亮 ⚡½——注意这不等于比涨价前便宜,空闲价依然高于旧平价
  • 跨调价日正确:价目表按「生效区间」组织,8-16 的账按旧价、8-17 的账按新价,历史账单不会被一刀切算错
  • 缓存账本:命中率 + 「缓存帮你省下 ¥X」——涨价后缓存比以前更值钱(命中与未命中的差价被同步放大)
  • 多厂商精准计价:DeepSeek / Anthropic / OpenAI / Google / 智谱 GLM / 月之暗面 Kimi 共 46 个模型,逐项核对官方定价页。支持国内厂商的分档计价(如 GLM-5.1 输入 <32K 走 6 元、≥32K 走 8 元;GLM-4.7 还要再按输出长度细分三档),按每次调用的实际用量选档,不是估个大概
  • 补记历史:装上后自动把插件安装之前的会话补进账本(只读遍历 dsh 会话日志),不用从零开始攒数据
  • 分模型 / 分会话账单:谁在烧钱一目了然;失败重试的请求也如实入账(它们同样计费)
  • 近 14 天趋势 与 账户余额(配置 API key 后显示)
  • 每日预算线:超了就提醒
  • 🐳 账单分享卡片:一键生成深海风 PNG——本月花费、等价梗(「≈ 2.3 瓶冰红茶」)、缓存节省,保存或复制直接发

配置(可选)

零配置即可用。想调整时,在 profile 的 cordis.patch.yml 覆盖:

- update:
    - id: whale-meter
      config:
        currency: CNY        # 或 USD
        budgetDaily: 5       # 每日预算(展示币种)
        apiKey: sk-...       # 仅用于查询余额;缺省读 DEEPSEEK_API_KEY 环境变量
        usdToCny: 7.2        # 换算只有美元官方报价的模型(如 OpenAI)时用
        backfill: true       # 回填安装前的历史会话,默认开
        pricingUpdate: false # 拉取最新价目表,默认关(见下)
        prices:              # 自定义/补充价目(每百万 tokens)
          my-model: { hit: 0.5, miss: 4, out: 12, write: 5 }

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

← 上一个 Prev dsh-wallpaper-engine 下一个 Next dsh-vault →