d3cker/dsh-web-search-searxng

一个独立的、由SearXNG驱动的网页搜索提供程序,用于DeepSeek Harness网页配置文件。它接入harness的网页搜索接口(ctx.web),使代理的web_search工具通过您自托管的SearXNG实例进行搜索,而非使用供应商API。

Project Overview项目介绍

This is a native DSH plugin built exclusively for DeepSeek Harness, designed to replace the default web search provider in DSH’s web profile with a SearXNG-backed option. It plugs directly into DSH’s existing ctx.web web search seam, so all calls to the agent’s web_search tool route through your own self-hosted SearXNG instance instead of a third-party vendor API. To install the plugin, you run just one command from a DSH checkout with dsh on your PATH: dsh plugin --profile web add /path/to/dsh-web-search-searxng, and the tool handles automatic activation and patch layer setup, no manual configuration editing is required.

This plugin is intended for DSH users who prefer to self-host their web search infrastructure and avoid relying on closed, vendor-hosted search APIs. After you deploy and confirm your SearXNG instance is running, you just set one environment variable SEARXNG_BASE_URL to point to your instance address, or edit the default URL directly in the plugin’s cordis.patch.yml file if you don’t want to use environment variables. Once you restart your dsh web process from the correct shell environment, you can run a test web_search query like web_search("postgresql vs mysql") to confirm everything works as expected, and you can also set optional result count and API key via the same method.

The plugin is released under the permissive MIT open source license, so you can modify or redistribute it freely without restriction. It has no external build dependencies, as it is written in plain ESM JavaScript with no build step required. To enable the editable Settings card for the plugin inside DSH’s GUI, you will need to make two small manual changes to the DSH source code, though the search functionality itself works without this change. Local tests can be run with pnpm test after linking peer dependencies from your DSH checkout, and the project includes 20 tests written with Vitest.

这是一个专门为 DeepSeek Harness (DSH) 开发的原生插件,用于替代DSH web配置文件默认的网络搜索API,将搜索请求转发到用户自托管的SearXNG实例。它接入了DSH的web-search接口(ctx.web),安装后 agent 的 web_search 工具就会调用用户自己的SearXNG服务,不需要依赖第三方厂商的搜索API。插件采用纯ESM格式编写,无需构建步骤,通过一条dsh命令即可自动安装激活,配置过程非常简便。

它面向需要自行托管网络搜索服务、不想使用第三方厂商公开搜索API的DSH用户。典型工作流程为:用户先部署好自己的SearXNG实例,然后通过一条命令 dsh plugin --profile web add <插件路径> 完成安装,安装后插件会自动追加到web配置文件的 bundle 栈并应用补丁层,不需要手动编辑配置文件。设置好SearXNG实例地址的环境变量后,重启DSH web服务就可以正常使用搜索功能了。

本插件采用MIT许可证开源,免费供用户使用修改。依赖仅为用户已经部署好的SearXNG实例,不需要额外安装其他第三方依赖。插件本身仅提供搜索转发功能,搜索能力完全依赖用户自托管的SearXNG实例,服务可用性也由SearXNG实例决定。要开启设置界面的可编辑插件配置卡片,还需要用户手动修改两处DSH源码。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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 github:d3cker/dsh-web-search-searxng

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

READMEREADME

dsh-web-search-searxng

A standalone SearXNG-backed web search provider for the DeepSeek Harness web profile. It plugs into the harness's web-search seam (ctx.web), so the agent's web_search tool searches through your own self-hosted SearXNG instance instead of a vendor API.

  • Plain ESM, no build step.
  • Ships as a bundle: one dsh plugin command installs and activates it automatically.
  • Single configuration knob: $SEARXNG_BASE_URL.
  • Tested (pnpm test, 20 tests, vitest).

The one-command install

From a fresh DeepSeek Harness checkout (or with dsh on PATH):

dsh plugin --profile web add /path/to/dsh-web-search-searxng

That's it. The plugin is automatically appended to the web profile's bundle stack and its patch layer (shipped in this repo as cordis.patch.yml):

  • switches the web seam to this provider (searchProvider: searxng), and
  • mounts the plugin row.

No cordis.patch.yml hand-editing. No rebuild.

Configure: set one environment variable

Your SearXNG address is read from SEARXNG_BASE_URL (defaults to http://localhost:8888):

export SEARXNG_BASE_URL=http://192.168.30.74:8888   # your instance

Optional knobs:

Variable Default Meaning
SEARXNG_BASE_URL http://localhost:8888 Your SearXNG instance; /search is appended.
SEARXNG_NUM_RESULTS 10 Default result count when a request doesn't specify its own bound.
SEARXNG_API_KEY (none) Optional, for instances behind a key.

Then start (or restart) dsh web in that shell — or add the exports to your shell profile / the .env the harness loads.

No environment variables? Then edit the one line in the bundle's cordis.patch.yml:

baseURL: !!js process.env.SEARXNG_BASE_URL ?? 'http://localhost:8888'
#                                      ^^^^^^^^^^^^^^^^^ change this default

Both ways produce the same result — the choice is yours.

Verify

web_search("postgresql vs mysql")

should return aggregated results from your instance.

Wait — will I get the Settings → Plugins card?

Only after applying two small harness-side changes (the card lives in the harness source itself, and an allowlist gate in api-proxy.ts must name this namespace). They're documented at the end of this README in Make the Settings card work. The search itself works without them.

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-deepseek-quota-bar 下一个 Next dsh-enter-customizer →