rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ninedaywoo-web/DSH-Plugin-API-Usage-Monitor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个为 DeepSeek Harness Web 侧边栏设计的 API 用量、余额与费用监控插件:把 API 余额做成血条,把当天消耗做成架势条,并用“梁子 / 梁圣”提示峰谷时段。
非官方社区插件,与 DeepSeek 官方无隶属或背书关系。截图中的金额为演示数据。

| 功能 | 说明 |
|---|---|
| 余额血条 | 当前余额相对本管血量上限的比例;正常消费只扣血,不会莫名回满。 |
| 今日架势条 | 显示当天消费相对每日预算的比例;充值或刷新血条不会把它清零。 |
| 峰谷状态 | 峰段显示“梁子”,谷段显示“梁圣”,点击可展开价格时段与余额详情。 |
| 充值与刷新 | 点击血瓶后可前往 DeepSeek 官方充值页,充值完成后可手动刷新血条上限。 |
| 一键重启 | 从侧边栏重启当前 Harness;Windows 使用最小化监督终端,macOS 使用后台监督器。 |
| 状态持久化 | 重启 Harness 后保留血条基准和当天消费状态。 |


DEEPSEEK_API_KEY0.1.0-rc.6 或兼容版本^22.19.0 或 >=24.0.0插件不负责安装 Harness,也不会替 Harness 配置 API Key。
dsh-plugin-api-usage-monitor-*.tgz。dsh plugin --profile web add "/absolute/path/to/dsh-plugin-api-usage-monitor-1.9.0-rc.4.tgz"
dsh web
web profile 中,不需要每次重新安装。Windows 的重启监督器使用一个最小化常驻终端,以避免周期性弹出 PowerShell 窗口。macOS 不显示常驻终端,监督日志写入:
$DSH_HOME/logs/dsh-balance-bar-supervisor.log
macOS 真机验收请重点检查:安装、余额读取、点击重启、重启后的状态保留,以及是否出现残留进程。
dsh plugin --profile web remove dsh-plugin-api-usage-monitor
卸载不会删除 Harness 会话。插件自己的血条状态位于:
$DSH_HOME/storages/balance-bar-day.json
如需完全清理,可在 Harness 停止后手动删除该文件。
npm test
npm run preflight
npm pack --dry-run
当前自动化测试覆盖余额扣减、手动充值刷新、跨日状态、价格策略、重复重启、崩溃恢复、随机端口和 Windows/macOS 启动方式。
代码使用 MIT License。角色图片不包含在 MIT 授权范围内,详见 ASSET-NOTICE.md。
A DeepSeek Harness plugin for API balance monitoring, daily cost and token tracking, peak/off-peak pricing indicators, recharge refresh, and one-click restart. Its game-style interface turns your API balance into an HP bar and today's spend into a posture bar.
This is an unofficial community plugin and is not affiliated with or endorsed by DeepSeek. Amounts shown in screenshots are demo data.

| Feature | What it does |
|---|---|
| Balance HP bar | Shows the current balance relative to the confirmed full-HP baseline. Normal spending lowers HP without unexpectedly resetting it. |
| Daily posture bar | Shows today's spend relative to the daily budget. Recharging or refreshing HP does not clear it. |
| Peak/off-peak status | Displays “Liangzi” during peak pricing and “Liangsheng” off peak. Click it for timing, balance, spend, and pricing-bucket details. |
| Recharge and refresh | The flask opens DeepSeek's official top-up page or manually refreshes the full-HP baseline after a recharge. |
| One-click restart | Restarts the current Harness from the sidebar, using a minimized supervisor on Windows and a background supervisor on macOS. |
| Persistent state | Preserves the HP baseline and today's usage state across Harness restarts. |


DEEPSEEK_API_KEY already configured0.1.0-rc.6 or a compatible release^22.19.0 or >=24.0.0This plugin does not install Harness or configure your API key.
dsh-plugin-api-usage-monitor-*.tgz from GitHub Releases.dsh plugin --profile web add "/absolute/path/to/dsh-plugin-api-usage-monitor-1.9.0-rc.4.tgz"
dsh web
web profile across future launches.On Windows, the restart supervisor uses one minimized persistent console to prevent recurring PowerShell pop-ups. On macOS, it runs in the background and writes logs to:
$DSH_HOME/logs/dsh-balance-bar-supervisor.log
For real-device macOS acceptance, verify installation, live balance loading, one-click restart, state persistence, and the absence of orphan processes.
dsh plugin --profile web remove dsh-plugin-api-usage-monitor
Uninstalling does not remove Harness conversations. The plugin's own meter state is stored at:
$DSH_HOME/storages/balance-bar-day.json
Stop Harness and delete that file manually only if you want a complete state reset.
npm test
npm run preflight
npm pack --dry-run
The automated suite covers spending, manual recharge refresh, day rollover, pricing policies, duplicate restarts, crash recovery, ephemeral ports, and Windows/macOS launch behavior.
Source code is released under the MIT License. Character artwork is not covered by the MIT license; see ASSET-NOTICE.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。