dsh-web-search-bing
Manifest validBing-backed web search provider for the built-in web_search tool: scrapes the public cn.bing.com HTML results page with no API key, reachable from mainland China, and keeps searches off the model's ow
dsh-web-search-bing
面向 DeepSeek Harness (DSH) 的免费 Bing 搜索 provider。无需 API Key,不消耗模型额度。
特点
- 完全免费:走 Bing 公共 HTML 搜索页面,无需 API Key、无需注册
- 国内可达:默认
cn.bing.com,中国大陆可直连(DuckDuckGo 在此不可达) - 零配额消耗:不消耗 DeepSeek 或任何 LLM 的搜索配额
- 可配置:搜索端点、中英文结果、单页结果数,且设置热生效(改完不用重载插件)
- 适配 DSH 0.2.x:使用新版 schema 驱动的设置模型(导出
Config,由 host 自动生成设置表单)
与内置 DeepSeek 搜索的区别
内置 dsh-web-search-deepseek(deepseek-official) | 本插件(bing-free) | |
|---|---|---|
| 原理 | 调 DeepSeek Messages API + 原生 web_search 工具,每次搜索是一次 LLM 请求 | GET cn.bing.com/search,解析 HTML |
| 凭证 | 需 API Key | 零凭证 |
| 配额 | 消耗 DeepSeek 模型额度 | 不消耗任何额度 |
| 设置项 | key / endpoint / model / maxTokens / maxUses | endpoint / maxResults / ensearch |
内置的是「用模型额度换高质量检索」,本插件是「用网页抓取换零成本」。两者可共存,通过 web.searchProvider 选择。
安装
# 1. 放进 profile 目录(路径无空格,避免 pnpm 拆参数)
# 或直接 pnpm add github:godchen520/dsh-web-search-bing
cd $DSH_HOME/profiles/web
# 2. package.json 的 dependencies 加:
# "dsh-web-search-bing": "file:dsh-web-search-bing"
# (或 "github:godchen520/dsh-web-search-bing")
# 3. package.json 的 dsh.profile.bundles 里加上 "dsh-web-search-bing"
# 4. 安装并重启
dsh plugin --profile web install
dsh web
注意:只加进
dependencies而不加进dsh.profile.bundles的话,插件的cordis.patch.yml不会被应用——插件是「装了但没启用」,搜索仍走内置 provider。
配置
设置项由 host 从插件导出的 Config schema 自动生成,出现在 设置 → Plugins 页面
(注意:专属的「网页搜索」设置页是内置 DeepSeek provider 的,本插件不在那里)。
三个字段都是 .volatile(),保存后下一次搜索即时生效:
| 参数 | 默认值 | 说明 |
|---|---|---|
endpoint | https://cn.bing.com/search | 搜索端点(可换镜像/代理) |
maxResults | 20 | 单页解析结果上限(seam 还会按 searchMaxResults 再截断) |
ensearch | 0 | 0=中文结果,1=英文 |
工作原理
web_search 工具 → ctx.web.search() → bing-free provider
→ GET cn.bing.com/search?q=...&ensearch=0
→ 解析 <li class="b_algo"> → {url, title, snippet}
→ 返回给 dsh-tool-web 渲染
- 运行时会带上浏览器 UA(Bing 会拒绝裸 Node/undici agent)。
- 命中 captcha/风控页时抛结构化
WEB_PROVIDER_ERROR,不会伪装成「无结果」。 - 支持
AbortSignal取消。
兼容性
| DSH 版本 | 状态 |
|---|---|
| 0.2.x(如 0.2.0-rc.2) | ✅ 支持(当前版本) |
| 0.1.7 ~ 0.1.x | ✅ 支持(readField 同时兼容 .get() 访问器与纯值) |
| ≤ 0.1.6 | ❌ 不支持(那时用 installSettingsSection 手写注册,API 已移除) |
本插件只 import 两个包:@deepseek-ai/schemastery、@deepseek-ai/dsh-web。
不再依赖 @deepseek-ai/dsh-settings(新版已移除 settingsNamespace / installSettingsSection)。
测试
node tests/parse.smoke.test.cjs # 25 项 HTML 解析测试
License
MIT
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 1.1.0 | — | — |
| 1.1.1 | — | — |
Comments
Loading…
Similar plugins
Maintained fork of godchen520/dsh-web-search-bing adapted to DSH 0.1.5-rc.1: Bing-backed provider for the built-in web_search tool, scraping the public cn.bing.com HTML results page with no API key, r
★ 0
dsh plugin --profile web add dsh-bing-searchby Oxygen640
Zero-key web search provider for the built-in web_search tool: scrapes Bing China, 360 and SearXNG through a backend fallback chain and returns real URLs with snippets and publish dates. No API key an
★ 1
MIT
JavaScript
Oct 25, 2026
dsh plugin --profile web add dsh-plugin-nuaa-searchby gao-gao-zai
Persistent DSH model tools for Bing and SearXNG web search plus bounded webpage fetching.
★ 0
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-tool-web-searchby fangqian616
Zero-dependency local Bing web search tool for DeepSeek Harness — no API key, no firecrawl.
★ 3
MIT
JavaScript
Sep 5, 2026
dsh plugin --profile web add @fangqian616/dsh-bing-searchby Wandering233
免 API key 的多引擎搜索 provider for DeepSeek Harness (ctx.web):真实浏览器 Google + 国际版 Bing + 中文 Bing,带代理自动探测、语言感知与浏览器空闲回收
★ 0
MIT
JavaScript
Sep 14, 2026
dsh plugin --profile web add dsh-keyless-searchby Gaozx1
DSH 插件:用 Bing / DuckDuckGo / Mojeek / Google / Brave 多引擎混合替代默认网络搜索,带可视化设置页
★ 0
MIT
JavaScript
Oct 19, 2026
dsh plugin --profile web add dsh-web-search-engine