Multi-source web search and fetch failover for DeepSeek Harness sessions: takes over the session searchProvider and fetchProvider seams and tries configured sources in a chosen order — TinyFish, Tavily and the official search as a fallback that always participates and can be repositioned but not removed. Multiple API keys per platform are spread round-robin, usage snapshots drive pre-flight exclusion of exhausted accounts, and per-request timeouts plus same-platform retry control failover granularity. Web fetching runs local HTTP first, then falls back to TinyFish Fetch server-side rendering and Tavily Extract, so pages still load when local egress is blocked by proxy or DNS policies. A per-platform panel shows key usage and plan limits. Install from npm with `dsh plugin --profile web add @tnnevol/dsh-failover-search`.
Install
# from npm (prebuilt)
dsh plugin --profile web add @tnnevol/dsh-failover-search
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:FNOSP/fnos-dsh#path:/plugins/dsh-failover-search-plugin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DSH 会话内网页搜索的多来源插件:按 TinyFish → Tavily → 官方搜索 顺序自动故障转移,支持同平台多账号分摊与插件详情页用量展示。官方搜索只作为链尾兜底。
面向用户的安装、配置与常见问题见文档站页面:Failover Search。本文件只保留 npm 包所需的简短介绍。
安装
插件随 fn-deepseek-harness 自动安装。其他 DSH 环境手动安装,要求 DSH 0.2.2-rc.5:
dsh plugin --profile web add @tnnevol/dsh-failover-search@8.3.31
这个包做什么
- 在
ctx.web接缝上注册一个复合搜索提供方(iddsh-failover-search),组合包 patch 把searchProvider指到它。 - 平台顺序内遍历;同平台多账号按轮转分摊,账号失败或额度不足时先换同平台账号,再落到下一平台。
- 用量快照(Tavily 账户用量、TinyFish 钱包,均为免费查询)驱动请求前探测,并在插件详情页展示。
- 三方全不可用时沿用用户既有的官方凭据回落官方搜索。
- 网页抓取(
web_fetch)同样接管:本地 HTTP 抓取为第一跳,本地失败且平台有账号时按 TinyFish Fetch → Tavily Extract 转取(平台侧取回,不受本机 DNS/代理影响)。
注意:官方「网络搜索」设置页会覆盖本插件
本插件通过 web 行的 searchProvider / fetchProvider 接管搜索与抓取,而接缝是固定选择语义:配了哪个 provider id 就只用那个,其它 provider 即使注册成功也不会被走到。
官方「设置 → 插件 → 内置插件设置 → 网络搜索」页保存时会把这两个键写成官方 id,于是插件虽然已加载、账号与用量都正常,网页工具却走官方端点(官方余额耗尽时直接返回 HTTP 402)。因此:
- 安装本插件前先关掉官方的搜索/抓取通道,安装后不要再去那页保存;
- 已经被覆盖时,把消息框左下角的「智能搜索」开关关闭再打开即可写回本插件,无需重装;
- 也可以手改 profile 的
cordis.patch.yml中- id: web的两个键(整行替换,必须一起写)后重启。
兼容性
- DSH:
0.2.2-rc.5 - Node.js:
^22.19.0或>=24.0.0
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38526
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37266
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28921
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 9983
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6095
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4745
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.