Bright9025/dsh-session-stats-viewer ↗★ 2
@bright9025/dsh-session-stats-viewer
A DeepSeek Harness plugin that adds a session statistics page to the Web sidebar.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Bright9025/dsh-session-stats-viewer🧭 使用
- 点击左侧边栏的 会话统计。
- 顶部切换时间范围与货币(人民币 / 美元)。人民币界面默认人民币,其他语言默认美元。
- 柱状图悬停查看某一天的完整日期与四类 Token 拆分。
- 会话排行可切换 按 Token / 按耗时 / 按金额,点击任一行直接打开该会话。
- 页面每 20 秒自动刷新;切换范围会立即重新取数。
⚙️ 配置
成本为估算值,默认单价(人民币 / 百万 Token)写在 cordis.patch.yml:
| 字段 | 默认值 | 含义 |
|---|---|---|
input | 0.5 | 未命中缓存的输入 |
cacheRead | 0.05 | 缓存读取 |
cacheWrite | 0.5 | 缓存写入 |
output | 2 | 输出 |
cnyPerUsd | 7.2 | 人民币 / 美元换算 |
需要修改时,在 profile 的 cordis.patch.yml 中覆盖 session-stats-page 行(会替换整份 config,请把全部字段写全),然后重启 DSH:
- id: session-stats-page
config:
pricing:
input: 0.5
cacheRead: 0.05
cacheWrite: 0.5
output: 2
cnyPerUsd: 7.2