Wandering233/dsh-keyless-search ↗★ 0
dsh-keyless-search
免 API key 的多引擎搜索 provider for DeepSeek Harness (ctx.web):真实浏览器 Google + 国际版 Bing + 中文 Bing,带代理自动探测与语言感知
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wandering233/dsh-keyless-search说明文档
阅读完整 README ↗配置
写入 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] | 引擎链;其他可选:duckduckgo、searxng |
proxyUrl | '' | 空 = 依次探测 10808 / 10809 / 7890 / 7897 / 1080 / 8888 / 8118 这些本地端口,命中即用 |
maxSources | 16 | 单次搜索最多返回的来源数 |
searchTimeoutMs | 15000 | HTTP 引擎超时 |
browserTimeoutMs | 30000 | 浏览器引擎超时(含冷启动) |
browserIdleTimeoutMs | 300000 | 浏览器实例空闲多久后自动回收(毫秒);0 表示禁用、实例常驻 |
chromePath | 自动 | Chrome/Edge 可执行文件 |
puppeteerPath | 自动 | 显式指定 puppeteer-core 入口文件 |
proxyProbeTtlMs | 60000 | 代理探测结果的缓存时长 |
proxyProbeTimeoutMs | 1200 | 单次代理探测超时 |
代理行为
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。