MST19711/dsh-opencode-go-usage
MST19711★ 0JavaScript最后同步: 2026-08-21
Floating OpenCode Go quota meter for the DSH Web UI — live remaining % for the 5h / weekly / monthly windows.
README 摘要
Go Meter — DSH 的 OpenCode Go 剩余额度实时小窗 产品名 Go Meter ;npm 包名 / 仓库名 @deepseek-ai/dsh-opencode-go-usage 。介绍文案见 GITHUB INTRO.md。 当当前会话使用的模型来自 OpenCode Go 订阅时,在 DSH Web 界面 右侧边缘 显示一个常驻小窗,实时展示三个配额窗口的剩余额度: - 5h 滚动 (rolling):最近 5 小时滚动窗口 - 本周 (weekly):自然周 - 本月 (monthly):自然月/订阅周期 每行显示「剩余百分比 + 重置倒计时」,行下为绿色进度条(自左向右表示剩余比例);剩余 ≤30% 转橙,≤10% 转红。模型切换到其他 provider 时小窗自动隐藏。 特性 - 📍 右侧浮层小窗( shell.overlay 官方加性席位),不遮挡任何列;可折叠为小徽章「Go 剩 xx%」 - 🔄 自动刷新(默认 30s,可配 15/60/120s;会话切换、重连、切回前台时立即刷新) - ⚙️ 设置页可配:启用开关、provider id、刷新间隔、显示的窗口、默认折叠 - 🔐 代理式数据通路:插件服务端半区经 DSH credentials 服务解析 API key,调 OpenCode 官方 GET https://opencode.ai/zen/go/v1/usage ; key 永不进入浏览器、不写日志 - 🛡️ 错误兜底:key 未配置 / 鉴权失败 / 未绑定订阅均给出可见错误并可重试;连续失败保留旧数据并标记「数据过期」 界面 - 小窗:右上角小卡片,标题 + 当前模型名 + 三窗口行(剩余% + 倒计时,行下进度条)+「更新于 HH:MM:SS」 - 折叠态:右侧小圆点徽章「Go 剩 xx%」,点击展开 - 设置:「设置 → OpenCode Go 额度」 安装(官方方式) 前置:dsh 已安装且目标 profile(默认 web )在运行。本插件通过官方的 dsh plugin add 安装( dsh plugin 是 pnpm 的薄转发层);包内声明了 dsh.bundle.patch (自带 cordis.patch.yml ),因此 plugin add 一步即可完成安装,无需手动编辑任何 profile 配置 。 安装成功后 重启 dsh (让 profile 重新组合 bundle 层),刷新浏览器即可看到小窗。 验证 重启并刷新页面后: - 当前会话模型为 opencode-go (或 baseURL 指向 opencode.ai/zen 的 provider)→ 右侧出现小窗,三窗口数值应与 opencode.ai 工作区页面一致; - /model 切到其它 provider → 小…
在 GitHub 查看完整 README →分类
Enhancement suite for Gemini, AI Studio, Claude & ChatGPT — plus a prompt manager for any web UI, DeepSeek Harness included. / 面向 Gemini、AI Studio、Claude 与 ChatGPT 的增强套件;提示词管理器可用于任意 Web UI,含 DeepSeek Harness。
★ 19,780
zhu1090093659/dsh-web-uiPlugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
★ 5,521
omdsh-dev/DSH-better-sidebar开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git, and sub-agent pages.
★ 2,621