DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Opencode Go Usage — DeepSeek Harness 插件(DSH Plugin)
← Plugins

@cyrilmarin/dsh-opencode-go-usage

Opencode Go Usage

DeepSeek Harness 的 OpenCode Go 计划用量监视器:在聊天输入框下方的状态栏中实时显示 5 小时滚动、每周和每月配额

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @cyrilmarin/dsh-opencode-go-usage@0.0.10
README兼容性版本

兼容性与来源证明

Opencode Go Usage 以 @cyrilmarin/dsh-opencode-go-usage 发布,当前版本为 0.0.10。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.0.10stable
2026/8/20
0.0.4stable
2026/8/19

相关插件

正在加载相关插件…

最新版
0.0.10
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
115.2 kB
文件数
21
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
29
最近提交
2026/8/20
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。

README

dsh-opencode-go-usage

OpenCode Go plan usage monitor for DeepSeek Harness: a status bar under the chat input in the web GUI showing the 5h-rolling / weekly / monthly quota windows with a live reset countdown. The bar appears only while an OpenCode Go model is active on the current session.

Data comes from the official quota API (GET https://opencode.ai/zen/go/v1/usage, Bearer API key; no workspace id, no cookie).

Install

# From npm (the Web GUI runs on the `web` profile):
dsh plugin --profile web add @cyrilmarin/dsh-opencode-go-usage
# Or from a local checkout:
dsh plugin --profile web add /path/to/dsh-opencode-go-usage
# Upgrade to the latest version:
dsh plugin --profile web update @cyrilmarin/dsh-opencode-go-usage

Restart the profile afterwards (dsh web for the browser UI).

Configure

Recommended: pick the official-channel OpenCode Go provider in Web Settings → Models and enter the API key there; nothing else is needed.

The API key is resolved per refresh through ctx.credentials under the apiKeyEnv reference (default OPENCODE_GO_API_KEY) — it can also be stored manually in ~/.dsh/.credentials.yaml or an environment variable:

- insert:
    - id: opencode-go-usage
      name: '@cyrilmarin/dsh-opencode-go-usage'
      config:
        apiKeyEnv: OPENCODE_GO_API_KEY
        refreshMs: 60000
FieldTypeDefaultMeaning
apiKeyEnvstringOPENCODE_GO_API_KEYcredential reference
apiKeystring—direct key fallback (discouraged)
endpointstringhttps://opencode.ai/zen/go/v1/usagequota endpoint
refreshMsnumber60000auto-refresh interval
timeoutMsnumber10000per-request timeout

Usage status bar

A compact, theme-aware status bar rendered in the conversation.composer.dock seat — the band under the chat input window, aligned with the composer column (the same slot the conversation stats line lives in). It reads the session's active model and renders only while the active provider is OpenCode Go (default route opencode-go, configured in Web Settings → Models); on any other provider — or before a model selection is known — it contributes zero layout.

  • One threshold-colored chip per quota window (5h Rolling / Weekly / Monthly): colored dot + used percent (green <60% / orange ≥60% / red ≥85%), with the 5h-rolling window's exact reset countdown (↻3h25m).
  • A live health dot, the sample age ("Updated 2m ago"), a quiet "refresh failed, showing previous data" note, and a manual refresh affordance (↻).
  • Unconfigured/error details render on hover (title); a failed fetch never blanks the bar.

Display stability

Data and health are decoupled: when a refresh fails (timeout, API error), the bar keeps showing the last successful sample — the status dot turns yellow and a quiet "refresh failed, showing previous data" note appears. The display is never blanked; error / unconfigured states appear only before the first successful fetch.

The status dot reuses the shared dsh-client-ui-primitives StateDot so the bar's affordances stay visually consistent with the rest of DSH.

Internationalization

The status bar is fully bilingual (简体中文 / English). The active language follows dsh's own locale.preference in the host settings ($DSH_HOME/settings.yaml, namespace locale); when no explicit preference is set, the browser's language is used as a fallback, exactly like the rest of the Web UI. Switching the language in Web Settings → General → Language re-renders the bar immediately — no reload, no refresh.

All copy lives in the plugin's locale namespace (opencode-usage, zh/en dictionaries registered through ctx.locale); window names, countdowns, relative timestamps, accessibility labels, and the host-reported failure messages are covered. Host errors are sent to the browser as stable machine codes (connect, timeout, unauthorized, http, parse, no-data, unconfigured), and the client localizes them — one translation source, no language logic on the host.

Model Experience

Request surface and condition

The plugin exposes no model-facing surface: the model never sees quota values, no prompt text or tool schema is added.

Token effect

None — no model request, no injected tokens.

KV Cache effect

None — no request tokens added or replaced.

Known Limitations and Deferred Work

  • Poll latency — the status bar polls every 60s; quota changes appear within at most one poll cycle (the manual ↻ refresh is instant).
  • Data freshness — after repeated failed refreshes the bar keeps showing the last successful sample, which grows stale until a refresh succeeds.
  • Model gating source — the bar shows while the session's model selection (read from the shared per-session model directory) reports the opencode-go provider; before the first selection load or on any other provider it stays hidden.
  • Single account — one API key per profile; multi-account dashboards are out of scope.