xueayi/dsh-opencode-go-usage2

@xueayi/dsh-opencode-go-usage

OpenCode Go 计划用量实时监控插件

AI 分析

核心用途是在悬浮窗中实时展示 5小时滚动、周、月额度及重置倒计时。适合 OpenCode Go 订阅用户监控额度消耗。

套件
@xueayi/dsh-opencode-go-usage
版本
0.1.4
授權
MIT
最近更新
2026年8月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xueayi/dsh-opencode-go-usage

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


## Usage dock

![Usage dock screenshot](https://raw.githubusercontent.com/xueayi/dsh-opencode-go-usage/82d7fdd1f04c43264db12d33796ea99317a68782/img/example.png)

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.