D
@xueayi/dsh-opencode-go-usage
v0.1.3 · 2 天前发布
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
DeepSeek Harness 的 OpenCode Go 计划用量监控插件:Web GUI 右下角悬浮用量坞,
实时显示 5h 滚动 / 本周 / 本月三个额度窗口的已用百分比与重置倒计时。
数据来自 OpenCode 官方配额 API(GET https://opencode.ai/zen/go/v1/usage,
Bearer API Key 认证,无需 workspace id、无需 Cookie)。
安装
sh
从 npm 安装(Web GUI 对应 web profile):
dsh plugin --profile web add @xueayi/dsh-opencode-go-usage
或本地路径:
dsh plugin --profile web add /path/to/dsh-opencode-go-usage
升级到最新版:
dsh plugin --profile web update @xueayi/dsh-opencode-go-usage
安装后重启对应 profile(Web UI 即 dsh web)。
配置
推荐途径:在 Web 设置 → 模型 中选择「官方渠道 · OpenCode Go」并填入 API
Key,之后无需任何配置即可使用。
插件每次刷新通过 ctx.credentials 解析 apiKeyEnv 指定的凭据引用(默认OPENCODE_GO_API_KEY),也可手动把 Key 存入 ~/.dsh/.credentials.yaml
或环境变量:
```yaml
- id: opencode-go-usage
name: '@xue
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- @xueayi/dsh-opencode-go-usage
- Repo
- git+https://github.com/xueayi/dsh-opencode-go-usage.git
- Engines
{"node":"^22.19.0 || >=24"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime"],"platform":"web"}}