DSH OpenCode Go Key Broker

dsh-opencode-go-key-broker is a plugin for DSH designed to address the limitation that OpenCode Go only supports configuring a single API key and requires manual replacement when its quota is exhausted. The plugin manages a pool of multiple API keys via environment variables, provides quota-usage-based proactive rotation and error-triggered reactive switching, and supports viewing status in the Settings page and editor. After installation, DSH Desktop must be restarted. In addition, the plugin exposes an HTTP interface for management, but note that switching keys will invalidate the prompt cache.

Read More