dsh-token-workbench

给 token plan 用户的 Token 用量工作台:把会话日志里的 assistant/message usage 折成按天分片的调用级明细(按跨会话 responseId 去重,fork/resume 复制的历史只算一次),并按你填写的套餐口径把本机用量换算成积分(默认 1M token = 0.2 积分,日 600 / 周 2500 / 月 6000,可只统计指定通道),在输入框下方给常驻读数、在设置页给分通道成本表、7/30 天柱状与折线趋势、近半年热力图。不读取任何凭据:厂商藏在控制面接口里的剩余百分比,用明确标注「本机换算」的本地口径替代;参考金额来自公开的 DeepSeek 定价页。

插件介绍

给 token plan 用户的 Token 用量工作台:把会话日志里的 assistant/message usage 折成按天分片的调用级明细(按跨会话 responseId 去重,fork/resume 复制的历史只算一次),并按你填写的套餐口径把本机用量换算成积分(默认 1M token = 0.2 积分,日 600 / 周 2500 / 月 6000,可只统计指定通道),在输入框下方给常驻读数、在设置页给分通道成本表、7/30 天柱状与折线趋势、近半年热力图。不读取任何凭据:厂商藏在控制面接口里的剩余百分比,用明确标注「本机换算」的本地口径替代;参考金额来自公开的 DeepSeek 定价页。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:dragonestdwolf/dsh-token-workbench

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。