rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:EyuNO1/dsh-go-quota
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
OpenCode Go 多账号额度卡片与 Key 切换插件,运行在 DeepSeek Harness(DSH)桌面版的 Web UI 里。
每个 OpenCode Go 订阅 Key 一张额度卡:实时查看 5h / 周 / 月三档用量,点卡片切换当前 Key;支持星标置顶、单/双列布局、拖动悬浮窗、展开收起动画,并与 DSH 左下角的 Go 额度面板联动。
本项目与 OpenCode、DeepSeek 官方无隶属关系。额度查询使用 OpenCode Go 的接口,接口可能随时变化。
OPENCODE_GO_API_KEY,并刷新 dsh-cost-meter;卡片显示「切换中…」。prefers-reduced-motion。Go 账号 · N 个账号 + 布局图标 + 刷新 + 收起。● 账号名 ★ 使用中 5h x% · 周 y% · 月 z%。+ 添加账号 / 更新时间。欢迎 PR 提供脱敏截图;请勿提交真实 Key 或账号数据。
oc_...)。https://opencode.ai/zen/go/v1/usage。克隆或下载本仓库到本地目录:
git clone https://github.com/EyuNO1/dsh-go-quota
在 DSH 里把它作为本地 bundle 安装:
打开 DSH 的插件管理页,选择「安装本地 Bundle / Install local bundle」,选中该目录;或
让 DSH 的 agent 执行:
plugin_manager install_bundle target=<仓库绝对路径>
重启 / 刷新 DSH。右上角出现「Go 账号」浮层。
首次启动会把凭据库里已有的 OPENCODE_GO_API_KEY 导入为「默认账号」;没有则在浮层点「+ 添加账号」。
本包是 DSH 本地 bundle(包名
@local/dsh-go-quota),不是 npm 包;@local/前缀是本地安装约定。
修改 client.js 后刷新 DSH 页面即可(部分环境支持热加载);修改 index.js / cordis.patch.yml 后需要重载插件或重启 DSH。
node --check index.js
node --check client.js
OPENCODE_GO_API_KEY 中;账号列表保存在
$DSH_HOME/plugin-data/dsh-go-quota/accounts.json(权限 0600)。https://opencode.ai/zen/go/v1/usage 的 Bearer 和 DSH 凭据值使用;无遥测、不上传第三方。accounts.json、完整 Key 或带个人数据的截图。安全报告见 SECURITY.md。DSH Web UI
shell.overlay ── 「Go 账号」浮层 (client.js)
│ fetch(同源)
▼
Host plugin (index.js)
GET /go-quota/state
POST /go-quota/accounts {name, key}
POST /go-quota/accounts/remove {id}
POST /go-quota/activate {id}
POST /go-quota/refresh
│ accounts.json + DSH credentials + costMeter
▼
https://opencode.ai/zen/go/v1/usage
OPENCODE_GO_API_KEY,读回校验;成功后才确认切换,失败会报错。?force=1 绕过。localhost 和 127.0.0.1 打开会被视为两份。dsh_goq_layout cookie 可恢复自动。accounts.json。node --check index.js、node --check client.js 必须通过。--dsw-alias-* token;避免硬编码主题色。accounts.json、个人截图或 $DSH_HOME 下的数据。MIT © 2026 dsh-go-quota contributors
dsh-go-quota is a local-first DeepSeek Harness (DSH) Web UI plugin that shows one quota card per OpenCode Go subscription key: 5-hour, weekly and monthly usage, a compact active-account bar, click-to-switch of the active OPENCODE_GO_API_KEY, star-to-pin ordering, one/two-column layout, draggable placement, and open/close animations. It integrates with dsh-cost-meter.
Install: clone this repo, install the folder as a local DSH bundle (Plugins UI or plugin_manager install_bundle target=<path>), restart DSH, then add your oc_... keys. The first launch imports an existing OPENCODE_GO_API_KEY as the default account.
Keys stay in the DSH credential store; only masked values reach the browser; no telemetry. The OpenCode Go usage endpoint is unofficial and may change. MIT licensed. Not affiliated with OpenCode or DeepSeek.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。