rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wangyong1972/dsh-quota-dashboard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A draggable quota & cost dashboard for the DeepSeek Harness (dsh) Web GUI. One floating card combines OpenRouter and DeepSeek balances and spend — from official APIs plus a local session-log pricing engine.
一个为 DeepSeek Harness(dsh)Web GUI 打造的可拖拽额度/费用面板。一张悬浮卡片整合 OpenRouter 与 DeepSeek 的余额与花费——数据来自官方 API 加本地会话日志计价引擎。
| 数据 | OpenRouter | DeepSeek |
|---|---|---|
| 余额(真实剩余) | ✅ 官方 /credits |
✅ 官方 /user/balance |
| 赠送额度 | — | ✅ granted / topped-up |
| 当前对话费用 | ✅ 会话日志回放 | ✅ 会话日志回放 |
| 今日 / 本周 / 本月 | ✅ 官方 /auth/key |
✅ 今日:官方(平台 token)或回放 |
| 过去 1 小时 | ✅ 本地记账 | ✅ 回放 |
其他特性:
GET /api/quota-dashboard,密钥由宿主 credentials 服务解析方式一:npm(推荐,一行安装)
dsh plugin --profile web add @wangyong1972/dsh-quota-dashboard
# 重启 dsh web(bundle 层启动时加载),然后硬刷新浏览器(Cmd+Shift+R)
方式二:从源码安装(开发/贡献)
git clone https://github.com/wangyong1972/dsh-quota-dashboard
dsh plugin --profile web add /path/to/dsh-quota-dashboard
插件的 key 复用 DSH 已有的 credentials:
| 凭据 | 用途 |
|---|---|
OPENROUTER_API_KEY |
OpenRouter 余额/用量(Settings → Models 页面设置) |
DEEPSEEK_API_KEY |
DeepSeek 余额 |
DEEPSEEK_PLATFORM_TOKEN(可选) |
解锁 DeepSeek 官方「今日」用量(与控制台一致)。获取:登录 https://platform.deepseek.com → DevTools → Console → JSON.parse(localStorage.getItem('userToken')).value → 加入 ~/.dsh/.credentials.yaml |
未配置 DEEPSEEK_PLATFORM_TOKEN 时,「今日」自动回放本地会话日志(准确,包含安装前历史)。
/models 价格表,DeepSeek 用官方定价)$DSH_HOME/storages/quota-dashboard-ledger.jsonl(记账最近 7 天)ctx.credentials 解析,不发送到浏览器MIT。lib/pricing.js 移植自 dsh-web-billing(MIT),见 LICENSE。
A draggable quota & cost dashboard for the DeepSeek Harness (dsh) Web GUI. One floating card combines OpenRouter and DeepSeek balances and spend — from official APIs plus a local session-log pricing engine.
| Data | OpenRouter | DeepSeek |
|---|---|---|
| Balance (real remaining) | ✅ official /credits |
✅ official /user/balance |
| Granted credit | — | ✅ granted / topped-up |
| This-chat cost | ✅ session-log replay | ✅ session-log replay |
| Today / Week / Month | ✅ official /auth/key |
✅ Today: official (platform token) or replay |
| Last hour | ✅ local ledger | ✅ replay |
Also:
GET /api/quota-dashboard; secrets resolve via the host credentials serviceOption 1: npm (recommended, one line)
dsh plugin --profile web add @wangyong1972/dsh-quota-dashboard
# restart `dsh web` (bundle layers load at boot), then hard-refresh (Cmd+Shift+R)
Option 2: from source (development / contributions)
git clone https://github.com/wangyong1972/dsh-quota-dashboard
dsh plugin --profile web add /path/to/dsh-quota-dashboard
Keys reuse the harness credentials:
| Credential | Purpose |
|---|---|
OPENROUTER_API_KEY |
OpenRouter balance/usage (Settings → Models page) |
DEEPSEEK_API_KEY |
DeepSeek balance |
DEEPSEEK_PLATFORM_TOKEN (optional) |
Unlocks the official DeepSeek "today" usage (same data as the platform console). Get it: log in to https://platform.deepseek.com → DevTools → Console → JSON.parse(localStorage.getItem('userToken')).value → add to ~/.dsh/.credentials.yaml |
Without DEEPSEEK_PLATFORM_TOKEN, "today" falls back to replaying local session logs (accurate, includes pre-install history).
/models table, DeepSeek official pricing)$DSH_HOME/storages/quota-dashboard-ledger.jsonl (7-day retention)ctx.credentials — never sent to the browserMIT. lib/pricing.js is ported from dsh-web-billing (MIT); see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、openrouter。