DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-web-search-session

Y

dsh-web-search-session

Manifest valid★ 1

DSH web search using the current session model and a self-hosted retrieval backend

UI (client)hasBundlePatch

dsh-web-search-session

DSH 自带的联网搜索按官方 token 额度计费。即便已经自配网关,这部分调用仍会走官方通道, 费用在不知不觉中累积——本插件正是为解决这一点而做。

它让联网搜索跟随当前会话所选模型:先由会话模型把问题改写为检索词(该次调用同样计入 dsh-cost-meter 账本并归入本会话),再通过自建检索后端取回真实网页来源。

特性

  • 会话路由 —— 改写检索词时使用当前会话的 provider/model,而非固定模型。
  • 自建检索 —— 支持 SearXNG(免密钥,推荐)、Tavily、Brave,端点与密钥均可配置。
  • 可控回退 —— 无会话路由或检索失败时,按 noRoute 选择回退官方提供方、用原始问题检索或直接报错。
  • 凭据隔离 —— 密钥仅通过凭据服务或环境变量引用,不写入插件与设置文件。
  • 可视化配置 —— 在「插件」页直接配置地址、密钥与调用次数。

安装

dsh plugin add dsh-web-search-session

安装后重启 DSH。插件通过 bundle patch 把 web 行的 searchProvider 切换为 session。

从源码安装:在具备 plugin_manager 工具的会话中,对插件目录执行 install_bundle, target 填目录绝对路径。安装会写入当前 profile 并应用 patch,无需手工编辑配置文件。

快速开始

  1. 准备一个 SearXNG 实例,确认 http://<host>:8888/search?q=test&format=json 返回 JSON。
  2. 打开「插件 → 已安装 → dsh-web-search-session」,把平台地址指向该实例。
  3. 正常发起一次联网搜索。

配置

配置项写在 profile 的 cordis.patch.yml 中;标有「界面」的项也可在插件页直接修改。

字段类型默认说明
backendstringnone检索后端:none / searxng / tavily / brave
endpointstring''后端基址;留空时使用该后端默认端点
apiKeyEnvstring''密钥引用名;留空时使用该后端默认名
sessionPlanningbooleantrue是否用会话模型改写检索词
noRoutestringofficial无路由或检索失败时:official / raw / error
providerIdstringsession本插件注册的提供方 id,须与 web.searchProvider 一致
officialProviderIdstringdeepseek-official回退时委派的官方提供方 id
maxQueriesnumber3单次请求最多调用后端几次,范围 1–20
maxResultsnumber8返回来源条数上限,最大 20
planMaxTokensnumber512检索词改写的输出 token 上限
planTimeoutMsnumber20000检索词改写超时(毫秒)
searchTimeoutMsnumber20000单次后端检索超时(毫秒)
debugbooleanfalse输出检索词与来源数量的调试日志

随包提供的 cordis.patch.yml 已预设 backend: searxng、endpoint: http://127.0.0.1:8888。 上表「默认」列是插件 schema 的缺省值;未加载该 patch 时以缺省值为准。

后端

后端默认端点密钥变量
searxnghttp://127.0.0.1:8888不需要
tavilyhttps://api.tavily.comTAVILY_API_KEY
bravehttps://api.search.brave.comBRAVE_API_KEY

凭据

密钥不写入插件或设置文件,按以下优先级解析:

  1. 凭据服务,引用名取 apiKeyEnv,留空时取该后端的默认名;
  2. 同名环境变量。

缺少凭据属确定性配置错误,不会静默回退官方提供方。

工作原理

  1. 读取当前会话的 provider/model 路由。
  2. 由该模型把用户问题改写为若干检索词,受 sessionPlanning 与 maxQueries 约束。
  3. 并发调用所选后端,按 URL 去重后返回不超过 maxResults 条来源。
  4. 任一步骤失败时按 noRoute 处理。

兼容性

  • Node.js >= 20
  • DSH >= 0.1.7-rc.2(该版本起内置 @deepseek-ai/schemastery >= 3.18.3,设置项的即时生效依赖其 .volatile())

文档

许可

MIT

Comments

Loading…

From the same category

awesome-dsh-plugin

by awesome-dsh-plugin

A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表

Development & Infrastructure

★ 18.3k

CC0-1.0

Python

Oct 10, 2026

Index only — not installable

by 0xsline

DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.

Development & Infrastructure

★ 1.2k

CC0-1.0

Python

Oct 10, 2026

Index only — not installable

by pax-beehive

Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub

Development & Infrastructure

★ 450

MIT

TypeScript

Oct 6, 2026

Index only — not installable

by xiajiajun516

DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.

Development & InfrastructureManifest valid

★ 176

MIT

TypeScript

Oct 8, 2026

dsh plugin --profile web add dsh-config-manager

by yjh051108

推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。

Development & InfrastructureManifest valid

★ 164

TypeScript

Sep 18, 2026

dsh plugin --profile web add @dsh-external/dsh-super-injector

by jigjoy-ai

A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.

Development & Infrastructure

★ 124

MIT

TypeScript

Oct 2, 2026

Index only — not installable