BeiZi6/dsh-opencodego-usage ↗★ 8

dsh-opencodego-usage

在输入框显示 OpenCodeGo 剩余额度与多窗口用量面板。 适合使用 OpenCodeGo 提供商并关注额度的用户;密钥自动读取 DSH 凭据。

包名
dsh-opencodego-usage
兼容性
待验证
Harness 依赖范围
^0.1.0-rc.6
Cordis 依赖范围
^4.0.1
版本
0.1.0
许可证
MIT
最近更新
2026年8月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BeiZi6/dsh-opencodego-usage

dsh-opencodego-usage

English · 简体中文

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 hours
    • weekly — quota used in roughly the last 7 days
    • monthly — 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:

  1. Manual override entered in the panel (kept in a small state file under $DSH_HOME; the path can be moved with the OCG_STATE_PATH environment variable)
  2. DSH credentials — only when the active provider is opencode-go, the credential referenced by llm-pi-ai.providers.opencode-go.apiKeyEnv is resolved
  3. Process environment
  4. The state file

The key is only ever sent to the official OpenCodeGo quota endpoint over HTTPS.