dsh-web-search-brave
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.
DSH compatibility: version 0.2.5 has been tested locally with 0.2.2-rc.1.
Features
- Clean snippets -
text_decorationsdefaults to false so snippets stay free of<b>highlight markers. - Dates -
page_age(ISO 8601) maps to the seam'spublishedAt; human-readableageis ignored. - Keyed only - Brave has no keyless mode; free tier: 2,000 queries/month at api.search.brave.com.
Install
Install the npm package into the target DSH profile (replace web if needed):
dsh plugin --profile web add dsh-web-search-brave@0.2.5
Set your API key through the credentials service, or export BRAVE_API_KEY in the environment that starts dsh. The current credential file format uses a refs mapping; preserve any existing entries if editing it directly:
# $DSH_HOME/.credentials.yaml (default: ~/.dsh/.credentials.yaml)
version: 1
refs:
BRAVE_API_KEY: <your-key>
records: {}
The bundle mounts the provider but does not select it. The shipped web profile pins deepseek-official, so select Brave in your profile patch, preserving the fetch provider you already use (the shipped default is http):
# $DSH_HOME/profiles/web/cordis.patch.yml
- id: web
config:
searchProvider: brave
fetchProvider: http
A patch replaces the entire web config, so retain any other settings you need. Restart DSH after changing the profile patch.
License
MIT
No comments yet. Be the first to write one.