Introduction¶
DSH supports extending the Web GUI through plugins. When using OpenCode GO package models in DSH, account quotas are distributed across three windows: 5 hours, weekly, and monthly; if you also want to check how many Tokens each model has consumed and the estimated cost, you need a centralized entry point. dsh-go is an OpenCode GO package usage monitoring plugin for the DeepSeek Harness Web GUI, providing an entry in the settings sidebar and a mini-bar below the conversation input box.
What is this¶
- Repository:
6pofx/dsh-go namefield inpackage.json:dsh-go-usage- License: MIT
- Positioning: OpenCode GO package usage monitoring plugin · Built for DeepSeek Harness Web GUI
- Entry point: Settings sidebar → “OpenCode GO Usage” + Mini-bar below the conversation input box
This article uses the repository name 6pofx/dsh-go to refer to this plugin. The display name of the plugin in the interface is not fixed in verified materials; please refer to the actual interface after installation.
Core Features¶
Three-Window Ring Chart¶
Provides three tiers of quota views: 5-hour rolling (\(12), weekly (\)30), and monthly ($60), displaying used %, remaining approximately $, and reset countdown. Colors change at thresholds: ≥80% displays yellow, ≥90% displays red.
Note that $12 / $30 / $60 are for display reference only; the official API only returns percentages.
Model Usage¶
Aggregates requests from DSH session logs where the provider is opencode-go, displaying Token usage and estimated cost for each model, and supports switching between concise and detailed modes.
Model costs are estimated based on official GO unit prices, not the billing amount. Model-specific data only covers GO usage generated locally by DSH; usage from other devices or the opencode CLI is not included in this statistics.
Price Table View¶
The page provides a “View Price Table” button to expand the currently active official GO price table, with units in USD per 1M tokens, including peak/off-peak tiers, and marking the sync source and time.
Daily Trends¶
Provides a mini trend chart of GO spending (estimated) over the last 30 days.
Input Box Mini-Bar¶
Only when the current conversation model provider is opencode-go, it displays the 5h / week / month percentage below the conversation input box; hovering shows details of the three windows, and clicking immediately refreshes.
Theme Adaptation and Key Parsing¶
Styles use --dsw-alias-* theme variables with light/dark fallbacks; border radius automatically follows the rounded/cornered theme via generic element detection.
Credential parsing supports resolving opencode-go → opencode entries from OPENCODE_GO_API_KEY to ~/.local/share/opencode/auth.json, eliminating the need for manual Key configuration.
Installation and Enablement¶
Recommended Installation Method¶
It is recommended to install directly using the git source:
dsh plugin --profile web add github:6pofx/dsh-go
After installation, enter the settings sidebar to view the “OpenCode GO Usage” entry.
Local Offline Installation¶
Local offline installation uses the tarball process:
npm pack
cp dsh-go-usage-*.tgz $DSH_HOME/profiles/web/
For the first installation, add the corresponding entry in the dependencies of $DSH_HOME/profiles/web/package.json:
"dsh-go-usage": "file:dsh-go-usage-0.1.14.tgz"
Then execute the installation:
dsh plugin --profile web install
Finally, restart dsh web.
The example file name in the gathered data is dsh-go-usage-0.1.14.tgz; the actual file name is based on the npm pack output.
Update¶
Git source update:
dsh plugin --profile web update dsh-go
Local offline update:
npm pack
cp dsh-go-usage-*.tgz $DSH_HOME/profiles/web/
dsh plugin --profile web install
Restart dsh web after updating.
Typical Usage¶
View Account Quotas and Model Usage¶
Open “OpenCode GO Usage” in the settings sidebar. You can first view the three-window ring chart, then check model Token usage and estimated costs.
The “View Price Table” button in the page is used to expand the currently active GO price table.
Quick Check in Chat¶
When the current conversation model provider in DSH Web GUI is opencode-go, a mini-bar will appear below the input box.
- Hover: View details of the 5-hour / weekly / monthly windows
- Click: Immediately refresh usage data
Customize Host Parameters¶
If you need to customize Host parameters, you can edit the user layer of the profile’s cordis.patch.yml to configure baseUrl and timeoutMs. Example:
- insert:
- id: opencode-go-usage
name: dsh-go
config:
baseUrl: https://opencode.ai/zen/go/v1/usage
timeoutMs: 15000
Applicable Scenarios and Notes¶
Suitable for developers using the OpenCode GO package in DSH Web GUI who want to view account-level quotas, local DSH model usage estimates, and price tables in one place.
When using and installing, it is recommended to pay attention to the following boundaries:
- The plugin runs with the permissions of the current dsh process and executes Host-side code; you should check the source code, license, and dependencies before installation.
- The usage API has no public documentation and may change; parsing is defensive, and non-200 responses display a friendly status instead of crashing.
- A 401 from the official API indicates an invalid key, and 403 indicates no subscription.
- Quotas ($12 / $30 / $60) are for display reference only; the official API only returns percentages.
- Model-specific Token / costs come from DSH session logs and only cover GO usage generated locally by DSH.
- Model costs are estimated based on official GO unit prices, not the billing amount.
- DeepSeek prices peak/off-peak based on request time: Peak 01:00-04:00 / 06:00-10:00 UTC, price ×2.
- Tiered context models (e.g., GPT 5.6 Luna / Qwen3.7 Plus) use the low price tier for estimation.
Conclusion¶
The purpose of dsh-go is to place the three-window quotas of the OpenCode GO package, local DSH model usage estimates, the price table, and input box quick prompts all in one plugin entry, making it convenient to check usage status at any time during development.
GitHub:
- https://github.com/6pofx/dsh-go
The community directory page URL did not appear in verified materials and is not listed in this article.