dsh-glm-web
用智谱清言(chatglm.cn)网页版登录态做 DSH 的模型 provider:消耗网页版积分,不消耗开放平台 API 额度。Unofficial Zhipu Qingyan web provider for DeepSeek Harness. 适合希望消耗清言网页积分而非开放平台API额度的DSH用户。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Lequait/dsh-glm-webドキュメント
README 全文を読む ↗使用方法(三步)
-
装插件(三选一):
dsh plugin --profile desktop add github:/dsh-glm-web # 从 GitHub dsh plugin --profile desktop add dsh-glm-web # 从 npm(若已发布) dsh plugin --profile desktop add link: # 本地目录 -
放登录态(任选其一):
- 浏览器登录 chatglm.cn → F12 → Application → Cookies → 复制
chatglm_refresh_token(180 天); 或在该标签页控制台跑copy(document.cookie.match(/chatglm_refresh_token=([^;]+)/)[1]); - 粘进
~/.dsh/storages/glm-web/token.txt,或在 DSH 设置 → 插件 → dsh-glm-web 里填refreshToken字段。 - 只拿得到访问令牌(
chatglm_token,约 2 小时)也能用:把那串填进去,并把authMode改成access。
- 浏览器登录 chatglm.cn → F12 → Application → Cookies → 复制
-
重启 DSH(bundle 在冷启动挂载),然后在模型选择器里选
清言网页 · 通用。glm-web/deep是网页端沉思模式,更慢更耗积分;model id 也可以直接填清言智能体 id(24 位以上小写字母数字)。
Unofficial Zhipu Qingyan (chatglm.cn) web provider for DeepSeek Harness (dsh).
It turns your logged-in Qingyan web account into a native DSH model provider, so the agent runs on web-app credits instead of open-platform API quota. No DOM automation, no browser kept open — one refresh token is enough.
Verified against a real account: token refresh, streaming chat, and a real tool call (parsed arguments included).
Not affiliated with Zhipu. Uses private web endpoints; account risk is yours. Research/personal use only.
使用
模型选择器里选 glm-web/chat(通用)或 glm-web/deep(沉思)。
model id 也可以直接填清言智能体 id(24 位以上小写字母数字),该智能体会被当作模型使用。