kc0ed/dsh-bottom-bar 预览 preview

kc0ed/dsh-bottom-bar

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

DSH 底栏统计 + 预估费用插件:把聊天界面最底下那行统计接管过来,做成能自己组装的样子——想显示啥显示啥,还能拖拽排序,末尾缀一个预估费用,花钱心里有数。

catalog descriptioncatalog 简介 / catalog description:用于提供更丰富的DeepSeek Harness底栏信息显示插件

Project Overview项目介绍

kc0ed/dsh-bottom-bar is a native plugin built exclusively for DeepSeek Harness (DSH). It replaces the default bottom bar of DSH's chat interface with a fully customizable version that lets users select which information to display, adjust the order of elements via drag-and-drop, and add a real-time cost estimation feature. Before installing, you need to have Node.js, pnpm, and the DSH CLI installed globally on your machine. After verifying your installations work in a new terminal window, you can install either the stable npm release or pull the latest unreleased code directly from the GitHub main branch.

This plugin is designed for DSH users who regularly interact with large language models and want to keep track of their usage and associated costs. After installation completes, you will need to fully exit DSH, restart the DSH process, and hard refresh your browser to activate the plugin. Once activated, you can access the plugin’s settings panel to toggle the 8 available statistical segments on or off, including conversation rounds, LLM latency, token throughput, cache hit rate, input/output token count, and cost estimation. You can use Ctrl-click to select multiple segments at once and drag them to reorder the entire group to match your display preferences.

This plugin is released under the open source MIT license, with no associated costs for personal or commercial use. Prerequisites for installation include a global installation of Node.js, pnpm, and the DSH CLI, all of which can be installed via npm. The cost estimation feature provided by the plugin is for reference only, as it calculates cost based on token usage and base unit price, and does not account for official discounts or promotional pricing. Peak and off-peak pricing is currently only supported for DeepSeek official channels and OpenCode, and all usage ledgers are stored locally on your device and never uploaded to third-party servers.

这是一个专为DeepSeek Harness(DSH)开发的原生插件,用于替换DSH聊天界面默认的底栏统计区域,支持用户自定义组装显示内容,可自由开关各个统计模块、拖拽排序,还新增了预估费用功能,帮助用户随时掌握token使用成本。安装方式支持两种,既可通过DSH命令行安装npm发布的稳定版,也可直接拉取GitHub主分支获取最新未发版改动。

该插件面向需要关注LLM对话用量统计和成本控制的DSH用户开发,安装完成后,用户可进入插件设置页配置需要显示的统计项、调整显示顺序,还可添加不同模型的自定义定价信息。插件支持8种统计分段,涵盖对话轮次、LLM耗时、token吞吐速率、缓存命中率、输入输出token数和核心的预估费用。支持Ctrl点选批量拖拽调整位置,可满足用户不同的展示偏好。

该插件遵循MIT许可证发布,安装前置依赖要求用户提前装好Node.js、pnpm和DSH命令行工具。安装完成后需要彻底退出DSH再重启,随后硬刷新浏览器页面才能生效。费用计算仅为基于token用量和单价估算的参考值,不包含官方优惠和活动价,目前仅对DeepSeek官方渠道和OpenCode支持峰谷计价。用量账本保存在用户本地设备,不会上传至第三方服务器。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 8 stars - very few users, little community feedback星标只有 8,几乎没人在用,遇到问题缺少社区反馈
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 @kc0ed/dsh-bottom-bar

把 kc0ed/dsh-bottom-bar 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

@kc0ed/dsh-bottom-bar

DSH 底栏统计 + 预估费用插件:把聊天界面最底下那行统计接管过来,做成能自己组装的样子——想显示啥显示啥,还能拖拽排序,末尾缀一个预估费用,花钱心里有数。

QQ_1786701111767 image image image

安装

0. 前置(两条都要有,缺一不可)

# ① Node.js(用它装下面两个)
# ② pnpm —— dsh plugin 是 pnpm 转发器,没它必挂:
npm i -g pnpm
# ③ dsh 命令行(有就跳过):
npm i -g @deepseek-ai/dsh

装完重开一个新的终端(PATH 才生效),验证:

pnpm -v        # 能打印版本号 = OK
dsh --version  # 能打印版本号 = OK

1. 方式一:npm 稳定版(推荐,省心)

dsh plugin --profile web add @kc0ed/dsh-bottom-bar
  • 跟随 npm 发布节奏(发新版才更新),稳定,不折腾
  • 缺点:GitHub 有新改动时,要等发版才能拿到(可能慢一两天)
  • 更新到最新版:
dsh plugin --profile web update @kc0ed/dsh-bottom-bar

2. 方式二:GitHub 直装(类似 nightly,永远最新)

dsh plugin --profile web add github:kc0ed/dsh-bottom-bar
  • 直接拉仓库 main 分支,代码推到 GitHub 即可用,不等发版
  • 缺点:可能吃到刚提交还没充分测试的改动;且可能触发 pnpm 的 git 构建审批(见下方「常见坑-3」)
  • 更新:git pull 后重跑一次 add 即可(或 cd ~/.dsh/profiles/web && pnpm update github:kc0ed/dsh-bottom-bar)

3. 装完(两种方式都一样)

  1. 彻底退出 DSH 再重启(dsh web 前老进程得死透,刷新页面不算)
  2. 浏览器 Ctrl+Shift+R 硬刷新——不是没装上,是缓存记性好
  3. 想装到别的 profile(如 headless)就把 web 换成 profile 名

卸载:dsh plugin --profile web remove @kc0ed/dsh-bottom-bar(依赖和层栈一起清)

常见坑

  1. 'pnpm' 不是内部或外部命令 → pnpm 没装,或装完没重开终端。先 npm i -g pnpm,重开终端,pnpm -v 验证再继续。
  2. 命令报「不是内部或外部命令」且命令看起来残缺 → 大概率是终端粘贴把长命令拆碎了。一行一行手敲,注意:@kc0ed 中间是数字 0(不是字母 O)。
  3. pnpm failed + 提示 allowBuilds(git 方式常见) → pnpm 10 默认拦截 git 依赖的构建脚本,需要显式批准:
    1. 看报错里打印的 exact key(引号里那串,形如 github.com/kc0ed/dsh-bottom-bar)

    2. 编辑 ~/.dsh/profiles/web/pnpm-workspace.yaml,加:

      allowBuilds:
        <exact-key>: "dsh"
      
    3. 保存后重跑第 1/2 步的 add 命令。

  4. 装完底栏没变化 → 先 Ctrl+Shift+R;还不行就彻底退出 DSH 再启动。

⚠️ 装了静态包之后,别再同时跑「动态插件」形态,两个实例写同一个账本会打架。

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-chat-outline 下一个 Next dsh-git-worktree →