dsh-opencode-go-panel
Identified★ 1OpenCode Go subscription, model allowance, usage meter, and per-million-token rate panel for the DeepSeek Harness sidebar.
dsh-opencode-go-panel
A DeepSeek Harness sidebar panel for an OpenCode Go subscription. Everything it shows is read from OpenCode Go APIs.
What it shows
-
Plan and subscription state from the OpenCode Console status API: plan, price, workspace, renewal/end date, cancellation state, upgrade price, and whether extra usage is enabled.
-
One normalized allowance meter for the 5-hour, weekly, and monthly windows with dollars used/remaining, percentage, reset countdown, and pace.
-
A base-dollar allowance model. The largest single-model cap is the base: $100 for Go. Models with smaller caps burn base faster:
Model Monthly cap Burn rate DeepSeek V4.1 Flash $100 1.00× GLM-5.3-Flash $60 1.67× MiniMax M3.1 Flash $20 5.00× Kimi K3 $15 6.67× Mixed usage needs only the one base meter because OpenCode's API percentage is already the blended total. The model table shows each model's cap, burn rate, and remaining if that model were your only model.
-
Published per-million-token rates from the authenticated OpenCode Go model API: input, output, cache read, context, max output, and model tags.
Install
From this checkout:
plugin_manager install_bundle target=/absolute/path/to/dsh-opencode-go-panel
Or from the GitHub repository, install the bundle package through the Harness Plugin Manager and enable it. A page refresh is required after the first client bundle is installed.
Credentials
The Host half resolves, in order:
- the Harness credential store (
OPENCODE_GO_API_KEY), OPENCODE_GO_API_KEY,OPENCODE_API_KEY,OPENCODE_ZEN_API_KEYin the environment,- the panel's own
~/.dsh/opencode-go/api-keyfile, ~/.pi/agent/auth.json(opencode-go),~/.local/share/opencode/auth.json(opencode).
If no key is found, the panel shows a connect card and stores the pasted key in
the Harness credential store. Exact Console billing data additionally uses a
local OpenCode Console sign-in (~/.local/share/opencode/opencode.db); without
it, the panel falls back to the percentage usage API.
Data limitations
OpenCode exposes one normalized percentage for all models, not per-model spend or token totals. Per-model caps are OpenCode's published Go allowances; the status API does not return them. The panel deliberately does not reconstruct tokens from local session logs. Input/output/cache rates and the available model list come from the OpenCode Go model API.
Files
index.js— Host routes and same-origin guards.data.js— API, credential, allowance, and model normalization.client.js— sidebar icon and panel UI.cordis.patch.yml— bundle patch.locale/andicon.svg— plugin metadata and artwork.
License
MIT
Comments
Loading…
Similar plugins
by zhxmt-xm
Sidebar panel for OpenCode quota and usage in DeepSeek Harness: Go subscription windows, Console spend, trends, forecasts and model breakdown, with multiple accounts, service-account filtering and Eng
★ 0
MIT
JavaScript
Nov 2, 2026
dsh plugin --profile web add dsh-opencode-usage-dashboardby itchenshi
DeepSeek Harness plugin: model usage & account balance in the session header (OpenCode Go plan usage + DeepSeek account balance)
★ 0
MIT
JavaScript
Oct 5, 2026
dsh plugin --profile web add dsh-model-surplusby xueayi
OpenCode Go plan usage monitor for DeepSeek Harness: real-time 5h-rolling / weekly / monthly quota in a floating web dock
★ 4
↓ 63/wk
MIT
TypeScript
Aug 24, 2026
dsh plugin --profile web add @xueayi/dsh-opencode-go-usageby OK-wx
OpenCode Go 用量常驻条:套餐余量圆环 + token/花费实时统计(本次会话/全部范围 + 按模型联动,官方实时定价),一键复制 API Key。OpenCode Go usage bar for DeepSeek Harness.
★ 10
MIT
JavaScript
Aug 21, 2026
dsh plugin --profile web add dsh-ocgo-liteby Xenia0922
DeepSeek Harness 插件:OpenCode Go 用量与花费悬浮仪表盘(配额、逐请求成本、模型/来源分布)
★ 12
↓ 294/wk
MIT
JavaScript
Sep 1, 2026
dsh plugin --profile web add dsh-opencode-go-usageby fuchen9
Token-usage panel for DeepSeek Harness: totals every stored session's token spend, broken down per model, provider, session type and time window. Offline, zero dependencies.
★ 0
MIT
JavaScript
Nov 2, 2026
dsh plugin --profile web add @local/dsh-token-usage