dsh-opencode-usage: Displaying OpenCode Go Package Usage in the DSH Web GUI
dsh-opencode-usage is an open-source plugin (MIT licensed) developed for the DSH web GUI, designed to monitor OpenCode Go package usage in real time. The plugin provides a persistent badge below the composer input box, displaying usage percentages and reset countdowns across three windows—rolling, weekly, and monthly—with support for automatic refresh. Clicking the badge expands a detailed card showing progress bars, real-time countdowns, and configuration options for API Key, Base URL, and refresh interval. Additionally, it offers a parameterless tool `opencode_go_usage` that allows agents to directly query package balance during conversations. The plugin is developed purely from source code with no build steps, handles requests through same-origin routing to ensure API Keys do not enter the browser, and defaults to reading from environment variables.
Read More