DeepSeek Harness 插件

dsh-zhipu-coding-plan

GLM Coding Plan quota and usage as a conversation view tab (额度) for DeepSeek Harness web: 5-hour/weekly token windows, monthly MCP tool quota, and per-model/tool usage over the Zhipu monitor API(英文原文)

跳到安装方式

来源信息

GitHub 仓库
tsja2001/dsh-zhipu-coding-plan
最近更新
2026年8月18日
分类
工具与能力
GitHub stars
1
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/tsja2001/dsh-zhipu-coding-plan
插件名:dsh-zhipu-coding-plan
作者:tsja2001

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

<h1 align="center">dsh-zhipu-coding-plan</h1>

<p align="center"> <strong>让智谱 GLM Coding Plan 的额度一目了然。</strong> </p>

<p align="center"> 在 DSH Web 中直接查看 Coding Plan 的 Token 窗口、MCP 工具额度与模型 / 工具用量。 </p>

<p align="center"> <a href="https://www.npmjs.com/package/dsh-zhipu-coding-plan"><img alt="npm version" src="https://img.shields.io/npm/v/dsh-zhipu-coding-plan?style=flat-square&logo=npm&logoColor=white&color=cb3837"></a> <a href="https://github.com/tsja2001/dsh-zhipu-coding-plan/actions/workflows/ci.yml"><img alt="CI status" src="https://img.shields.io/github/actions/workflow/status/tsja2001/dsh-zhipu-coding-plan/ci.yml?branch=main&style=flat-square&logo=githubactions&logoColor=white&label=CI"></a> <a href="./LICENSE"><img alt="MIT license" src="https://img.shields.io/github/license/tsja2001/dsh-zhipu-coding-plan?style=flat-square&color=22c55e"></a> <a href="https://nodejs.org/"><img alt="Node.js 22.19+" src="https://img.shields.io/badge/Node.js-22.19%2B-339933?style=flat-square&logo=nodedotjs&logoColor=white"></a> <a href="https://github.com/topics/dsh-plugin"><img alt="DSH plugin" src="https://img.shields.io/badge/DSH-plugin-4f6ef7?style=flat-square"></a> </p>

<p align="center"> <strong>简体中文</strong> · <a href="README.en.md">English</a> </p>

---

<p align="center"> <a href="./assets/quota-tab.png"><img src="./assets/quota-tab.png" alt="dsh-zhipu-coding-plan 额度页签" width="100%"></a> </p>

<p align="center"><sub>无需离开编码会话,即可掌握 Coding Plan 还剩多少额度。</sub></p>

核心能力

能力说明
⏱️Token 窗口5 小时 / 每周 Token 额度进度与重置倒计时,高占用自动变色提醒。
🔧MCP 工具额度本月工具额度已用 / 总量 / 剩余,含联网搜索、网页读取、Zread 等分项明细。
🤖模型用量近 24 小时 / 7 天的调用次数、Token 总量与按模型占比。
🔑Key 页内配置面板里直接保存 API Key,保存前自动校验;也可走 ZHIPU_API_KEY 环境变量。
🛡️错误可读Key 无效、限流、断网等分类提示,明细接口异常不影响额度展示。

快速开始

从 npm 安装(推荐)

dsh plugin --profile web add dsh-zhipu-coding-plan

> [!IMPORTANT] > 安装完成后请重启 DSH Web。随后 额度 / Quota 选项卡会出现在对话、轨迹和统计选项卡旁边。首次打开可在面板中直接保存智谱 API Key。

<details> <summary><strong>从 GitHub 安装或卸载</strong></summary>

# 从 GitHub 安装
dsh plugin --profile web add github:tsja2001/dsh-zhipu-coding-plan

# 卸载
dsh plugin --profile web remove dsh-zhipu-coding-plan

</details>

你会看到什么

额度窗口

  • 5 小时 / 每周 Token:已用百分比进度条,≥80% 转警示色,≥95% 转错误色,并显示窗口重置倒计时。
  • 本月 MCP 工具:已用 / 总量 / 剩余次数,附分工具用量明细。

用量明细

  • 模型用量:近 24 小时 / 7 天可切换;调用次数、Token 总量、时序柱状图与按模型占比排行。
  • 工具用量:同一时间窗内联网搜索、网页读取、Zread、搜索 MCP 的调用次数。

API Key 与隐私

> [!NOTE] > Key 只保存在本机 DSH 凭据存储(~/.dsh/.credentials.yaml)或环境变量中,面板永不显示 Key 值。额度查询直连智谱官方监控接口(open.bigmodel.cn),无第三方中转、无遥测。

  • 解析优先级:启动环境 ZHIPU_API_KEY → DSH 凭据存储 → 启动目录 .env
  • 每次查询重新解析,换 Key 无需重启。
  • 仅支持个人版套餐;其他平台的 Key(如 DeepSeek)会被明确提示为无效,不会误报数据。

兼容性

  • 需要可以正常运行的 DSH Web。
  • 需要 Node.js ^22.19.0>=24.0.0
  • 数据来自智谱监控接口,Token 窗口仅提供百分比(接口不返回绝对值),面板如实呈现。

License

[MIT](LICENSE) © tsja2001