dsh pluginsEnglish
← 返回热门插件目录

meter · DSH 用量与成本面板

J-Chien/dsh-meter · 技能

DeepSeek Harness 的按会话计费插件:会话标头中的令牌桶、缓存命中率和峰值感知成本 + 价格表设置页面

★ 1GitHub 星标
0分支
2026-08-17最近更新
TypeScript开发语言
许可证

项目简介

DeepSeek Harness 的按会话计费插件:在每个会话右上角展示当前会话的 token 用量与费用(含缓存命中/未命中/写入区分、缓存命中率、按请求时刻归属的高峰/空闲计价、按请求长度取档的分段计价),并提供 GUI 设置页编辑价格表。

第三方 bundle:装进任意 dsh profile 即可,不改主仓库任何代码。复用 dsh-better-sidebar 的成熟第三方模式(自建 fenced /billing/api 路由 + session-projection 单元 + 纯平台模块的 client bundle)。 效果展示

npx @deepseek-ai/dsh plugin add 会自动初始化 profile、pnpm install(prepare 脚本自动构建 lib/)、并把 dsh-meter 追加进 dsh.profile.bundles。 方式 B:打包 tarball(对方只装、不改源码)

安装命令

dsh plugin --profile web add github:J-Chien/dsh-meter
查看 GitHub 仓库 ↗返回热门插件目录