dsh-opencode-go-usage

OpenCode Go quota readout pinned above the composer in the DSH web GUI: rolling, weekly and monthly used percentages with progress bars, and reset countdowns that keep ticking without a network read. Expanding adds each window's reported status and reset time. The Host half reads the gateway usage endpoint with a key from the credentials store — OPENCODE_API_KEY, falling back to the older OPENCODE_GO_API_KEY — while the browser only reads a same-origin route, so the key never reaches the page. A settings page (Settings → OpenCode Go) stores that key in the credentials store and reports only whether it is configured, its source and a masked preview, so entering a key no longer means editing the credentials file by hand.

Overview

OpenCode Go quota readout pinned above the composer in the DSH web GUI: rolling, weekly and monthly used percentages with progress bars, and reset countdowns that keep ticking without a network read. Expanding adds each window's reported status and reset time. The Host half reads the gateway usage endpoint with a key from the credentials store — OPENCODE_API_KEY, falling back to the older OPENCODE_GO_API_KEY — while the browser only reads a same-origin route, so the key never reaches the page. A settings page (Settings → OpenCode Go) stores that key in the credentials store and reports only whether it is configured, its source and a masked preview, so entering a key no longer means editing the credentials file by hand.

Installation

Install from GitHub

dsh plugin --profile web add github:daydream-wjh/dsh-opencode-go-usage

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands