DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
O

dsh-opencode-go-eta

Opencode Go Eta

DeepSeek Harness 的 OpenCode Go 配额小组件:每天采样套餐几次,预测月度额度何时用尽,并将预计时间与续订日期进行比较。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:HugoOu/dsh-opencode-go-eta#5dc472c8dd1cc2464a8bd43ced6a002f06e233a3
README兼容性版本
OpenCode Go ETA card, light themeOpenCode Go ETA card, dark themeComposer dock with the stock context ring and the Go capsule

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/25

版本

0.1.4stable
2026/10/25
0.1.1stable
2026/10/24
0.1.0stable
2026/10/24

相关插件

正在加载相关插件…

最新版
0.1.4
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/10/25
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Experimental Cot Translation Bundle@deepseek-ai/dsh-experimental-cot-translation-bundle扩展推理的实验性机器翻译Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。

README

dsh-opencode-go-eta

A quota forecast widget for OpenCode Go inside DeepSeek Harness — it tells you when the monthly allowance runs out, and whether that happens before the renewal date.

English · 简体中文

OpenCode Go ETA card, light theme

Dark theme

OpenCode Go ETA card, dark theme

Composer dock

Composer dock with the stock context ring and the Go capsule

The shipped context ring (54%) and the Go capsule (18%) share the same 14 px / 2 px specification; the capsule stays a text-only trigger, expanding nothing until clicked.

Why

OpenCode Go is a flat monthly subscription, but its console only shows used percentages and a reset time. It does not tell you whether your current pace will exhaust the allowance before the renewal date — the one question that decides whether you need to top up, renew early, or switch to the pay-as-you-go API for the rest of the period.

This plugin keeps a small local history of the official quota readings and answers that question in the composer dock. It never reads your session logs: the Go allowance is account-wide, so only the official percentage sees usage from every client.

Features

  • Projected exhaustion time — a reset-aware Theil–Sen fit over the recorded quota samples gives an ETA per window, with a confidence tier. No guessing from a single reading.
  • Renewal-date comparison — says plainly whether the monthly allowance will run out before the renewal date, or leave headroom until then.
  • Long-run cost advice — when the quota will run out early, it compares two steady-state policies: renewing OpenCode Go (a prepayment of the next period, unit cost planPrice ÷ allowance per $1 of usage, about $0.125) versus paying the overflow on the official API ($1 per $1). Renewal is recommended unless the new allowance would largely expire unused.
  • Merged usage & forecast chart — history, projection, “now”, ETA and renewal markers on one time axis, with a 0–100 % axis.
  • Native composer dock capsule — the 14 px / 2 px ring matches the shipped context meter, so both rings read as peers; the card itself is a liquid-glass panel that dims its highlight layers in dark mode.
  • Per-model allowance — Go's monthly limit is per model (DeepSeek V4.1 Flash: $80 on Go, $160 on Go Plus; Kimi K3: $15). The card shows the model and its allowance, while percentages stay authoritative from the console.
  • No polling storms — samples at four local anchors a day, on task ends, on start-up and on demand.

Install

Requires DeepSeek Harness 0.2.x (Desktop or Web profile) and Node.js ≥ 22.

# from GitHub
dsh plugin --profile desktop add github:HugoOu/dsh-opencode-go-eta

# or from a local checkout
dsh plugin --profile desktop add link:C:\path\to\dsh-opencode-go-eta

Restart DSH completely after installing. The capsule appears below the composer; click it for the card.

The plugin row is a bundle patch: dsh plugin add appends dsh-opencode-go-eta to dsh.profile.bundles automatically, and the bundled cordis.patch.yml inserts the host row.

Configuration

Add to your profile's cordis.patch.yml to override the defaults:

- id: opencode-go-eta
  name: dsh-opencode-go-eta
  config:
    apiKeyRef: OPENCODE_GO_API_KEY   # credential reference, not the key itself
    anchors: [3, 9, 15, 21]          # local hours; [] disables timed sampling
    sampleIntervalMs: 1200000        # minimum gap between implicit samples
    staleAfterMs: 2700000            # a read this old triggers a fresh sample
    retentionDays: 45
    planName: Go                     # shown in the card
    planPriceUsd: 10                 # price of one period, used by the advice
    modelLabel: DeepSeek V4.1 Flash
    modelAllowancesUsd:
      deepseek-v4.1-flash: 80        # Go table; use 160 for Go Plus
    pricingModel: deepseek-v4.1-flash
    pricingUrl: https://models.dev/api.json
    pricingTtlMs: 43200000

The API key is resolved through the Harness credentials service (OPENCODE_GO_API_KEY); it never reaches the browser.

How it works

StageBehaviour
SamplingGET /zen/go/v1/usage (percentages + resets) and GET /console/api/go/status (meters, period start/end) — at 03/09/15/21 local, on turn/end, at start-up, and on demand.
HistorySamples are kept for 45 days in $DSH_HOME/opencode-go-eta/samples.json (atomic writes).
ProjectionSamples from before the last reset are cut; the Theil–Sen slope of the current cycle gives the ETA. Fewer than 3 points or a span under 6 h is reported as insufficient samples.
VerdictETA is compared with the window reset and the subscription's endsAt: before expiry, after expiry, safe within the cycle.
AdviceTwo steady-state policies: renew prices every $1 of usage at planPriceUsd ÷ allowance (≈ $0.125), API overflow costs $1 per $1 on top of the plan. Costs are annualised: at $96/month of usage the allowance lasts about 25 days, so renewal means ~14 periods/year (≈$144) while the API path costs ≈$312/year. Renewal wins whenever usage exceeds one allowance; the API only wins when the new allowance would expire unused. Official model prices come from models.dev (12 h cache) for display only. At $96/month of usage the allowance lasts about 25 days, so renewal means ~14 periods/year (≈$144) while the API path costs ≈$312/year.

The console meter is a plan-credit cap (observed $60), while the official Go table lists a per-model monthly allowance (DeepSeek V4.1 Flash: $80). Percentages always follow the console; money follows the model allowance so the two never contradict each other silently.

Development

node test/projection.test.mjs   # 10 pure-math tests: slope, reset cutting, verdicts
node test/host.test.mjs         # 2 host tests: stubbed fetch, route payload
node test/client.test.mjs       # 4 client tests: slot registration, render, fetch

No network or real key is needed. preview.html reproduces the shipped styles with mock data (#shot hides the page chrome; #shot-dark renders the dark theme).

Limitations

  • /console/api/go/status is an internal console endpoint; if it changes, the card falls back to percentages only.
  • Projections are linear extrapolations from your own sampling history, not vendor forecasts.
  • Cost advice assumes the quota-meter value and the official list price share the same scale; the token estimate is an approximation.
  • The plugin stores no prompts or session data — only quota readings and the pricing cache.

License

MIT © 2026 HugoOu