dsh-ocgo-usage: Display OpenCode Go usage in the DeepSeek Harness Web sidebar
dsh-ocgo-usage is an MIT-licensed plugin for DSH Web designed to address the issue of switching to an external interface to view OpenCode Go usage. It displays a persistent badge in the bottom-left corner of the sidebar, intuitively presenting the remaining usage percentage for the current month along with status colors (orange indicates low remaining quota, and red indicates exhaustion). Hovering over the badge expands a detail card showing usage progress for the rolling period, this week, and the current month, as well as the reset time. Core features include a peak-hours timeline based on Beijing Time, highlighting the current interval and displaying the time until the next switch point. The plugin automatically reads the API key from local configuration files or environment variables in sequence, requiring no additional configuration, and refreshes data every 60 seconds. The Host side uses Node ESM to register a route for proxying the usage interface, while the Client side registers the UI location using a hand-written Bundle, enabling cross-platform integration.
Read More