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. 适合使用OpenCode Go服务的用户,便于在聊天时随时监控剩余额度。
Other repositories with this package name
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 秒自动刷新;页面底部显示"更新于"时间戳
- 可折叠为发送按钮外圈进度环:2px 细环实时显示 5h 滚动用量(主题自适应色,≥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 # 默认