在输入框旁实时查看 GLM 套餐小时与周额度
29.4/100
综合分
0
GitHub 星标
—
npm 周下载
—/5
用户评分
数据截至 2026/9/26 · 周下载取自 npm 全网(含 CI / 镜像),非本站安装数;综合分由星标、活跃度与兼容性检查合成。
安装命令 · 需先装 dsh CLI 引擎
dsh plugin --profile web add HoodyHuo/dsh-plugin-glm-balance该包不可直接 npm 安装,改从 GitHub 源安装(明细见下方安装检查)
状态速览
判定依据:实装验证 · 静态安装检查 · 自动扫描 · 仓库维护状态信任档位:已验证
是什么
dsh 原生插件 · model
安全吗
本站尚未对该插件做风险分级
暂未覆盖,不等同于无风险
还在维护吗
更新放缓:最近一次提交在 41 天前
档位由哪些信号合成
本站实装验证(真实安装 L4 覆盖全站;L5 为运行时冒烟或实机截图,覆盖范围小于 L4) · 验证所用 dsh 版本 · 静态安装检查 · 风险分级 · 仓库维护状态。 下方各区块是它的证据明细。
社区实装还没有人打卡 · 装过的第一个就是你
安全扫描自动 · 静态分析源码v2.7.0🔵 扫描:含敏感能力尚无人工评估展开查看扫描说明与证据 ↓
安全扫描自动 · 静态分析源码
v2.7.0静态扫描发现插件具备触达本地系统的能力:执行外部命令、读写/删除本地文件、读取剪贴板或密钥类环境变量(至少其一)。这是能力清单,不是危险判定——具体能力项与证据见下方,安装前请自行判断是否需要。
读写/删除本地文件发起外部网络请求
查看扫描证据(共 6 处,展示前 6 条)
- 读取本地文件lib/index.js:33
const parsed = JSON.parse(readFileSync(configPath(), 'utf8')); - 写入本地文件lib/index.js:47
mkdirSync(dirname(path), { recursive: true }); - 写入本地文件lib/index.js:48
writeFileSync(path, `${JSON.stringify(config, null, 2)}\n`, 'utf8'); - 发起网络请求lib/index.js:134
const upstream = await fetch(UPSTREAM_URL, { - 发起网络请求lib/client.js:104
const response = await fetch(url, options); - 发起网络请求lib/client.js:471
const response = await fetch("/glm-balance/api/config", {
扫描于 2026/10/31(0 天前) · 范围 入口闭包 + 全包扫描 · 来源 GitHub 仓库
静态扫描只反映源码中出现的调用,不构成安全背书;人工评估与自动扫描相互独立、互不覆盖。
给这个插件打分还没有人投票↓
用户评分
还没有人投票,来当第一个
功能亮点
- 显示小时与周额度
- 点击刷新额度
- 右键菜单操作
README
由 DeepSeek 最新模型翻译生成dsh-plugin-glm-balance
GLM (bigmodel.cn) quota balance indicator for the DeepSeek Harness web GUI.
A quota widget beside the composer's context meter — shown only when the session's current model provider matches the configured provider id (default zai-coding-cn).
Features
- Two mini progress bars (hourly / weekly credit limits) with percentage and
next-reset time, styled with the harness --dsw- theme tokens (works with
light/dark and third-party themes such as Dracula).
- Polls on a configurable interval (default 30 minutes); click to refresh
展开完整文档(README 剩余 1 节)
dsh-plugin-glm-balance
GLM (bigmodel.cn) quota balance indicator for the DeepSeek Harness web GUI.
A quota widget beside the composer's context meter — shown only when the session's current model provider matches the configured provider id (default zai-coding-cn).
Features
- Two mini progress bars (hourly / weekly credit limits) with percentage and
next-reset time, styled with the harness --dsw- theme tokens (works with
light/dark and third-party themes such as Dracula).
- Polls on a configurable interval (default 30 minutes); click to refresh
immediately, with a spinner while the request is in flight.
- Right-click menu: open the usage page on bigmodel.cn, or refresh.
- Auth-token states: no token / auth invalid (click shows how to fix) /
upstream failure.
- Its own "GLM Balance" settings section (Settings → GLM Balance) to paste the
authorization header, configure the provider id, and set the auto-refresh
interval.
Install
dsh plugin --profile web add dsh-plugin-glm-balance
Or straight from GitHub (no npm publish needed):
dsh plugin --profile web add https://github.com/HoodyHuo/dsh-plugin-glm-balance.git
Or install from source:
dsh plugin --profile web add E:\path\to\dsh-plugin-glm-balance
Restart dsh web afterwards (the host half registers proxy routes).
Update
git -C pull # when installed from a clone
dsh plugin --profile web add https://github.com/HoodyHuo/dsh-plugin-glm-balance.git # re-install = update
Then restart dsh web. The token file ~/.dsh/glm-balance.json is never touched
by an update. See CHANGELOG.md for what changed in each version.
Configuration
The plugin proxies GET https://bigmodel.cn/api/monitor/usage/quota/limit
through two same-origin host routes (avoiding browser CORS):
- GET/POST /glm-balance/api/config — stored credentials
- GET /glm-balance/api/usage — proxied quota query
The token persists in glm-balance.json under the harness home
(~/.dsh/glm-balance.json by default):
{
"authorization": "your bigmodel.cn authorization header value",
"providerId": "zai-coding-cn",
"refreshMinutes": 30
}
Edit the file, or use Settings → GLM Balance. No restart needed for
token changes; the indicator picks them up on the next poll (or click).
Notes
- The authorization value is whatever bigmodel.cn expects in the header — copy it from your browser's devtools request headers.
- Quota unit mapping follows the observed API: 3 → hourly, 6 → weekly.
- The token is stored in plain text inside the harness home, the same trust
domain as the rest of the harness configuration.
License
MIT
DeepSeek Harness Web GUI 的 GLM(智谱 bigmodel.cn)套餐余额指示器插件。
在输入框上下文用量圆环旁显示额度条,仅当会话当前模型供应商匹配配置值(默认 zai-coding-cn)时显示。
功能
- 两条迷你进度条(5 小时 / 每周额度),含百分比与下次重置时间;颜色走
- --dsw- 主题 token,自动适配明暗与第三方主题(如 Dracula);
- 可配置的自动刷新间隔(默认 30 分钟),点击立即刷新并显示加载动画;
- 右键菜单:打开 bigmodel.cn 用量页面、刷新(点击其他位置关闭);
- 认证状态提示:未配置 / 认证失效(点击提示修复方法)/ 获取失败;
- 设置页独立分区「GLM 余额」:填写 authorization、供应商 ID 与自动刷新间隔。
安装
dsh plugin --profile web add dsh-plugin-glm-balance
或直接从 GitHub 安装(无需发布到 npm):
dsh plugin --profile web add https://github.com/HoodyHuo/dsh-plugin-glm-balance.git
或从源码安装(安装后需重启 dsh web,宿主半要注册代理路由)。
更新
git -C pull # 以克隆方式使用时
dsh plugin --profile web add https://github.com/HoodyHuo/dsh-plugin-glm-balance.git # 重新安装即更新
然后重启 dsh web。更新不会触碰 token 文件 ~/.dsh/glm-balance.json。
各版本变更见 CHANGELOG.md。
配置
Token 存放在 harness 主目录下的 glm-balance.json(默认 ~/.dsh/glm-balance.json):
{
"authorization": "bigmodel.cn 请求头里的 authorization 值", "providerId": "zai-coding-cn", "refreshMinutes": 30 }
可直接编辑该文件,或在 设置 → GLM 余额 分区填写;改完无需重启,下次轮询(或点击刷新)即生效。
说明
- authorization 的值从浏览器 devtools 的请求头里复制;
- 额度 unit 映射按实测 API:3 → 小时,6 → 每周;
- token 以明文存于 harness 主目录,与 harness 其他配置同一信任域。
License
MIT预览分享卡片长什么样 ↓
分享 · DeepSeek Harness Hub
HoodyHuo/dsh-plugin-glm-balance
在输入框旁实时查看 GLM 套餐小时与周额度
相关插件 · 模型接入
API 中继安全审计toby-bridges/api-relay-audit
面向 AI API 中转与 LLM 代理的本地安全审计。
★ 897已汉化DSH
69.4
免费搜索插件DDDMUC/dsh-free-search
DeepSeek Harness 免费搜索插件 —— 无需 API key,零成本,多引擎可切换。 一个给…
★ 761已汉化DSH
68.7
免费联网搜索liustack/modsearch
在官方 App 里模型能联网,切到 API 就不能了。ModSearch 把联网补回来:网页搜索、X…
★ 863已汉化DSH
68.5
OpenCode 免费模型FishBottle7/opencode2dsh
在 DSHDeepSeek Harness里原生使用 OpenCode Zen 的免费匿名模型。
★ 379已汉化DSH
67.8
AI 模型网关tingly-dev/tingly-box
Tingly Box Web UI 演示
★ 373已汉化DSH
67.4
WorkBuddy 账号池XDTrees/dsh-xdpool
把你能白嫖的模型额度接进 DSH 同一个池:WorkBuddy 多账号自动容错、十三家扫码登录、76…
★ 359已汉化DSH
67.1