dsh-usage-plugin
其他 活跃维护

dsh-usage-plugin

Yihong89/dsh-usage-plugin

提供DeepSeek会话Token用量与预估花费统计能力,支持通过/usage指令快速查询单会话的Token消耗,自动匹配官方定价表计算预估成本,同时可生成全维度用量报表,安装后无需额外配置即可直接使用。

3
Stars 标星
0
Forks 分支
3
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
193 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Yihong89/dsh-usage-plugin
git clone https://github.com/Yihong89/dsh-usage-plugin.git
git clone git@github.com:Yihong89/dsh-usage-plugin.git
README.md main

dsh-plugins

Plugins for DeepSeek Harness (DSH).

A pnpm workspace: one package per plugin under packages/.

Package What it does
dsh-usage-plugin Per-session token usage and estimated cost report (/usage command + usage_report tool), priced from the DeepSeek pricing table.

Install a plugin

# install the package into your profile (each plugin is a workspace package)
dsh plugin --profile web add -w 'github:Yihong89/dsh-usage-plugin#main&path:packages/usage-report'

# activate by inserting the plugin row into the profile's patch layer
# (~/.dsh/profiles/web/cordis.patch.yml):
#
#   - insert:
#       - id: usage-report
#         name: 'dsh-usage-plugin'

The loader hot-reloads config changes, so no process restart is needed.

Development

pnpm install
pnpm run build   # tsc for every package
pnpm run test    # node --test for every package

License

MIT