DeepSeek Harness plugin

dsh-opencode-go

Web 插件:在会话头部常驻显示 OpenCode GO 套餐用量(滚动 5h/每周/每月),3 分钟自动刷新

Jump to install

Source facts

Repository
305037991x-pixel/dsh-opencode-go
Latest update
Aug 16, 2026
Category
Memory
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/305037991x-pixel/dsh-opencode-go
Plugin: dsh-opencode-go
Author: 305037991x-pixel

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-opencode-go

> OpenCode GO 套餐用量芯片 · OpenCode GO plan usage chip for DeepSeek Harness Web

会话头部常驻的 OpenCode GO 用量芯片:同时监控两个账号的滚动(5h)/每周/每月三个额度窗口,3 分钟自动刷新,悬停分账号查看明细与滚动窗口剩余时间。

A persistent OpenCode GO usage chip in the conversation header: watches two accounts' rolling(5h) / weekly / monthly quota windows, auto-refreshes every 3 minutes, and shows per-account breakdown with rolling-window countdown on hover.

功能 / Features

  • 会话头部芯片,显示两个账号的周用量百分比(≥90% 或受限=红、≥70%=橙、否则绿)
  • 悬停气泡分账号展示:滚动(5h) / 周 / 月 用量 + 滚动窗口剩余时间
  • 3 分钟自动刷新 + 手动刷新按钮
  • 切换会话不重复拉取:用量数据与定时器为模块级共享缓存,组件重挂载直接读缓存
  • 单个账号失败不影响另一个(对应行显示「获取失败」)
  • 密钥只存在于宿主侧,浏览器永不接触

安装 / Install

dsh plugin --profile web add github:305037991x-pixel/dsh-opencode-go

重启 dsh web 并硬刷新页面(Ctrl+Shift+R)。

配置 / Configuration

$DSH_HOME/.credentials.yaml 中配置(或环境变量同名):

# 账号 A(必填)
OPENCODE_GO_API_KEY: sk-xxx
# 账号 B(可选,不配则只显示一个账号)
OPENCODE_GO_API_KEY_B: sk-yyy

Key 在 opencode.ai/auth 创建;两个账号可各用一个订阅的 key。

工作原理 / How it works

文件职责
Hostlib/index.js注册 GET /dsh-opencode-go/usage:并行解析两个账号的 key(凭证服务:环境变量 → $DSH_HOME/.credentials.yaml.env),各自调用官方接口 https://opencode.ai/zen/go/v1/usage,返回 { ok, accounts: [...] }
Clientlib/client.jsconversation.session.header.utilities 槽位注册芯片;模块级共享数据 + 3 分钟定时器;悬停气泡分账号渲染

官方用量接口返回三个窗口(rolling 5h / weekly / monthly),每项含 percent(0-100)、statusresetsAt

License

MIT