xueayi/dsh-opencode-go-usage ↗★ 2
@xueayi/dsh-opencode-go-usage
OpenCode Go plan usage monitor for DeepSeek Harness: real-time 5h-rolling / weekly / monthly quota in a floating web dock
AI 분석
核心用途是在悬浮窗中实时展示 5小时滚动、周、月额度及重置倒计时。适合 OpenCode Go 订阅用户监控额度消耗。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xueayi/dsh-opencode-go-usagedsh-opencode-go-usage
OpenCode Go plan usage monitor for DeepSeek Harness: a floating dock in the web GUI showing the 5h-rolling / weekly / monthly quota windows with live reset countdowns.
Data comes from the official quota API
(GET https://opencode.ai/zen/go/v1/usage, Bearer API key; no workspace id,
no cookie).
Install
## Usage dock

A glassy floating dock at the bottom-right corner (the web shell owns no
bottom-right slot; mounted through a body portal):
- **Badge (collapsed)**: three mini double rings show all three quota
windows at a glance — the outer ring is the used percent
(threshold-colored: green <60% / orange ≥60% / red ≥85%), the inner ring
is the window's remaining time until its next reset (brand blue, shrinking
live with the window period); beside them an exact 5h-rolling countdown
(`↻3h25m`) and a live health dot.
- **Panel (click to expand)**: one row per window (5h Rolling / Weekly /
Monthly) with a usage ring, used/remaining percent, and a live reset
countdown; the footer holds the update timestamp, a "Console ↗" link to
the OpenCode Go console, and a manual refresh button.
- Unconfigured/error states render inline with configuration guidance; a
failed fetch never blanks the dock.