X-C1811/dsh-web-search-plugin

Plugin插件 Native原生 ⭐ 2 MIT Search & Web Access搜索与联网

DeepSeek Harness(ctx.web)的 Tavily 网页搜索提供程序。支持无密钥或 API 密钥模式,并配有可配置的 UI 卡片;提供程序框架设计为可扩展至更多搜索 API。

Project Overview项目介绍

This is a native web search plugin built exclusively for DeepSeek Harness (DSH). It integrates with DSH's ctx.web interface to provide unified web search capability, supporting 9 different search engine backends out of the box, including DeepSeek official, Tavily, Brave Search, Serper, Exa, SearXNG, and Firecrawl. After installation, you can run the command dsh plugin --profile web add dsh-web-search-plugin to add it to your DSH profile, and it will automatically register a search provider with the stable ID dsh-web-search. You do not need to manually edit the configuration to change the search provider; simply select your preferred engine in the DSH settings menu.

The plugin adds a dedicated "Web Search" section to the top level of DSH's settings page. It supports draft save prompts, success toasts, and lets you adjust the maximum number of results returned per search between 1 and 20 via a dropdown menu. All search results from different backends are normalized to DSH's required WebSearchResult format and automatically deduplicated by URL. This plugin is ideal for DSH users who want to switch away from the default search engine to a backend that fits their needs, whether they prefer free anonymous search or a paid enterprise service.

This plugin is released under the permissive MIT open source license. It requires DeepSeek Harness v0.1.5-rc1 or newer, and Node.js v22.19.0 or higher to run. When you install it via the DSH plugin command, it automatically disables the old built-in web search plugin to avoid duplicate provider registration, which prevents duplicate settings cards from appearing. If you are developing the plugin locally on Windows, you need to avoid cross-drive absolute paths caused by pnpm linking errors, and instead copy the repository to the same drive as your DSH profile to prevent broken linking issues.

这是一个专为 DeepSeek Harness 开发的原生网页搜索插件,为 DSH 的 ctx.web 接口提供统一的网页搜索能力,内置了九种不同的搜索引擎后端,包括 DeepSeek 官方、Tavily、Brave Search、Serper、Exa、SearXNG 等。它向 DSH 注册了一个稳定 ID 为 dsh-web-search 的搜索提供方,用户只需要在设置面板切换引擎即可使用,无需手动修改原有配置项。默认启用 DeepSeek 官方引擎,新装后即可直接使用。

插件会在 DSH 的设置页面顶层添加「网页搜索」分区,支持未保存草稿提示、保存成功提示,还可以通过下拉框调整每次搜索返回的最大结果数量(1-20条)。所有搜索结果都会被统一规范化为 DSH 要求的 WebSearchResult 格式,并自动按 URL 去重。DSH 用户可以通过这个插件切换到更适合自己需求的搜索后端,满足不同场景下的公开网页信息检索需求。

本插件采用 MIT 许可证开源,要求 DSH 版本不低于 0.1.5-rc.1,Node.js 版本为 22.19.0 或更高。可以通过 dsh plugin --profile web add dsh-web-search-plugin 命令从 npm 安装,安装后会自动禁用 DSH 内置的旧网页搜索插件,避免重复注册。Windows 下本地开发安装时需要注意跨盘路径问题,需要把仓库快照放到和 profile 同盘的目录下。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

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

把 X-C1811/dsh-web-search-plugin 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-web-search-plugin

面向 DeepSeek Harness web 能力接缝(ctx.web)的统一网页搜索插件,内置 DeepSeek(官方,默认)/ Tavily / Brave Search / Serper / SerpApi / Exa / SearXNG / Scavio / Firecrawl 九个后端。本包只向接缝注册 一个 WebSearchProvider,稳定 id 为 dsh-web-search。在 设置 → 网页搜索 里切换引擎即可,不必再改 web.searchProvider。

  • DeepSeek(官方,默认) — 走 DeepSeek 的 Anthropic 兼容 Messages API(原生 web_search_20250305 工具,凭据名 DEEPSEEK_API_KEY),一次搜索消耗一个模型轮次。
  • Tavily — keyless(免费、限流、无需账号)或 keyed(TAVILY_API_KEY,Bearer token)。keyed 会在设置卡显示额度进度条。
  • Brave Search — GET https://api.search.brave.com/res/v1/web/search,请求头 X-Subscription-Token(凭据名 BRAVE_API_KEY)。一次搜索就是一次 HTTP 请求,不走模型轮次;设置卡按响应头展示 Capacity / 月配额。
  • Serper — Google 结果(POST /search,头 X-API-KEY,凭据名 SERPER_API_KEY)。
  • SerpApi — GET /search.json,key 走 query(api_key=),凭据名 SERPAPI_API_KEY。
  • Exa — 语义/神经搜索(POST /search,Bearer,凭据名 EXA_API_KEY)。
  • SearXNG — 自建/协议免 key 的元搜索(GET /search?format=json),可填自托管实例地址。
  • Scavio — Google SERP(POST /api/v2/google,Bearer,凭据名 SCAVIO_API_KEY),响应与 SerpApi 同构。
  • Firecrawl — 搜索+抓取(POST /v2/search,Bearer,凭据名 FIRECRAWL_API_KEY),sources: ["web"]。
  • DuckDuckGo — 无官方搜索 API,不提供独立后端;下拉中以禁用项提示:选 SearXNG 并指向聚合了 DuckDuckGo 的实例即可。
  • 官方 key 跳转 — 需要 key 的内置 provider 在设置卡带「获取 API key ↗」一键跳官方控制台;免 key 的(SearXNG / Tavily keyless)不渲染。
  • 不写自定义 session 事件 — 工具结果已经走接缝自己的事件,无需多余信封。

特性

  • 与官方 @deepseek-ai/dsh-web-search-deepseek 相同的提供方约定:inject: ['web'] + ctx.settings.installSection + ctx.web.registerSearchProvider。
  • 顶层 设置 → 网页搜索 分区:两列布局、未保存草稿、保存 toast;结果数量为 1–20 下拉。
  • 默认引擎为 DeepSeek(官方):新装 / 未显式改动时,搜索直接走 deepseek-official,不再依赖 keyless 的 Tavily。
  • 纯 REST 后端由静态元数据表 + 通用后端驱动,新增 provider 即"表里加一行 + 官方跳转链接",无定制执行代码。
  • Tavily keyless 无需密钥即可用;Brave 需要订阅 token(若本机已有 BRAVE_API_KEY 凭据,可直接复用)。
  • Tavily keyed / Brave 在设置卡展示额度进度条(DeepSeek 官方与 Tavily keyless / 其余 REST 后端不展示)。
  • 各引擎结果都规范化为接缝的 WebSearchResult(可选 content + sources[]),按 URL 去重。
  • 设置段 dsh-web-search-plugin 通过 dsh 的 settings.installSection 注册、由 settings.describe() 动态暴露,不需要宿主白名单补丁,也不需要自建回环 settings 桥。
  • 错误映射为 WEB_PROVIDER_ERROR / WEB_ABORTED / WEB_PROVIDER_CREDENTIAL_MISSING。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-plain-plugin-menu 下一个 Next dsh-agent-pricing →