Tools & Capabilities

dsh-meter

kouyichi/dsh-plugins/dsh-meter · ★ 2

kouyichi

Token usage and cost metering for dsh: per-session and aggregate statistics with configurable pricing and reports.

README body is shown in Chinese.

License
Unknown
Added
2026-08-21
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:kouyichi/dsh-plugins#path:/dsh-meter

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: zh · Read Chinese README

Web UI 侧计费组件已内卷(20+ 重复),但模型侧的用量分析是空的。meter 解码会话日志,聚合 Token(未缓存输入/缓存读/输出)、缓存命中率与估算成本。

工具

工具 功能
meter_summary 总览:命中率/成本/按天/Top 会话
meter_session 单会话明细
meter_report 生成 markdown 报告(~/.dsh/meter/reports/)

价格默认值为估算,可在 ~/.dsh/meter/pricing.json 覆盖:

{ "input_per_mtok": 0.5, "cache_read_per_mtok": 0.1, "output_per_mtok": 1.5 }