Tsunamistr/dsh-opencode-go-usage ↗★ 0
dsh-opencode-go-usage
DeepSeek Harness plugin: live OpenCode Go usage widget pinned to the bottom-right corner of the chat UI with 30s auto-refresh. Redevelopment of xiaoqi20/dsh-opencode-go-usage.
AI Analysis
核心用途是实时监控 OpenCode Go 的使用额度。适合该服务的订阅用户,通过直观的进度条和颜色预警避免额度超限,支持折叠和中英双语。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗dsh-opencode-go-usage
DeepSeek Harness Web GUI 插件:在对话界面右下角常驻悬浮卡片上实时显示 OpenCode Go 订阅用量(5 小时滚动 / 每周 / 每月),每 30 秒自动刷新,无需手动操作。
本项目是 xiaoqi20/dsh-opencode-go-usage(设置页 + 手动刷新)的再开发版本。
功能
- 右下角悬浮卡片:三个用量窗口的百分比、进度条、限额与重置时间
- 每 30 秒自动刷新;页面底部显示"更新于"时间戳
- 可折叠为圆形胶囊:外围环形进度条实时显示 5h 滚动用量(<80% 蓝 / ≥80% 黄 / ≥100% 红),中间显示百分比,点击展开;折叠状态自动记忆,刷新页面不丢失
- 手动刷新按钮(↻)、错误状态友好提示 + 重试
- 用量 ≥80% 进度条变黄,≥100% 变红
- 中 / 英双语,跟随界面语言
- 自适应明暗主题
效果图

安装
# - id: opencode-go-usage
# name: 'dsh-opencode-go-usage'
## 配置(可选)
在 profile 的 patch 层覆盖本行的 `config`(patch 会整体替换该行 config,需重述所有键):
```yaml
- id: opencode-go-usage
config:
baseUrl: https://opencode.ai/zen/go/v1/usage # 默认
timeoutMs: 15000 # 默认