xueayi/dsh-opencode-go-usage
xueayi★ 0TypeScript最后同步: 2026-08-16
OpenCode Go plan usage monitor for DeepSeek Harness: real-time 5h-rolling / weekly / monthly quota in a floating web dock
README 摘要
dsh-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 Restart the profile afterwards ( dsh web for the browser UI). Configure Recommended : pick the official-channel OpenCode Go provider in Web Settings → Models and enter the API key there; nothing else is needed. The API key is resolved per refresh through ctx.credentials under the apiKeyEnv reference (default OPENCODE GO API KEY ) — it can also be stored manually in /.dsh/.credentials.yaml or an environment variable: Field Type Default Meaning apiKeyEnv string OPENCODE GO API KEY credential reference apiKey string — direct key fallback (discouraged) endpoint string https://opencode.ai/zen/go/v1/usage quota endpoint refreshMs number 60000 auto-refresh interval timeoutMs number 10000 per-request timeout 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 m…
在 GitHub 查看完整 README →