cnChenKai/dsh-web-search-brave 预览 preview

cnChenKai/dsh-web-search-brave

插件Plugin 原生Native ⭐ 5 MIT 其他Other

基于Brave Search的WebSearchProvider,适用于DeepSeek Harness(ctx.web)

项目介绍Project Overview

dsh-web-search-brave 是 DeepSeek Harness 插件,将内置 web_search 工具的搜索后端切换为 Brave Search API。它通过 ctx.web 接入,支持 page_age 映射为 publishedAt 字段,关闭文本装饰以保持摘要干净。需要 Brave API 密钥,免费额度每月 2000 次查询。注意:配额受限,密钥必须配置到 DSH 凭据存储或环境变量。

dsh-web-search-brave is a DeepSeek Harness plugin that replaces the built-in web_search tool's backend with the Brave Search API. It hooks into the ctx.web seam, maps page_age to publishedAt as an ISO 8601 string, and keeps snippets clean by disabling text decorations. Use it when Brave's index or quota fits your workflow. Note that a Brave API key is required, with the free tier limited to 2,000 queries per month.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add dsh-web-search-brave

cnChenKai/dsh-web-search-brave 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-web-search-brave

npm version npm downloads GitHub stars License

English | 中文

A Brave Search-backed search provider for the DeepSeek Harness web capability seam (ctx.web): it makes the built-in web_search tool run on Brave's Search Web API instead of the shipped DeepSeek route.

Features

  • Clean snippets - text_decorations defaults to false so snippets stay free of <b> highlight markers.
  • Dates - page_age (ISO 8601) maps to the seam's publishedAt; human-readable age is ignored.
  • Keyed only - Brave has no keyless mode; free tier: 2,000 queries/month at api.search.brave.com.

Install

dsh plugin --profile web add dsh-web-search-brave

Set your API key in DSH's credential store (recommended) or export it in the environment that starts dsh web:

# ~/.dsh/.credentials.yaml
BRAVE_API_KEY: BSA...

Select the provider (the bundle patch does this automatically; to switch manually):

# your profile's cordis.patch.yml
- id: web
  name: '@deepseek-ai/dsh-web'
  config:
    searchProvider: brave

License

MIT

上一个 Prev dsh-mobile 下一个 Next dsh-session-management