dsh-cost-meter
会话与当日 API 费用统计、预算图框(已用%)、官方余额、历史看板,支持峰谷计价与官方价格一键同步。
- 形态
- Plugin 插件
- 安装
- npm 包安装
- 需要密钥
- 是
- 近月下载
- 13.7 万
- 最近推送
- 2 天前更新
项目说明
From README
dsh-cost-meter English 简体中文 · Install · Features · Screenshots · Community Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI) v1.9.58 fixes the session-cost entry disappearing when conversation usage arrives before plugin settings.
The entry stays visible while loading and shows the amount once settings are ready.Host floor: DSH 0.2.0 · Adaptation target: 0.2.2-alpha.3 .Expand the compatibility notes below for exact declarations, host records and troubleshooting.Release notes: v1.9.58.Fully restart DSH after updating.
Full feature summary 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
Original description
Cost tracking for DeepSeek Harness: session and model costs, token usage, budgets, provider balances, and coding-plan quotas. Bilingual English/Chinese UI.
安装方式
npm 包安装 · 需要额外配置密钥
dsh plugin --profile web add dsh-cost-meter安全能力
静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」
- 执行命令
- 写入文件
- 读取文件
- 访问网络
- 读取凭据
- 读取环境变量
发现 1 项需要留意的行为
- 既读取凭据/密钥,又有网络访问 —— 存在外传可能
能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。
为什么是这个分数
近 2 天仍在推送;README 未给出明确安装命令,需要自己读;运行前需要准备 API Key 或环境变量;642 stars,社区使用面较广。
- 维护活跃
- 100
- 实用度
- 64
- 生态热度
- 100
- 上手便捷
- 44
- 信号质量
- 100
- 数据置信度
- 100%
相关插件
dsh-whale-meter
Shiye-10Pages/dsh-whale-meter
用量段位与战绩卡片:按本月 token 消耗评 五档段位,分位本地估算(零上报);6 家厂商 46 个模型精准计价,支持国内厂商按输入长度分档;自动回填安装前的历史会话;8·17 调价前后同一份用量的新旧价对比。数据全在本机,无遥测。
dsh-api-balance
Kihara777/dsh-api-balance
API 用量余额插件 for DeepSeek Harness — webui 用量圆圈内提供「用量 / 余额」标签切换,展示账户余额与用量明细
dsh-chat-cost
igormel81/dsh-chat-cost
为 DSH Web UI 的每个对话实时计算 token 费用:本对话、其子代理与整棵会话树,价格来自内置的 models.dev 快照:七家供应商、139 个有价模型,缓存读写费率按供应商实际公布的取值,DeepSeek 则使用其官方峰谷价格表。每个完成的回答都会在对话中显示自身费用,未打开的对话则按日志计价而不是整行消失。费用按区间计价,依据写入项目目录的只追加 JSONL 账本,因此已记录的工作保留当时的费率。此外还提供:按金额预算排布的工作计划、展示值得接入哪些模型的路由方案比较、以英语/中文/俄语生成的计划文档,以及当费用未归入任何计划单元时的提醒。