FANXING-0710/dsh-web-search-opencode ↗★ 0
dsh-web-search-opencode
OpenCode-style web search (Exa / Parallel MCP) provider for the DeepSeek Harness ctx.web seam. Gives any model, including opencode-go's deepseek-v4-flash, a working web_search tool without a DeepSeek official API key.
AI Analysis
该插件适合需要为 DeepSeek Harness 接入免官方密钥网页搜索的用户。它支持 Exa 和 Parallel 检索,可灵活配置检索模式与结果上限,是实现模型联网搜索任务的实用工具。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:FANXING-0710/dsh-web-search-opencodeREADME
Read the full README ↗配置
默认无需任何配置。可选配置项(在 profile 的 cordis.patch.yml 覆盖 web-search-opencode 行的 config,或设置环境变量):
| 配置项 | 环境变量 | 默认值 | 说明 |
|---|---|---|---|
provider | OPENCODE_WEBSEARCH_PROVIDER | auto | auto(按查询确定性 50/50)| exa | parallel |
exaApiKey | EXA_API_KEY | 空 | 附加为 ?exaApiKey= 查询参数(同 opencode) |
parallelApiKey | PARALLEL_API_KEY | 空 | 附加为 Authorization: Bearer |
numResults | — | 8 | 结果数(同 opencode 默认) |
searchType | — | auto | Exa 检索模式 auto/fast/deep |
livecrawl | — | fallback | Exa 实时爬取策略 fallback/preferred |
contextMaxCharacters | — | 10000 | Exa 每结果上下文上限 |
timeoutMs | — | 25000 | 单请求超时(同 opencode) |