BeiZi6/dsh-opencodego-usage ↗★ 8

dsh-opencodego-usage

OpenCodeGo 用量 v0.1(作者:Xu Yuanshan):输入框右下角呼吸灯显示剩余额度,点击展开液态玻璃面板——三窗口进度条(5小时/7天/30天)+ 重置时间,Key 自动读取 DSH 凭据(opencode-go 提供商)。 适合使用 OpenCodeGo 提供商并关注额度的用户;密钥自动读取 DSH 凭据。

패키지
dsh-opencodego-usage
호환성
미검증
Harness peer 범위
^0.1.0-rc.6
Cordis peer 범위
^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.