dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Cumulative token usage ledger for DeepSeek Harness: live capture plus historical backfill, draggable web panel and HTTP API. | 中文:DSH 全局累积 token 用量账本:实时捕获 + 历史回填,悬浮面板与 HTTP API。
中文 | English
为 DeepSeek Harness 提供跨提供商的全局累积 token 用量账本:实时捕获、历史回填、可拖拽悬浮面板与 HTTP API。
账本采用与官方 dsh-token-meter 相同的 usage 事件契约,因此与具体 API 提供商无关。
session/event,增量消费所有活跃会话。同一 (turn, step) 的重复样本会被替换而非累加,llm/retry-started 用于关闭当前样本窗口。session.jsonl.zstd——拼接 zstd 帧、逐帧解压、按 seq 去重。因此安装插件之前产生的用量同样会被计入。localStorage,每 5 秒轮询一次 API;统计以「亿」(1e8 tokens)为单位展示。~/.dsh/token-ledger/ledger.json,采用 tmp + rename 原子写与定时防抖。try/catch,统计异常绝不影响会话主流程。dsh plugin --profile web add github:wakeup595626-cmyk/dsh-token-ledger
点击左下角 FAB 打开面板。HTTP API 位于 /@dsh-external/dsh-token-ledger/api。
无第三方运行时依赖,zstd 解压交由 host 运行时完成。
详见 THIRD_PARTY_NOTICES.zh.md(English)。
dsh-plugin 话题,便于被发现。参见 CONTRIBUTING.zh.md(English)。
@misc{dsh-token-ledger,
title={dsh-token-ledger},
author={wakeUp595626-cmyk},
year={2026},
publisher={GitHub},
howpublished={\url{https://github.com/wakeup595626-cmyk/dsh-token-ledger}},
}