ChinRinhan/dsh-token-wall ↗★ 0
dsh-token-wall
Token usage dashboard for DeepSeek Harness: a block wall where each block is 10M tokens, spend breakdown by workspace / model / vendor, and a draggable floating pet. 适合需要可视化Token消耗、按工作区或模型分析用量并需要桌宠的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ChinRinhan/dsh-token-wallREADME
Read the full README ↗配置
在 profile 的 cordis.patch.yml 里覆盖,插件升级不会丢:
- id: dsh-token-usage # 内部标识,不要改(决定路由前缀与存储目录)
name: 'dsh-token-wall' # npm 包名
config:
keepDays: 400 # 保留天数(落盘时淘汰更早的日键)
includeSubagents: true # 计入子代理 / 团队 / workflow 子会话
includeAuxiliary: true # 计入压缩等辅助调用
statusBarEnabled: true # 是否允许显示输入框上方的横幅
statusBarRefreshMs: 1000 # 轮询间隔,最小 1000
backfillOnStart: true # 启动时回填历史
# 可选:手动声明模型别名(认不出的模型可以在这里归类)
modelAliases:
dfmodel:
vendor: deepseek
model: deepseek-v4.1-flash
开关有两层,分别管什么
| 位置 | 生效方式 | 用途 | |
|---|---|---|---|
config.statusBarEnabled | cordis.patch.yml | 重启 DSH | 部署期的硬开关 |
| 设置页五个开关 | $DSH_HOME/token-usage/prefs.json | 立即生效 | 日常调整 |
设置页那五个开关存在独立文件里,是因为改 Cordis config 要重启,而「我想把桌宠关掉」显然不该重启。
其中两个是统计口径(includeSub / includeAux,对应「含子会话」「含辅助调用」)。它们会影响所有读数——方块墙、桌宠、横幅、设置页表格共用同一份口径,改完下一拍轮询就生效。放在这里而不是 Cordis config 里,是为了能随时切换并立即看到差别。