DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-opencode-usage-sidebar

A

dsh-opencode-usage-sidebar

Manifest valid

OpenCode Go subscription usage (5-hour, weekly, monthly) in the DSH sidebar footer, with a live countdown to the 5-hour reset.

UI (client)hasBundlePatch

dsh-opencode-usage-sidebar

An OpenCode Go subscription usage card in the DeepSeek Harness sidebar footer: the 5-hour, weekly and monthly windows at a glance, with a live countdown to the 5-hour reset.

把 OpenCode 订阅的 5 小时 / 本周 / 本月 用量显示在 DSH 侧栏底部,并在卡片标题旁实时倒计时到 5 小时窗口重置。

What it shows

  • Three rows — 5 小时, 本周, 本月 — each with the used percentage and a bar that turns warm at 70% and red at 90%.
  • A live countdown after the OpenCode title (1时58分, 42分, 42秒), ticking every second and switching to 即将刷新 when the 5-hour window resets.
  • Refreshes on the plugin's poll interval, after every assistant turn, and when the window regains focus.

Install

# from this repository
dsh plugin --profile desktop add git+https://github.com/AAMMNNZZ/dsh-opencode-usage-sidebar.git

# or from a prebuilt tarball
dsh plugin --profile desktop add file:/path/to/dsh-opencode-usage-sidebar.tgz

Remove it with dsh plugin --profile desktop remove dsh-opencode-usage-sidebar.

Configure the API key

The plugin reads the credential ref OPENCODE_GO_API_KEY from the DSH credential store at request time — the key is never part of this package and never reaches the browser.

The shortest path is the Settings → Models page: fill in the API key for the opencode-go provider. That stores the key under refs: OPENCODE_GO_API_KEY in ~/.dsh/.credentials.yaml, which is exactly the ref this plugin resolves.

If you do not use an opencode-go provider, add the ref by hand:

# ~/.dsh/.credentials.yaml
refs:
  OPENCODE_GO_API_KEY: "<your-key>"

Options

Optional row config in your profile patch, or the matching environment variable:

Row configEnvironment variableDefault
endpointDSH_OPENCODE_USAGE_ENDPOINThttps://opencode.ai/zen/go/v1/usage
credentialRefDSH_OPENCODE_USAGE_CREDENTIALOPENCODE_GO_API_KEY
pollIntervalSecDSH_OPENCODE_USAGE_POLL60 (minimum 15)
cacheMs—15000

How it works

The host half resolves the credential and performs the upstream GET itself — opencode.ai rejects that request from a page context. The browser half only polls the same-origin routes /dsh-opencode-usage/api/usage (JSON, cached) and /dsh-opencode-usage/api/stream (SSE, used to wake every open window after a turn ends).

Both halves are dependency-free: the host imports nothing, and the client uses only the react module the harness already provides, so a locally installed bundle needs no node_modules.

License

MIT

Comments

Loading…

Similar plugins

dsh-opencode-go-usage

by moondrop12138

OpenCode Go subscription usage page for the DSH Web UI: official 5h / weekly / monthly used-percent windows, reset countdowns and a local sampling trail.

Tools & CapabilitiesManifest valid

★ 0

JavaScript

Oct 21, 2026

dsh plugin --profile web add dsh-opencode-go-usage

by ColorlessBoy

Shows the remaining OpenCode Go quota (5-hour, weekly, monthly) in the DeepSeek Harness Web composer dock.

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Sep 26, 2026

dsh plugin --profile web add dsh-opencode-usage

by jiekesu967

Shows OpenCode Go subscription usage (rolling, weekly and monthly used and remaining percentage with reset times) in a floating panel anchored to the bottom-left of the session window.

Tools & CapabilitiesDevelopment & InfrastructureModels & ProvidersManifest valid

★ 3

↓ 229/wk

MIT

JavaScript

Sep 30, 2026

dsh plugin --profile web add dsh-plugin-opencode-usage

DeepSeek Harness插件,一个极简的浮窗同时显示 DeepSeek 官方余额与 OpenCode Go 的 5h/w/m 用量

Tools & CapabilitiesManifest valid

★ 1

MIT

JavaScript

dsh plugin --profile web add dsh-opencode-go-usage

by WihteCo

OpenCode Go quota in the DeepSeek Harness sidebar foot: one 42px cell plus a hover popover with the rolling 5-hour, weekly and monthly windows, each carrying a usage bar, an elapsed-time marker, the remaining share and a reset countdown.

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 0

MIT

JavaScript

Oct 7, 2026

dsh plugin --profile web add dsh-opencode-go-quota

Floating overlay in the Harness Web UI with OpenCode Go usage: 5-hour rolling, weekly and monthly percentages, reset countdowns and the renewal date, with device-code sign-in and silent token refresh.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

dsh plugin --profile web add dsh-opencodego-status