AI Agent Hub
Back to plugins
🧩

dsh-opencode-go-usage

admin-security Updated 2026.08.16

Run the following command in DeepSeek Harness:

dsh plugin install qknc-bot/dsh-opencode-go-usage

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install qknc-bot/dsh-opencode-go-usage in the terminal (source: https://github.com/qknc-bot/dsh-opencode-go-usage), then restart dsh web to activate the plugin.

About this plugin

Developers on the OpenCode Go plan who work inside the DSH Web GUI often find themselves opening a separate browser tab to check remaining quota mid-conversation. dsh-opencode-go-usage folds that check directly into the input toolbar: a 5-hour rolling usage ring, styled identically to the built-in context ring, lives permanently on the left side. Hover it to see threshold-based colour states and the current percentage; click it and a white card expands above the ring, listing the 5-hour, weekly, and monthly windows with used percentages and reset countdowns, auto-refreshing every 30 seconds.

Beyond the visual layer, the plugin registers an opencode_go_usage agent tool so the model can query balances in-conversation. The system prompt instructs the agent to invoke the tool automatically when the user mentions balance, usage, or quota. On the security side, the API key is resolved via a DSH credential reference inside the host process and never reaches the browser; the proxy route carries a loopback-only guard. There are zero SDK runtime dependencies, making git-vendored or directory installs work out of the box with no build step.

This plugin is a good fit for developers on the OpenCode Go plan who work in DSH Web GUI daily, want quota monitoring woven into their conversation flow, and need the model to be self-aware of remaining credits. It works out of the box with no extra configuration; just restart DSH Web after installing to see the ring appear.

Use Cases

  • Monitor OpenCode Go plan usage across 5-hour, weekly, and monthly windows in real time inside DSH Web GUI
  • Let the agent detect balance-related mentions in conversation and proactively query remaining quota for the user
  • Check remaining credits by hovering or clicking the toolbar ring without switching browser tabs

Best For

  • Developers on the OpenCode Go plan who work in DSH Web GUI as their primary interface
  • Efficiency-focused users who want quota monitoring woven into the conversation to reduce context switching
  • Team deployments that require the API key to stay in the host process with zero browser exposure