dsh-glm-quota

显示 GLM Coding Plan 额度:提供 glm_quota 工具、左侧栏面板、常驻侧边栏底部额度条、设置分区与插件页卡片。请求 open.bigmodel.cn 或 api.z.ai 的 /api/monitor/usage/quota/limit,按剩余额度显示(100% 为未使用,0% 为已用尽),覆盖 5 小时与每周 Token 窗口、每月 MCP 额度,并附重置倒计时;上游 CREDIT_LIMIT(unit 3/6)与 TOKENS_LIMIT 两种形状都能解析。API Key 存入 DSH 凭据库,不写入配置文件。

插件介绍

显示 GLM Coding Plan 额度:提供 glm_quota 工具、左侧栏面板、常驻侧边栏底部额度条、设置分区与插件页卡片。请求 open.bigmodel.cn 或 api.z.ai 的 /api/monitor/usage/quota/limit,按剩余额度显示(100% 为未使用,0% 为已用尽),覆盖 5 小时与每周 Token 窗口、每月 MCP 额度,并附重置倒计时;上游 CREDIT_LIMIT(unit 3/6)与 TOKENS_LIMIT 两种形状都能解析。API Key 存入 DSH 凭据库,不写入配置文件。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-glm-quota

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:Mikajin1206/dsh-glm-quota

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。