DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-web-search-zai

h

dsh-web-search-zai

Discovered

Z.ai / Zhipu GLM web-search provider for DeepSeek Harness (ctx.web)

dsh-web-search-zai

npm CI

GitHub · npm · English

给 DeepSeek Harness(DSH)加一个 Z.ai / 智谱 GLM 搜索插件。启用后,模型的网页搜索会走 Z.ai, 不再走 DeepSeek 官方搜索。

功能

  • 支持 plan / api 两条通道;auto 先走套餐,失败再走原生。
  • Z.ai 失败时可以用 DeepSeek 兜底,也可以关掉这个功能。
  • 设置页可以填写 API Key、打开或关闭兜底、跑一次测试搜索。
  • 不依赖额外运行时,也不用构建。

安装

要求 DSH >=0.2.2-rc.1 <0.3.0(对应 package.json 的 engines.dsh)。包发布在 npm,按包名从 npm 拉取。

用 DSH 的启动器 dsh 把包装进指定 profile(dsh 没加进 PATH 时用完整路径调用):

dsh plugin --profile desktop add @hexiaowu/dsh-web-search-zai

装完重启一次 Harness,插件会自动启用,网页抓取不受影响。

配置

打开 设置 → Z.ai 搜索,填入 API Key 即可。API Key 会写入 DSH 凭据库,不会写进 profile 配置。 也可以写入 ~/.dsh/.credentials.yaml 的 refs.ZAI_CODING_CN_API_KEY,或者用启动环境变量; 配置里的 apiKey 优先级最高。

同一个页面还可以打开或关闭兜底,也可以测试搜索。

通道与计费

通道计费说明
planGLM 编程套餐额度Anthropic 兼容接口 + web_search_20250305
api按次原生 /web_search,需要搜索资源包

mode 可选 auto(默认,先 plan 后 api)、plan、api。

兜底

fallbackEnabled 默认开启。Z.ai 失败(主动取消除外)后,会按 DeepSeek 官方搜索、DeepSeek 原生搜索 的顺序兜底;会消耗 DeepSeek 额度,不想用就关掉。

主要配置

字段默认说明
modeautoauto / plan / api
regioncncn 走 open.bigmodel.cn,global 走 api.z.ai
modelglm-4.6plan 通道使用的模型
timeoutMs25000plan 通道超时;api 通道最多 15 秒
fallbackEnabledtrueZ.ai 失败后是否转 DeepSeek 兜底
fallbackProvidersdeepseek-official,deepseek-search-api兜底顺序(逗号分隔)
apiKeyEnvZAI_CODING_CN_API_KEY凭据名称

其余字段(planBaseURL、apiBaseURL、apiVersion、maxTokens、maxUses、searchEngine、 count、apiKey)可以在插件配置里按需修改,改完下一次搜索生效。

注意

  • 环境:DSH 0.2.2-rc.1;Node 22.19+ 或 24。
  • Z.ai:plan 通道需要编程套餐,api 通道需要搜索资源包;国内 API Key 用 cn,海外用 global。
  • API Key 会显示在本机设置页,也会出现在浏览器开发者工具的网络面板;共享屏幕时注意遮挡。
  • 测试搜索会实际消耗一次调用;免费模型不执行服务端 web_search,plan 通道请用付费模型(默认 glm-4.6)。

常见问题

现象处理
设置里没有 Z.ai 搜索重启一次 Harness,或刷新页面
web_search 消失API Key 没配,且没有可用的 DeepSeek 兜底
HTTP 401 / 403API Key 与 region 不匹配,或 API Key 没有对应权限
HTTP 429 / 错误码 1113余额不足,或 api 通道没有搜索资源包
plan 通道返回 400,提示不支持 web_search用 auto 或 api
plan 通道超时调大 timeoutMs,或改用 api

卸载

dsh plugin --profile desktop remove @hexiaowu/dsh-web-search-zai

重启 Harness 后,搜索回到 DeepSeek 官方通道。

许可证

MIT

Comments

Loading…

Similar plugins

dsh-web-search-zai

by Canary-Builds

Z.AI (GLM) web search provider for DeepSeek Harness — native web_search via the Anthropic-compatible Messages API. Dependency-free DSH Profile Bundle.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 29, 2026

dsh plugin --profile web add @canary-builds/dsh-web-search-zai

by canarybuilds

Z.AI (GLM) web search provider for DeepSeek Harness — native web_search via the Anthropic-compatible Messages API. Dependency-free DSH Profile Bundle.

Manifest valid

★ 0

MIT

JavaScript

Sep 29, 2026

dsh plugin --profile web add @canary-builds/dsh-web-search-zai

by czpGhost

Z.AI (GLM) web search, web reader and vision for DeepSeek Harness, authenticated by a Z.AI email (OAuth) login instead of an API key.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 19, 2026

dsh plugin --profile web add dsh-glm-web-search

Zhipu GLM web search provider: registers as `glm` on the ctx.web seam and runs the native web_search server tool through GLM's Anthropic-compatible API (Coding Plan billing).

Tools & CapabilitiesModels & ProvidersManifest valid

★ 0

↓ 62/wk

dsh plugin --profile web add dsh-web-search-glm

by Tazio7

Web search plugin for DeepSeek Harness powered by ZAI GLM MCP — auto-injects API key from ~/.dsh/.credentials.yaml or environment variables

Tools & CapabilitiesManifest valid

★ 0

JavaScript

Sep 1, 2026

dsh plugin --profile web add web-search-glm

by kenny2077

Web search for DeepSeek Harness through Z.ai or Zhipu, with Coding Plan MCP quota and REST API billing modes, a native bilingual settings card, and support for reusing an existing ZAI_API_KEY.

Tools & CapabilitiesDevelopment & InfrastructureModels & ProvidersManifest valid

★ 1

↓ 67/wk

MIT

TypeScript

Sep 5, 2026

dsh plugin --profile web add dsh-web-search-zai