BeiZi6/dsh-opencodego-usage ↗★ 8
dsh-opencodego-usage
在输入框显示 OpenCodeGo 剩余额度与多窗口用量面板。 适合使用 OpenCodeGo 提供商并关注额度的用户;密钥自动读取 DSH 凭据。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BeiZi6/dsh-opencodego-usage说明文档
阅读完整 README ↗dsh-opencodego-usage
OpenCodeGo quota monitor for the DeepSeek Harness (DSH) Web GUI: a breathing indicator at the bottom-right of the input box shows your remaining quota at a glance; click it to open a liquid-glass panel with per-window progress bars and reset times.
Features
- 🟢🟡🔴 Breathing indicator — color-coded by remaining quota (>50% green, 20–50% yellow, 50% | 🟢 green | | 20–50% | 🟡 yellow | | = 22.19
- Peer dependencies:
@deepseek-ai/cordis(^4),@deepseek-ai/dsh-host-webserver(^0.1.0-rc.6)
License
MIT © Xu Yuanshan
Links
- Repository:
- Issues:
中文简介
为 DSH Web GUI 打造的 OpenCodeGo 剩余额度监控插件:输入框右下角呼吸灯(>50% 绿 / 20–50% 黄 / 50% | 🟢 green | | 20–50% | 🟡 yellow | | < 20% | 🔴 red |
- Click it to expand the panel:
rolling— quota used in roughly the last 5 hoursweekly— quota used in roughly the last 7 daysmonthly— quota used in roughly the last 30 days
- Each window shows the used percentage, the remaining share and the exact reset time.
- A manual API key override can be entered in the panel for the current session; clearing it falls back to automatic resolution.
- Data refreshes automatically every 2 minutes.
API key resolution
The plugin looks for a key in this order:
- Manual override entered in the panel (kept in a small state file under
$DSH_HOME; the path can be moved with theOCG_STATE_PATHenvironment variable) - DSH credentials — only when the active provider is
opencode-go, the credential referenced byllm-pi-ai.providers.opencode-go.apiKeyEnvis resolved - Process environment
- The state file
The key is only ever sent to the official OpenCodeGo quota endpoint over HTTPS.