DSH Plugins Marketplace

DSH Plugins

Plugins

/

consume-plugin

1

consume-plugin

Manifest valid

Added a "Usage" view that shows token consumption, tables, 7 chart templates (line/bar/area/scatter/bar-line/stacked/gauge) and 18 metrics. Feel free to tweak and play around with them. Also, that annoying ds accidentally stole 40m of my tokens while writing the release build, and it even crashed my web. Ruined my machine, man, wasted a few bucks meow!~

UI (client)Machine translated

消耗视图截图

dsh-client-ui-consume — 消耗视图(Token 用量统计)

DeepSeek Harness 的一个浏览器客户端插件:在对话视图环里新增「消耗」标签页,展示 Token 用量汇总、分请求明细表与多种可切换统计图表。

功能

  • Token 消耗汇总:累计卡片(输入 / 输出 / 缓存读 / 缓存写 / 思考)
  • 分请求明细表:列可拖拽调整宽度、拖拽换列顺序、时间列、列配置持久化
  • 统计区(18 个统计项 × 7 种模板)
    • 统计项:每轮/每步/总缓存命中率、每轮/每步输出占比、每轮/每步输入/输出/思考/缓存读、总输入、总输入+缓存读、总思考、总缓存读、平均 token 输出/秒、总轮步
    • 模板:折线图 · 条形图 · 面积图 · 散点图 · 柱线混合 · 堆叠柱状 · 仪表盘
  • 交互:滚轮循环切换统计项、选项下方青色滑动条(溢出时显示)、区块折叠
  • 持久化:配置存到浏览器 localStorage(键 dsh.consume.config),无需 host half / 文件系统

包结构

dsh-client-ui-consume/
├── package.json     # 声明 dsh.client(web 平台 + 依赖)
├── lib/
│   ├── index.js     # host 半壁(空实现,插件纯浏览器侧)
│   └── client.js    # 浏览器半壁(window.__ModuleLoader__.load CJS 工厂)
└── docs/            # 附加说明

启用方式(Harness 内安装)

  1. 把本包放到 Harness 的 profile 可解析目录,例如: ~/.dsh/profiles/node_modules/@deepseek-ai/dsh-client-ui-consume (或加到 profile 的 package.json 依赖后再安装)

  2. 在 profile 的 cordis.patch.yml 增加一行启用:

    - insert:
        - id: ui-consume
          name: '@deepseek-ai/dsh-client-ui-consume'
    
  3. 刷新浏览器页面。「消耗」标签页出现在对话视图环(紧邻「轨迹」)。

发布/分享

  • 该包是标准 Harness 客户端插件形态(dsh.client + exports["./client"])。
  • 可直接提交到 GitHub,或在 B 站教程里引导安装。
  • 构建/打包:把 lib/ 与 package.json 一起发布即可;如需压缩合并可参照 Harness 官方 client 插件的 tsdown 配置(浏览 @deepseek-ai/dsh-client-ui-trajectory)。

说明

  • 本插件纯浏览器侧,无 host 行为,不写任何磁盘/系统配置。
  • 若数据源(conversation.view 的轨迹快照 requests)中无 usage 字段,图表显示空状态。

Comments

Loading…

Similar plugins

dsh-usage-dashboard

by xinmo114514

DSH(DeepSeek Harness)Web 插件:设置页 Token 消耗仪表盘 —— 指标卡、近 7 天/逐时趋势图、按模型/会话分布,数据全部来自本机会话日志,零外部请求。

Manifest valid

★ 0

Unlicense

TypeScript

Aug 15, 2026

dsh plugin --profile web add dsh-usage-dashboard

by LaoYueHanNi

贴近 DSH 原生设计风格的 token 用量统计插件:实时记录每次请求的用量与费用,在 Web UI 中提供趋势图表、按模型定价明细和供应商配额显示。

Tools & CapabilitiesModels & ProvidersManifest valid

★ 13

MIT

TypeScript

Sep 29, 2026

dsh plugin --profile web add @laoyuehanni/dsh-token-usage

by AKS1st

统计各模型 tokens 消耗并估算费用,显示账户余额 | Model token usage stats and cost estimation with account balance for DSH

Models & ProvidersManifest valid

★ 7

↓ 167/wk

MIT

JavaScript

Sep 14, 2026

dsh plugin --profile web add model-usage-plugin

by AlfredChaos

DeepSeek Harness 消耗统计插件:设置页 Token 用量 KPI、半年活跃热力图、按模型堆叠柱状图与模型环形图(dsh-plugin)

UI & ExperienceTerminal & ClientsSessions & MessagesModels & ProvidersManifest valid

★ 9

↓ 154/wk

MIT

TypeScript

Sep 15, 2026

dsh plugin --profile web add dsh-usage-panel

by olimc2016

DSH(DeepSeek Harness)Token 用量与花费面板插件:今日消费、预算进度、成本构成、缓存命中省下的钱。社区插件,非官方。

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 0

MIT

JavaScript

Sep 24, 2026

dsh plugin --profile web add dsh-token-meter-panel

by GIN0076

📊 Token usage dashboard for DeepSeek Harness Settings — daily/weekly/monthly per-model token stats with line & bar charts. Local-first, zero deps, pure SVG. DSH 设置面板词元用量统计插件

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 1, 2026

dsh plugin --profile web add @local/token-usage