v587d/dsh-opencode-go-usage
A DeepSeek Harness (dsh) bundle that shows OpenCode Go subscription usage in the Web GUI's composer dock — the
dsh-opencode-go-usage is a DSH bundle that shows OpenCode Go subscription usage in the Web GUI's composer dock — the same seat as the built-in conversation stats line — with three usage windows (rolling 5h / weekly / monthly) showing percent and reset countdowns, color-coded (muted → warning ≥80% → error ≥90% or rate-limited). Lightweight 10s polling with a 300s host cache and 60s failure cooldown so opencode.ai is never hammered; provider-aware visibility reads the live in-memory model selection, so switching to another provider hides the chip within one poll cycle. Click to expand a detail panel.
Install
dsh plugin --profile web add github:v587d/dsh-opencode-go-usageREADME EN edition (2026-09-01): standard dsh bundle with dsh.bundle manifest; install dsh plugin --profile web add github:v587d/dsh-opencode-go-usage (repo ships pre-built lib/, so no build-step allowance needed) or from npm after a release: dsh plugin --profile web add dsh-ocgo-usage (npm 0.1.1 verified 2026-09-01). Note: the npm name dsh-opencode-go-usage is taken by a similar third-party plugin, so this publishes as dsh-ocgo-usage; GitHub installs are unaffected.
Compatibility
DSH web profile; shows only while the session's current model routes through the opencode-go provider; OpenCode Go subscription required.
Details
- Repo: v587d/dsh-opencode-go-usage
- Category: Web UI Enhancements
- Stars: 7
- Version: npm dsh-ocgo-usage 0.1.1 / git github:v587d/dsh-opencode-go-usage
- Last push: 2026-08-25
- First seen: 2026-08-14
Recent updates
OpenCode Go usage chip (5h/wk/mo); color thresholds; 10s polling + 300s cache; provider-aware visibility; click-to-expand panel.
FAQ
- Why is the chip named dsh-ocgo-usage on npm?
- The npm name dsh-opencode-go-usage is already taken by a similar third-party plugin, so this package publishes as dsh-ocgo-usage. GitHub installs are unaffected.
- When does the chip appear?
- Only while the session's current model routes through the opencode-go provider; switching models hides it within one 10s poll cycle.
- How often does it poll?
- Every 10 seconds (and on tab refocus); the host caches results for 300s with a 60s failure cooldown.
Alternatives
Xenia0922/dsh-opencode-go-usage · v587d/dsh-opencode-go-usage · gtaifu/dsh-wechat-bridge