Xenia0922/dsh-opencode-go-usage
DeepSeek Harness 插件:OpenCode Go 用量与花费悬浮仪表盘(配额、逐请求成本、模型/来源分布)
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH). It adds a draggable, resizable floating panel to the bottom-right corner of your screen when running DSH, to track OpenCode Go usage, quota, and spending. The plugin supports official account-level usage stats, DSH session analysis, quota forecasting, and multi-key management, and can export usage data as CSV. All core data processing happens on your local machine, and the plugin only sends network requests to opencode.ai for usage data and to GitHub for version checks. No API keys, auth cookies, or usage data are ever shared with third parties.
This plugin is designed for developers who use DSH with OpenCode Go as their coding agent. It helps users keep track of their spending and quota usage in one place, so they can avoid unexpected overage charges. To install for long-term use, you can clone the repository and add it to your DSH profile via the DSH plugin CLI command. For temporary testing, you can dynamically load the plugin into a running DSH process, though the plugin will not persist after DSH restarts. After installation, you just need to manually copy your auth cookie and workspace ID from opencode.ai to complete first-time setup.
This plugin is released under the permissive MIT open source license. It has been unmaintained since September 1, 2026, so no new features, bug fixes, or issue responses will be provided. To run the plugin, you need Node.js, a DSH/Cordis runtime environment, and Python 3. It depends on an internal opencode.ai API, so if the upstream API changes its format, the plugin will stop working and no fixes will be provided.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,它会在桌面右下角提供一个可拖动、可缩放的悬浮面板,用于展示 OpenCode Go 的用量统计与花费详情。核心功能包括查看官方账户级用量、DSH 会话用量分析、配额监控、多 API key 管理、数据趋势分析等,支持导出 CSV 数据。所有数据都在本地处理,仅向 opencode.ai 和 GitHub 发送必要请求,不会泄露凭据。
这款插件面向同时使用 DSH 和 OpenCode Go 的开发者,帮助他们统一监控用量和花费,避免提前超出配额产生额外费用。推荐通过 DSH 的 Bundle 插件模式安装,也支持动态加载供临时体验。安装完成后,用户只需要手动从 opencode.ai 复制授权 Cookie 和工作区 ID,填入面板即可完成首次配置。
本项目采用 MIT 许可证开源,自 2026 年 9 月 1 日起已无限期停止维护,不再接收功能更新、问题修复和 issue 反馈。运行需要 Node.js、DSH/Cordis 运行环境和 Python 3,依赖 opencode.ai 内部接口格式,若上游接口变更插件会失效,且不会得到修复。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-opencode-go-usage(Xenia0922/dsh-opencode-go-usage)
仓库:https://github.com/Xenia0922/dsh-opencode-go-usage
本站详情页:https://www.yhbd.top/plugins/xenia0922-dsh-opencode-go-usage/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 11 · 最近提交 2026-09-01 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 更稳。
- 11 stars - an early-stage project星标 11,属于早期项目
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 --profile web add github:Xenia0922/dsh-opencode-go-usage
把 Xenia0922/dsh-opencode-go-usage 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
[!WARNING]
🛑 项目无限期停更 (Unmaintained)
本项目自 2026-09-01 起无限期停止维护,不再接收新功能、修复或 issue 反馈。 仓库将保持公开、代码与历史提交原样保留,任何人可自由 fork 或继续使用(MIT 许可)。
请勿提交 issue 或 PR —— 它们不会被处理。
如果 DeepSeek Harness / OpenCode 上游 API 发生变化导致插件失效,本仓库不会跟进修复。
OpenCode Go 用量面板
一个用于 DeepSeek Harness 的 DSH 插件。它在桌面右下角提供可拖动、可缩放的悬浮面板,用于查看 OpenCode Go 的账户级用量、配额和 DSH 会话分析。
数据在本机处理。网络请求只发往 opencode.ai,以及用于版本检查的 GitHub 公共 package.json;不会把 API key、Cookie 或用量数据发送给第三方。
功能
- 官方账户级用量:读取官网
usage.list,使用官方逐请求费用,支持跨设备数据。凭据通过本地配置提供。 - DSH 会话分析:按 DSH 会话、模型和日期统计 OpenCode Go 用量。
- 配额监控:显示滚动 5 小时、周、月配额、重置时间和消耗速度预测。
- 多 key 配额池:自动发现
.credentials.yaml中的OPENCODE_GO_KEY_*,支持切换和限流状态提示。 - 交互面板:FAB 拖动、标题栏拖动、边缘缩放、最大化、位置和大小持久化。
- 数据分析:按模型排行、费用分项、7/14/30 天趋势、最近会话和 CSV 导出。
- 中英文界面:可手动切换,也可以跟随 DSH 全局语言。
- 跨平台启动:支持 Windows、macOS、Linux 上的 Chromium 系浏览器调试端口。
快速安装
推荐:Bundle 插件
在插件仓库的父目录执行:
git clone https://github.com/Xenia0922/dsh-opencode-go-usage.git
dsh plugin --profile my-profile add ./dsh-opencode-go-usage
dsh --profile my-profile
Bundle 模式会随 DSH profile 启动,并通过本地 webServer 注册以下路由:
/ocgo-usage/fetch:读取面板数据/ocgo-usage/config:保存官方凭据/ocgo-usage/retry:绕过缓存重新抓取
如果插件目录路径包含空格,而 dsh plugin add 无法正确解析,请把仓库移动到无空格路径,或使用 junction/link 指向无空格目录。
快速体验:动态加载
动态加载不需要构建,但只在当前 DSH 进程有效:
- 在 DSH 会话中让 Agent 执行
cordis_define,kind: new,idPrefix: zenus。 - 将
src/host.js内容填入code.host。 - 将
src/client.js内容填入code.client。 - 执行
cordis_run并授权。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
GLFzr/dsh-opencode-go-quota
xueayi/dsh-opencode-go-usage
xiaweiliang060035/dsh-opencode-go-usage
LivXue/dsh-plugin-shop
flizzywine/dsh-tavern
weijiafu14/pi2dsh