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.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Assidefok/dsh-opencodego-status
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A floating overlay for the DeepSeek Harness Web UI that shows your OpenCode Go usage — the 5-hour rolling limit, the weekly limit and the monthly limit — at a glance.
The collapsed pill lives in the corner of the window and shows the three percentages with a colour dot per limit. Click it for progress bars, reset countdowns, the renewal date, and the sign-in controls.
What you get
- Collapsed pill —
5h · 7d · 30dpercentages, coloured by how close you are to the limit (brand → warning from 60% → error from 80%), plus the weekly reset countdown. - Expanded card — one progress bar per limit,
resets inandrenews incountdowns, Refresh, Sign out, and a link to the OpenCode console. - Device-code sign-in — connect from the overlay; the code is shown in the card and approved in the browser. No password is ever typed into the overlay.
- Silent token refresh — the stored session is refreshed before it expires.
- English and Chinese UI, following the Harness locale service.
- Theme-aware — every colour and border comes from the Harness theme tokens, so light and dark themes both look native.
The numbers come from the OpenCode Console Go subscription meters, the same source the console page itself renders.
Requirements
- DeepSeek Harness Web UI (
0.2.x). - An OpenCode Go subscription. The overlay reads the Go plan meters; it shows
Not connectedwhen no OpenCode session is stored, and an error state when the subscription is missing or the API changes.
Install
dsh plugin --profile web add github:Assidefok/dsh-opencodego-status
Then refresh the Harness Web UI. A small pill appears in the top-right corner.
Connect
- Click the pill, then Connect.
- The card shows a short code (for example
GNNM-XQHS) and an Open approval page button. Approve the device in the browser. - The overlay switches to your live usage as soon as the console confirms.
The session is stored locally at $DSH_HOME/opencodego-status/state.json with 0600
permissions ($DSH_HOME defaults to ~/.dsh). Sign out in the card deletes it.
Tokens are sent only to opencode.ai; the browser half never receives them.
Configuration
The bundle row in the Harness profile's cordis.patch.yml accepts:
- id: opencodego-status
name: dsh-opencodego-status
config:
enabled: true # hide the overlay without uninstalling the bundle
position: top-right # top-right | top-left | bottom-right | bottom-left
refreshSeconds: 60 # 15 – 3600
showResets: true # show reset countdowns
How it works
- The host half (
index.js) registers a prefix route at/api/opencodego-statusand talks to the OpenCode Console:<origin>/console/auth/device/code,<origin>/console/auth/device/token(device grant and refresh grant) and<origin>/console/api/go/status. - The client half (
client.js) registers one entry in theshell.overlayslot and polls/api/opencodego-status/status. It never sees an access token. - No dependencies, no build step: the client module is plain JavaScript and React comes from the Harness browser module table.
The console endpoint is not a documented public API. If OpenCode changes it, the overlay degrades to an error state with a Retry button instead of breaking the UI.
License
MIT — see LICENSE.
Links
More in this category
bowenliang123/dsh-context★ 5632
DeepSeek Harness officially recommended - a context insight plugin for context composition, evolution and Multi-Agent collaboration. It provides a cross-session Insights page (tokens, cost, cache hit, activity heatmap, skill and tool loads), a per-session Context tab (composition, token and timing stats, timeline, browser, events, file activity, command executions), a Fleet tab for the agent family (the current agent, its parents and every subagent), and a /context command.
Han-1413141/dsh-cost-meter★ 791
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.
wssfk12138/dsh-damage-pulse★ 292
Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.
zh667/TokenLedger★ 207
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
Ychris12138/dsh-usage-stats★ 195
Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.
Mt-Youya/dsh-plugins#sessions-insight★ 132
Browse Claude Code, DSH and Codex session logs by working directory, with per-turn context composition, token usage, compaction markers and cost estimates.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.