cyijun/dsh-surfing-plugin
SearXNG 搜索和 Crawl4AI 抓取提供程序,用于 DeepSeek Harness
Project Overview项目介绍
cyijun/dsh-surfing-plugin is a native plugin built exclusively for DeepSeek Harness (DSH) that adds self-hosted backend support for DSH’s built-in web_search and web_fetch tools. It uses SearXNG to handle web search requests and Crawl4AI to fetch content from target web pages, and integrates directly with DSH’s native ctx.web service. This means it preserves DSH’s native tool naming, argument structure, timeout handling, result rendering, and cancellation workflows, so users do not need to adjust their existing workflows to use it. Users can install it via the DSH CLI either from a local clone or directly from the npm registry once published.
This plugin is intended for DSH users who prefer to self-host their web access infrastructure instead of relying on third-party hosted search or crawling services. After installation, the bundled cordis.patch.yml automatically mounts the plugin and selects the provided SearXNG and Crawl4AI providers, replacing the default built-in DeepSeek search provider if needed. It works seamlessly with both DSH’s headless assembly and Web UI assembly, so regardless of how you run DSH, the plugin will work as expected. Users only need to call DSH’s native web_search and web_fetch tools as they normally would, and the plugin handles all backend communication automatically.
The plugin is released under the permissive MIT open source license, so you can use, modify, and distribute it freely per the license terms. Before running the plugin, you need to meet several requirements: you must have Node.js version ^22.19.0 or >=24.0.0 installed, run a DSH version between 0.1.0-rc.6 and 0.2.0, and have a running, reachable instance of both SearXNG and Crawl4AI. You also need to enable JSON output in SearXNG’s search.formats configuration. When setting up the plugin, you can configure endpoints and authentication either via environment variables or explicit configuration in the cordis.patch.yml file, with explicit configuration taking precedence over environment variables.
cyijun/dsh-surfing-plugin 是专为 DeepSeek Harness (DSH) 开发的原生插件,为 DSH 自带的网页搜索(web_search)和网页抓取(web_fetch)功能提供可自托管的后端实现。它分别使用开源的 SearXNG 提供网页搜索能力,Crawl4AI 提供网页内容抓取能力,完全兼容 DSH 原有的工具调用接口、参数格式和结果处理逻辑,不需要用户修改现有的工具调用习惯。
本插件面向需要自行托管网页访问后端、不想依赖第三方公共搜索服务的 DSH 用户。安装完成后,插件会通过 DSH 的 ctx.web 服务注册自定义提供商,覆盖原有默认配置,可同时适配 DSH 的无头版本和 Web UI 版本,用户正常调用 DSH 的网页搜索或抓取工具即可,所有对接后端服务的处理逻辑都会由插件自动完成。
本插件采用 MIT 许可证开源,使用时需要满足依赖要求:Node.js 版本不低于 22.19.0 或 24.0.0 以上,DSH 版本在 0.1.0-rc.6 到 0.2.0 之间,同时需要用户自行部署可访问的 SearXNG 和 Crawl4AI 服务,并提前开启 SearXNG 的 JSON 返回格式支持。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-surfing-plugin(cyijun/dsh-surfing-plugin)
仓库:https://github.com/cyijun/dsh-surfing-plugin
本站详情页:https://www.yhbd.top/plugins/cyijun-dsh-surfing-plugin/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 19 · 最近提交 2026-08-14 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 19 stars - an early-stage project星标 19,属于早期项目
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-surfing-plugin
把 cyijun/dsh-surfing-plugin 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-surfing-plugin
English | 中文
dsh-surfing-plugin adds self-hosted web access to DeepSeek Harness: web_search uses SearXNG and web_fetch uses Crawl4AI. It registers providers with DSH's ctx.web service, so the native tool names, arguments, rendering, timeouts, cancellation, and result limits remain unchanged.
Architecture
flowchart LR
A[Native DSH web_search] --> B[surfing-searxng provider]
B --> C[SearXNG /search]
D[Native DSH web_fetch] --> E[surfing-crawl4ai provider]
E --> F[Crawl4AI /crawl]
The bundled cordis.patch.yml mounts this plugin, selects surfing-searxng and surfing-crawl4ai, and adds a fetch-only native tool consumer. The separate consumer works in both DSH assemblies: headless keeps its host-level web_search, while the Web UI keeps the web_search mounted by each Agent Preset. The built-in DeepSeek search provider may remain mounted but is not selected.
Requirements
- Node.js
^22.19.0or>=24.0.0 - DeepSeek Harness
>=0.1.0-rc.6 <0.2.0 - Reachable SearXNG and Crawl4AI services
- JSON enabled in SearXNG's
search.formats
Quick start
The endpoint values may be service roots or complete /search and /crawl URLs:
export SEARXNG_URL=http://127.0.0.1:8080
export CRAWL4AI_URL=http://127.0.0.1:11235
# Current Crawl4AI releases enable Bearer authentication by default.
export CRAWL4AI_API_TOKEN=replace-with-your-token
Install a local checkout into the web profile:
dsh plugin --profile web add .
dsh --profile web --dump-config
dsh --profile web
After npm publication:
dsh plugin --profile web add dsh-surfing-plugin
Remove it with dsh plugin --profile web remove dsh-surfing-plugin.
Configuration
Explicit configuration wins over environment values. Override this plugin's row in $DSH_HOME/profiles/web/cordis.patch.yml:
- id: surfing-plugin
config:
searxng:
url: https://search.example.com
apiKeyEnv: MY_SEARXNG_KEY
authHeader: X-API-Key
authScheme: ''
language: en
categories: general,news
safeSearch: 1
timeRange: month
crawl4ai:
url: https://crawl.example.com
apiKeyEnv: CRAWL4AI_API_TOKEN
authHeader: Authorization
authScheme: Bearer
markdownMode: raw
maxContentChars: 100000
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
anysearch-team/anysearch-dsh
DDDMUC/dsh-free-search
wxkingstar/SpecFusion
A3Boy/dsh-web-tools
UncleK/dsh-think-translate
phoenixlucky/zerotoken-skill