dsh-usage-ledger

dsh-usage-ledger(Token 费用统计)— 自动记下每笔对话花了多少 Token、多少钱(按对话、按天、累计都能查),价格自动跟着官方最新价走、支持多家国产厂商,低谷时段自动按便宜价算,预算超了自动提醒还能拦下调用,带可视化仪表盘。

插件介绍

dsh-usage-ledger(Token 费用统计)— 自动记下每笔对话花了多少 Token、多少钱(按对话、按天、累计都能查),价格自动跟着官方最新价走、支持多家国产厂商,低谷时段自动按便宜价算,预算超了自动提醒还能拦下调用,带可视化仪表盘。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:beijingwahw/dsh-usage-ledger

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.

版本兼容情况

第三方安装实测

安装测试结果
测试版本不兼容
实测 Harness 版本
0.2.0-rc.2
实测插件版本
未记录
测试日期

版本回退

回退测试结果
尚未实测
查看依赖版本范围
@deepseek-ai/dsh-host-webserver
^0.1.0-rc.1
@deepseek-ai/dsh-llm
^0.1.0-rc.1
@deepseek-ai/dsh-session
^0.1.0-rc.1
@deepseek-ai/dsh-settings
^0.1.0-rc.1
@deepseek-ai/dsh-system-prompt
^0.1.0-rc.1
@deepseek-ai/dsh-tools
^0.1.0-rc.1

安装提示

  • 可能调用终端命令