ZnonEn/dsh-volcark-quota
火山方舟 Coding Plan / Agent Plan 额度实时查看的 DeepSeek Harness (DSH) 插件:AK/SK 直连官方 API,悬浮小球 + Donut 环形图展示各窗口已用/剩余/重置倒计时(两位小数)
Project Overview项目介绍
This is a DSH-native plugin built exclusively for DeepSeek Harness that lets users monitor their Volcengine Volcano Ark Coding Plan and Agent Plan quota usage in real time. When collapsed, it appears as a draggable floating ball that shows the highest usage percentage with color-coded alerts, and clicking it expands into a full draggable floating window. The window displays used percentage (to two decimal places, matching the official console), remaining quota, and a live countdown to quota reset, with automatic refreshes every 60 seconds. It connects directly to the official Volcengine API, so no third-party services are required.
To install the plugin, users run the official dsh plugin add command pointing to this GitHub repository, and can optionally specify a version tag if they need a specific release. Pre-built output files are already committed to the repository, so users do not need to build from source unless they are modifying the plugin code locally. After installation, users configure their Volcengine Access Key and Secret Key either through the DSH plugin settings panel or by setting environment variables before starting DSH. Credentials are stored securely following DSH's native credential mechanism, and keys are never exposed to the browser UI.
The plugin stores credentials securely following DSH's native credential flow, so keys are never returned to the UI, and users can clear their credentials with a single click from the settings panel. Common issues like invalid credentials, incorrect system time, mismatched plan types, and missing bundle configuration are documented in the README with step-by-step fixes. The plugin is released under the permissive BSD-3-Clause open source license, and its UI design was inspired by existing open source community projects released under the MIT license, with full attribution provided in the repository.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,核心功能是实时查看火山方舟 Coding Plan / Agent Plan 的额度使用情况。它默认收起为可拖动悬浮小球,点击展开可拖拽悬浮窗,展示各周期(5小时/本周/本月)的已用百分比(保留两位小数,与官方控制台一致)、剩余额度和重置倒计时,额度超阈值会变色告警,每60秒自动刷新。
该插件面向使用火山方舟 Coding Plan / Agent Plan 的 DSH 用户,帮助开发者实时掌握额度使用情况,避免额度耗尽影响开发进度。用户可通过 DSH 官方命令直接从 GitHub 源安装,仓库已提交预构建产物,无需本地编译即可使用。配置 AK/SK 支持通过 DSH 插件设置页面或环境变量两种方式完成。
插件直连火山方舟官方 API,使用 HMAC-SHA256 V4 签名鉴权,主机端零额外依赖,仅使用 Node.js 原生 crypto 和 https 模块。AK/SK 使用 DSH 官方凭据服务存储,浏览器端不会保存密钥,安全性有保障。插件采用 BSD-3-Clause 许可证开源,部分UI参考了社区其他MIT协议项目。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-volcark-quota(ZnonEn/dsh-volcark-quota)
仓库:https://github.com/ZnonEn/dsh-volcark-quota
本站详情页:https://www.yhbd.top/plugins/znonen-dsh-volcark-quota/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 BSD-3-Clause · ⭐ 3 · 最近提交 2026-08-17 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin add github:ZnonEn/dsh-volcark-quota
把 ZnonEn/dsh-volcark-quota 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@dsh-external/dsh-volcark-quota
DeepSeek Harness (DSH) 插件:火山方舟 Coding Plan / Agent Plan 额度实时查看。
悬浮小球(收起)→ 点击展开可拖拽悬浮窗,实时展示套餐各窗口(5 小时 / 本周 /
本月)的已用百分比(两位小数,与火山方舟控制台一致)、剩余量、重置倒计时;
额度 ≥70% 变黄、≥90% 变红并告警。60 秒自动刷新。
功能
- 直连官方 API:AK/SK + HMAC-SHA256 V4 签名,调
open.volcengineapi.com的GetCodingPlanUsage/GetAgentPlanAFPUsage,无需第三方服务。 - 悬浮小球:收起时是圆形小球(opencode-go FAB 风格:品牌渐变 + 红/黄/绿警告态, 显示最高已用 %,可拖动),点击展开悬浮窗。
- 可拖拽悬浮窗:查询界面模仿
dsh-opencode-go-usage面板 —— stats 卡片(已用/剩余/最近重置)+ 每窗口 Donut 环形图 + 窗口明细进度条, 重置倒计时每秒跳动,标题栏可拖动。 - 两位小数:已用百分比保留两位小数,与火山方舟控制台一致。
- 自动刷新:每 60s 拉取一次;凭据在「设置 → 插件」保存后即时刷新。
- 安全存储:AK/SK 走 DSH 官方凭据服务(
ctx.credentials,与 DSH 自身存 API key 同一机制)——环境变量优先、~/.dsh/.credentials.yaml落盘兜底;浏览器不保存密钥, host 只向 UI 报告「已配置/来源/可写」,从不回传密钥值。
安装(公共安装方式)
在目标 DSH profile 中用官方命令从 GitHub 源安装(bundle 插件,dsh.bundle.patch
会把插件行注入 host 组合,重启 web 服务后生效):
dsh plugin add github:ZnonEn/dsh-volcark-quota
# 或指定分支 / 版本
dsh plugin add github:ZnonEn/dsh-volcark-quota#v0.0.1
开发者模式(从源码构建)
npm install --legacy-peer-deps
bash scripts/build.sh # host 复制到 lib/,client 用 tsdown 打包
构建产物 lib/ 已提交到仓库,git 安装开箱即用,无需本地构建。
配置 AK/SK(二选一)
方式 A:设置 → 插件(推荐)
打开 DSH 的 设置 → 插件,在「火山方舟额度」卡片中填入:
- AccessKey ID:火山方舟控制台 → API 访问密钥 → Access Key ID(形如
AKLT…) - Secret AccessKey:对应的 Secret Access Key
- 套餐类型:
auto(先试 Coding Plan,失败自动试 Agent Plan)/coding/agent
点「保存」即写入 DSH 凭据库(~/.dsh/.credentials.yaml,与 DSH 自身存 API key
同一机制)并即时生效。卡片只显示「已配置/来源/可写」状态,不显示、不返回密钥值;
「清除凭据」按钮一键删除。
方式 B:环境变量(优先级更高,全进程生效)
启动 DSH 前设置(与凭据库引用同名,会自动遮蔽文件层):
export VOLC_ARK_ACCESS_KEY_ID=AKLTxxxx
export VOLC_ARK_ACCESS_KEY_SECRET=xxxxxxxx
兼容旧别名:VOLC_ACCESS_KEY_ID / VOLC_ACCESS_KEY_SECRET、VOLC_ACCESS_KEY /
VOLC_SECRET_KEY、ARK_ACCESS_KEY_ID / ARK_ACCESS_KEY_SECRET。
凭据解析优先级:请求体显式覆盖(高级用法)> 凭据库/环境变量 > 历史环境变量别名。
取数原理
- 请求:
POST https://open.volcengineapi.com/?Action=GetCodingPlanUsage&Version=2024-01-01(Agent Plan 用Action=GetAgentPlanAFPUsage),body{}。 - 签名:
HMAC-SHA256V4,regioncn-beijing,serviceark;X-Date官方格式yyyyMMdd'T'HHmmss'Z'。 - 解析:Agent Plan 走
Result.AFPFiveHour/AFPWeekly/AFPMonthly(Quota/Used/ResetTime);Coding Plan 走Result.QuotaUsage[](Level/Percent/ResetTimestamp,秒转毫秒)。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
zhu168/dsh-save-money
Make0209/dsh-usage-stats
133563825as-ai/dsh-api-dashboard
lanlandeli/dsh-usage-stats
WilliamLIiii/DeepSeek-Harness-billing-plugin
dfkai/dsh-board
huanyuLv/dsh-balance-tide