Lequait/dsh-glm-web ↗★ 0

dsh-glm-web

使用智谱清言网页版登录态作为DSH的模型服务商 适合希望消耗清言网页积分而非开放平台API额度的DSH用户。

套件
dsh-glm-web
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年9月26日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Lequait/dsh-glm-web

使用方法(三步)

  1. 装插件(三选一):

    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:   # 本地目录
    
  2. 放登录态(任选其一):

    • 浏览器登录 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。
  3. 重启 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 位以上小写字母数字),该智能体会被当作模型使用。