
DeepSeek Harness 会话费用统计插件:本会话费用、当日费用、历史记录与官方价格同步
Install Dsh Cost Meter
Installs straight from git: plain JavaScript that needs no build step, so no build allowance is required.
The one-line version
dsh plugin --profile my-profile add github:Han-1413141/dsh-cost-meterThis bundle is not on npm, so it installs straight from git. Its build output is already committed to the repository (or it needs no build at all), so it loads without a build step.
From GitHub — artifacts are already committed, nothing is built locally
# 1. add the bundle to a profile — --profile my-profile points at $DSH_HOME/profiles/my-profile
dsh plugin --profile my-profile add github:Han-1413141/dsh-cost-meter
# 2. verify: the bundle should show up as a layer in the resolved config
dsh --profile my-profile --dump-config
# 3. boot the profile
dsh --profile my-profilePin a commit — github:Han-1413141/dsh-cost-meter#<commit-sha> — if you want the code you reviewed to be the code you keep getting.
Before you run it
- A plugin runs with your permissions once loaded: it can read your files, use your credentials and reach the network. Tool approvals do not sandbox it.
- Installing from git resolves a moving branch. Pin a commit —
github:Han-1413141/dsh-cost-meter#<commit-sha>— so the code you reviewed is the code you install.
Prerequisites
- API key
- Required — see the repository README for which provider.
- Network access
- Required at runtime.
- Language
- JavaScript — a git install pulls this source, not build output.
Install check
Every field the verdict was derived from, so you can re-derive it yourself
| Field checked | Result | Weight | What the spec says about it |
|---|---|---|---|
| lifecycleScripts | pass | info | no install-time scripts |
| dsh.bundle | pass | fatal | package.json declares a `dsh.bundle` layer |
| dsh.bundle.patch file | pass | fatal | patch file present at `cordis.patch.yml` |
| npm registry | missing | warn | `dsh-cost-meter` is not published to npm |
| build requirement | pass | info | plain JavaScript — loads from source without a build |
- Verdict reason
- git-only but needs no build
- package.json read
- package.json
- Rules applied from
- docs/user/develop/basic/publish.md
- Checked at
- 2026-08-15
From the README
Excerpt as published by the author, plain text, unedited
**DeepSeek Harness 会话费用统计插件(界面中英双语)** 本会话费用 · 当日费用 · 预算与已用百分比 · 官方账户余额 · 历史记录 · 峰谷计价 · 官方价格一键同步 | 功能 | 位置 | 说明 | |---|---|---| | 本会话费用 | 输入区下方 / 会话标题栏 | 实时累计费用 + 输入/缓存/输出 token,位置可配 | | 官方余额 | 侧边栏顶部 / 设置页(可配) | 总余额 / 赠送 / 充值,自动刷新 + 手动刷新 | | OpenCode Go 额度 | 侧边栏 / 设置页(可配) | 滚动 5 小时 / 本周 / 本月用量百分比与重置时间,Key 自动发现(opencode 登录态 / OPENCODE_API_KEY)或手动填写 | | 当日费用 | 侧边栏底部(设置按钮上方) | 「今日 ¥x」,悬停见调用次数与 token 明细 | | 预算图框 | 侧边栏底部(余额行与设置按钮之间) | 圆角方形图框:预算、已用%、进度条、今日费用与占预算%、已用/额度,≥80% 预警、≥100% 超支 | | 汇总卡片 | 设置页 | 今日 / 本月 / 累计费用与调用次数 | | 今日会话明细 | 设置页 | 每个会话的调用次数、输入/缓存/输出 token 与费用 | | 历史记录 | 设置页 | 按天汇总,保留天数可配(默认 180 天) | | 预算设置 | 设置页顶部 | 额度、周期(今日/本月/累计/自定义日期区间)、已用% | | 价格表 | 设置页 | 每模型 基础/谷时/峰时 三档价格,增删改自由 | | 峰谷计价 | 设置页 | DeepSeek 官方峰谷方案,带生效时间门控与当前档位状态 | | 官方价格同步 | 设置页 | 抓取解析官方定价页,一键应用 | | 界面语言 | 设置页 → 显示设置 |
Topics
GitHub topics on this repository
More in Deepseek Api Token Usage
Ranked by similarity inside the cluster, not alphabetically
Dsh Api Balance
ArcanePivot
DeepSeek Harness Web UI widget for viewing DeepSeek API balance from the host side.
Dsh Deepseek Quota
yingjunnan
DeepSeek API quota (balance) widget for the DSH web GUI: a floating bottom-right card showing remaining DeepSeek API balance.
Dsh Usage Chart
Max-Samson
A DeepSeek Harness Web plugin for real-time Token usage, cost estimates, per-round charts, and DeepSeek API balance.
Dsh Plugin Llm Balance
FengHuoLinShan
DSH 插件:可拖动的 API 余额/配额悬浮卡片(DeepSeek / Moonshot / Kimi For Coding 自动发现、分档变色、实时刷新)| Draggable API balance/quota card for DeepSeek Harness
Dsh Ess Proposal
AlanHuang168
DeepSeek Harness (DSH) 开源插件:根据电费单生成对应国家光伏+储能方案
Dsh Client Ui Monitor
Auran-Lu
用于监控当前会话额度消耗、预估费用及当前API余额/Used to monitor the current session's quota consumption, estimated costs, and current API balance.