dsh-web-ui
zhu1090093659
Plugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:vector-sunlight/dsh-token-usage
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH Web 插件:在 dsh-better-sidebar(侧片卡片)右侧栏注册「⚡ Token 用量」标签页, 按会话独立统计当前会话的 token 用量与费用。

compaction/end)之后从新计量;
距最后一条记录满一周(再无新记录)时旧计量清零、重新开始;卡片显示「计量自 … 起」及重置原因本插件依赖「侧边卡片」插件 dsh-better-sidebar(>= 0.12.0):
Token 用量卡片显示在它提供的右侧栏里,没有它插件无法工作。
package.json 已声明 peerDependencies.dsh-better-sidebar# Windows PowerShell
powershell -ExecutionPolicy Bypass -File scripts/install.ps1
# 或远程执行
irm https://raw.githubusercontent.com/vector-sunlight/dsh-token-usage/main/scripts/install.ps1 | iex
# macOS / Linux
bash scripts/install.sh
# 或远程执行
curl -fsSL https://raw.githubusercontent.com/vector-sunlight/dsh-token-usage/main/scripts/install.sh | bash
dsh plugin --profile web add github:vector-sunlight/dsh-token-usage
%USERPROFILE%\.dsh\plugins\dsh-token-usage%USERPROFILE%\.dsh\profiles\web\package.json 的 dependencies 增加:
"dsh-token-usage": "link:../../plugins/dsh-token-usage"%USERPROFILE%\.dsh\profiles\web\cordis.patch.yml 追加挂载行:- insert:
- id: token-usage
name: 'dsh-token-usage'
profiles\web 执行 pnpm install装完重启 DSH(如 pm2 restart dsh-web,无 pm2 则重启 dsh web)并硬刷新浏览器。
lib/index.js:Host 半(ESM Cordis 插件)——注册 /token-usage/api/usage JSON 路由
(Host 头信任围栏与 /api 一致),折叠会话持久日志、解析官网价格、分段计价lib/client.js:Client 半(window.__ModuleLoader__ 模块表 bundle)——向 betterSidebar
注册标签页,每 3 秒轮询 Host 路由CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: better-sidebar、token-usage。