Wandering233/dsh-keyless-search0

dsh-keyless-search

免 API key 的多引擎搜索 provider for DeepSeek Harness (ctx.web):真实浏览器 Google + 国际版 Bing + 中文 Bing,带代理自动探测与语言感知

包名
dsh-keyless-search
版本
1.1.0
许可证
MIT
最近更新
2026年9月10日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wandering233/dsh-keyless-search

配置

写入 profile 的 cordis.patch.yml 中本插件行的 config

- insert:
    - id: web-search-local
      name: 'dsh-keyless-search'
      config:
        engines: [google-browser, bing-global, bing]
        proxyUrl: ''            # '' = 自动探测;'off' = 强制直连;或 'http://host:port'
        maxSources: 16
        browserTimeoutMs: 30000
        searchTimeoutMs: 15000
        chromePath: ''          # 留空自动探测
        puppeteerPath: ''       # 留空走包名解析,失败再兜底已知路径
        searxngBaseUrl: ''      # 可选,见下
字段默认说明
engines[google-browser, bing-global, bing]引擎链;其他可选:duckduckgosearxng
proxyUrl''空 = 依次探测 10808 / 10809 / 7890 / 7897 / 1080 / 8888 / 8118 这些本地端口,命中即用
maxSources16单次搜索最多返回的来源数
searchTimeoutMs15000HTTP 引擎超时
browserTimeoutMs30000浏览器引擎超时(含冷启动)
browserIdleTimeoutMs300000浏览器实例空闲多久后自动回收(毫秒);0 表示禁用、实例常驻
chromePath自动Chrome/Edge 可执行文件
puppeteerPath自动显式指定 puppeteer-core 入口文件
proxyProbeTtlMs60000代理探测结果的缓存时长
proxyProbeTimeoutMs1200单次代理探测超时

代理行为

  • proxyUrl 留空 → 自动探测本地常见端口,找到就并发跑境外引擎,找不到就只跑直连 bing(省时间、省带宽、避免重复结果)
  • 'off' → 强制直连,只用 bing
  • 显式 URL → 只探测该地址

代理只作用于需要它的引擎(google-browser / bing-global / searxng);bing 始终直连——把国内引擎塞进境外出口 IP 反而会触发验证墙。

关于 SearXNG(可选)

searxngBaseUrl 填一个自建 SearXNG 实例即可启用元搜索(它内置 google 引擎)。但请注意实测结论:

  • 公共实例基本不可用searxng.site 对 JSON 返回 403,searx.be 不返回 JSON(需在实例的 settings.yml 里开启 search.formats 包含 json
  • Windows 上跑不起来uwsgi 需要 os.uname()、SearXNG 的 valkeydb.py 直接 import pwd,都是 Unix 专有依赖

所以除非你在 Linux/WSL/Docker 里有实例,否则建议直接用 google-browser