New:Socket for Asana Is Now Available.Learn more
Get Started

dsh-plugins-meter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-plugins-meter

Token usage & cost metering for dsh: per-session and aggregate token statistics (cache hit rate, input/output split) with configurable pricing, plus markdown reports.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

dsh-meter — Token 用量 / 成本统计

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 }

FAQs

Package last updated on 20 Aug 2026

Related posts