DeepSeek Harness Plugin

kouyichi/dsh-plugins#dsh-meter

Stars ★ 3 Downloads (30d) 312 Category Tools & Capabilities Added 2026-08-21 npm dsh-plugins-meter

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

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-plugins-meter

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

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

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

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 }

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.