dsh-go-balance: View OpenCode Go Subscription Balance in the DSH Web Toolbar

dsh-go-balance is a DSH Web plugin developed by iamfromchangsha and licensed under the MIT License, designed to help users view the remaining quota of their OpenCode Go subscription in real time within the DSH Web interface. The plugin displays a balance capsule to the right of the input box toolbar, showing remaining percentages across three windows—rolling, weekly, and monthly—and supports hovering to view details (such as usage ratio, reset time, and last updated time). When any window's balance falls below 30%, the capsule turns yellow; below 15%, it turns red to warn of low balance. The plugin retrieves data via API key polling and includes security mechanisms such as concurrent request deduplication, error sanitization, Origin protection, and rate limiting. The API key is only resolved within the host process's memory and is never sent to the browser or logs, ensuring security. Installation requires

Read More