cyijun/dsh-surfing-plugin 预览 preview

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 返回格式支持。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 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.0 or >=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 →

← 上一个 Prev dsh-mcp 下一个 Next dsh-joi-channel-theme →