rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
joyboy-yy/dsh-quota-overview
A DSH (DeepSeek Harness) Web plugin: a full-width sidebar quota entry shows the DeepSeek account balance and OpenCode Go usage together; clicking opens a dialog with details, live reset countdowns and inline API key setup.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:joyboy-yy/dsh-quota-overview
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH(DeepSeek Harness)Web 插件:在侧边栏底部、用户头像上方新增一整行「额度」入口,同时展示 DeepSeek 账户余额与 OpenCode Go 套餐用量;点击入口弹出详情弹窗,可查明细、重置倒计时, 并在缺失密钥时直接填入 API Key。

DeepSeek ¥余额;OpenCode Go 的 5 小时 / 本周 / 本月三档用量徽章(<60% 绿 / 60–85% 黄 / ≥85% 红);?fresh=1 绕过 30 秒缓存)与「全部刷新」。DEEPSEEK_API_KEY / OPENCODE_GO_API_KEY(也覆盖启动环境变量提供的值);~/.local/share/opencode/auth.json 中的 opencode-go 条目。DEEPSEEK_API_KEY / OPENCODE_GO_API_KEY 两个 DSH 凭据,与 DSH 模型供应商共用
同一份密钥,保存后立即重新查询。

# 从 npm 安装(发布后)
dsh plugin add dsh-quota-overview
# 或指定 profile
dsh plugin --profile desktop add dsh-quota-overview
也可以在 DSH 的「设置 → 插件」中通过插件市场搜索 dsh-quota-overview 安装(收录后)。
| 文件 | 说明 |
|---|---|
index.js |
Host 半:解析凭据、查询上游、注册 /api/dsh-quota-overview/status 与 /api/dsh-quota-overview/key 路由 |
client.js |
Client 半:sidebar.footer.action 入口 + shell.overlay 详情弹窗(手写 __ModuleLoader__ bundle,无需构建) |
cordis.patch.yml |
Bundle 层:插入 dsh-quota-overview 行 |
locale/zh.json / locale/en.json |
插件显示名称与描述 |
icon.svg |
原创图标 |
docs/preview-*.png |
预览截图 |
GET https://api.deepseek.com/user/balance(Bearer DEEPSEEK_API_KEY)GET https://opencode.ai/zen/go/v1/usage(Bearer OPENCODE_GO_API_KEY)密钥只在 Host 进程内使用,不会返回浏览器;浏览器只看到余额/百分比与来源描述。
dsh-quota-overview is a DSH (DeepSeek Harness) Web plugin that adds a full-width "Quota" entry to the
sidebar footer, right above the user row. It shows the DeepSeek account balance and OpenCode Go
quota windows (5h / weekly / monthly) together. Clicking the entry opens a dialog with details, live
reset countdowns and inline API-key setup.
Keys are resolved from DSH credential refs DEEPSEEK_API_KEY / OPENCODE_GO_API_KEY first (which also
covers values supplied by the launching environment), then the same process environment variables, then
the OpenCode CLI auth file (~/.local/share/opencode/auth.json). When a key is missing or rejected, the
dialog renders a password field and saves the value back to the same DSH credential ref.
dsh plugin add dsh-quota-overview
MIT © 2026 joyboy-yy
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。