kc0ed/dsh-bottom-bar
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支持峰谷计价。用量账本保存在用户本地设备,不会上传至第三方服务器。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-bottom-bar(kc0ed/dsh-bottom-bar)
仓库:https://github.com/kc0ed/dsh-bottom-bar
本站详情页:https://www.yhbd.top/plugins/kc0ed-dsh-bottom-bar/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 8 · 最近提交 2026-09-03 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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 底栏统计 + 预估费用插件:把聊天界面最底下那行统计接管过来,做成能自己组装的样子——想显示啥显示啥,还能拖拽排序,末尾缀一个预估费用,花钱心里有数。
安装
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. 装完(两种方式都一样)
- 彻底退出 DSH 再重启(
dsh web前老进程得死透,刷新页面不算) - 浏览器 Ctrl+Shift+R 硬刷新——不是没装上,是缓存记性好
- 想装到别的 profile(如 headless)就把
web换成 profile 名
卸载:dsh plugin --profile web remove @kc0ed/dsh-bottom-bar(依赖和层栈一起清)
常见坑
'pnpm' 不是内部或外部命令→ pnpm 没装,或装完没重开终端。先npm i -g pnpm,重开终端,pnpm -v验证再继续。- 命令报「不是内部或外部命令」且命令看起来残缺 → 大概率是终端粘贴把长命令拆碎了。一行一行手敲,注意:
@kc0ed中间是数字 0(不是字母 O)。 pnpm failed+ 提示 allowBuilds(git 方式常见) → pnpm 10 默认拦截 git 依赖的构建脚本,需要显式批准:看报错里打印的 exact key(引号里那串,形如
github.com/kc0ed/dsh-bottom-bar)编辑
~/.dsh/profiles/web/pnpm-workspace.yaml,加:allowBuilds: <exact-key>: "dsh"保存后重跑第 1/2 步的 add 命令。
- 装完底栏没变化 → 先 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 →
loongsuite/dsh-plugin
nocobase/nocobase
TencentCloudBase/CloudBase-AI-Toolkit
WYH66666666/DSH-Transparent-UI-Plugin
Nagi-ovo/dsh-visualize
SepineTam/mcp-for-stata
omdsh-dev/dsh-data-agent