haibinwang9/dsh-web-search ↗★ 1
dsh-web-search
pi-web-access for the DeepSeek Harness: multi-provider web search with automatic fallback (SearXNG → Tavily → Brave → keyless DuckDuckGo) plus URL content extraction, wired into the web seam so the built-in web_search tool is powered by piwa. Search engine toggle and API keys are configurable from the DSH settings page.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haibinwang9/dsh-web-search说明文档
阅读完整 README ↗dsh-web-search
本插件移植自 nicobailon/pi-web-access(MIT),为 DeepSeek Harness 适配:搜索回退链、DuckDuckGo 解析与正文提取逻辑源自该项目,网络层改用 Node 原生
fetch。感谢原作者。
它能做什么
一个插件,补齐 DSH 的联网能力:
- 🔍 多引擎搜索自动回退 —— 接管内置
web_search工具:SearXNG → Tavily → Brave → DuckDuckGo 零配置兜底,未配置的自动跳过,一个 key 都不填也能搜 - 📄 URL 正文提取 ——
get_search_content工具:抓任意网页,HTML 自动转可读纯文本(优先正文区域、剔除脚本样式),JSON 美化输出,二进制内容明确提示 - 🎚️ 一键切换默认搜索引擎 —— 设置页开关:开 = 用本插件回退链,关 = 委托官方 DeepSeek 搜索
- 🛠️ 补齐 fetch seam —— 注册搜索 + 抓取双 provider,内置
web_fetch因此恢复可用 - ⚙️ 配置全部在设置页 —— 三个密钥(SearXNG / Tavily / Brave)写入 credentials 服务,卡片式管理,无需改配置文件
安装
从 npm 安装(推荐):
dsh plugin --profile web add dsh-web-search
从源码安装:
git clone https://github.com/haibinwang9/dsh-web-search.git
cd dsh-web-search && dsh plugin --profile web add .
安装后重启 DSH,在 设置 → 插件 → Web access 里配置密钥/开关即可。