Hjay1101/dsh-opencode-go-usage
dsh-opencode-go-usage adds an OpenCode Go section to the DSH Settings sidebar and a composer usage bolt: it shows the three subscription windows (5h rolling / weekly / monthly) with percentages, bars and reset times, and - for DeepSeek official models - the topped-up balance, fed live from the official usage endpoint with a 60s result cache.
dsh-opencode-go-usage shows your OpenCode Go subscription usage inside DeepSeek Harness. It adds an OpenCode Go section to the Settings sidebar and a usage bolt button to the composer tool row: hovering shows the three windows' percentages and clicking opens a swipeable carousel modal with a large monospaced monthly figure, 5h/week rows and animated bars (card 0) plus a model and cap table (card 1). The 5h rolling / weekly / monthly windows each carry a used percentage, a progress bar, a reference limit and a reset time, fetched from the official usage endpoint with a 60s result cache (a force parameter bypasses it, and opening the modal always fetches fresh). With a DeepSeek official model selected the bolt shows the topped-up balance, resolving the key from DSH credentials DEEPSEEK_API_KEY -> env -> OpenCode auth.json. The model list and caps follow the official data live (Host fetches the API plus the repo's models.json, 1h cache, strict validation, bundled snapshot on failure), so official changes reach users without reinstalling.
Install
dsh plugin --profile web add github:Hjay1101/dsh-opencode-go-usageCopied verbatim from the README's Install block. No npm package is documented, so the GitHub form is shipped; the README also documents the manual cordis.patch.yml route for older installs.
Compatibility
The package declares dsh.bundle so dsh plugin add registers the Host gateway automatically with no manual cordis.patch.yml edit, but the README warns that installs older than 0.4.6 that inserted an id: opencode-go-usage block by hand must remove it first or boot fails with duplicate loader entry id. The API key resolves from the DSH credentials seam (OPENCODE_GO_API_KEY) first, then OpenCode's auth.json, and stays inside the Host process - it never reaches the browser. Both halves are platform-independent (macOS / Linux / Windows).
Details
- Repo: Hjay1101/dsh-opencode-go-usage
- Category: Usage & Billing
- Stars: 4
- Version: GitHub repo Hjay1101/dsh-opencode-go-usage (4*); installed from GitHub (no npm package documented). A dual-face (Host + Client) plugin; pure ESM with no native binaries and no build step. English README with a README.zh.md Chinese translation.
Alternatives
940842546/dsh-usage-billing · AlfredChaos/dsh-usage-panel · dingyi222666/dsh-wakatime