TinyFish-backed web search provider for the built-in web_search tool: each search is one GET to the TinyFish Search API, no model call.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-tinyfish-search
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:maxwell-feng/dsh-tinyfish-search
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
English | Chinese
DeepSeek Harness plugin that runs the built-in web_search tool on the TinyFish Search API. One GET per query. No model call.
What it does
The plugin registers a web search provider on ctx.web under the stable id tinyfish:
- Each
web_searchcall becomesGET https://api.search.tinyfish.aiwith thex-api-keyheader. results[](title, snippet, URL, date) are mapped toWebSearchSource.ready(llmProvider)reports whether a usable API key exists. Without one, a model step is not offeredweb_search.- No LLM turn is consumed per search.
- Native
icon.svgand bilingual manifest resources (locale/en.json,locale/zh.json) are included for Plugin Manager.
Bundle patch
cordis.patch.yml overrides two host rows:
web: setssearchProvider: tinyfishand restatesfetchProvider: http.dsh-basepins this row todeepseek-search-apiby default, so the patch is what routes searches to TinyFish.tool-web: re-enables the host tool row withdisabled: falseand restatessearch: true,fetch: trueand the base timeouts.dsh-web-appships this row disabled, so a clean web profile would otherwise have noweb_searchtool.
Re-enabling tool-web makes the web tools visible to every agent preset on the profile, including presets that do not otherwise carry them (e.g. minimal). A preset that mounts its own tool-web row shadows this registration for its agents. To scope the tools to one preset, override or remove the tool-web row in your profile cordis.patch.yml and add tool-web to that preset's composition. Later profile, home and --patch layers can override both rows.
Configuration uses a volatile schema. The Host reads the exported Config and renders the form for the dsh-tinyfish-search row on the Plugins page. There is no plugin-side settings code. A saved edit reaches the next search without a restart.
Requirements
- DeepSeek Harness
dshwith the web seam, such as thewebprofile. Build baseline:0.2.2-rc.3(released 2026-11-13).engines.dsh:>=0.1.7-alpha.2 <0.3.0. - Node.js
^22.19.0 || >=24.0.0. DSH 0.2.2 hosts require Node 24.9+, so the effective host floor is 24.9. - A TinyFish API key. Search is free at any wallet balance.
@deepseek-ai/dsh-credentialsand@deepseek-ai/dsh-launch-environmentas peers. Everydshprofile carries them.
DSH checks the declared engines.dsh range against the running version before it loads the row. A host outside the range is refused with the exact requirement named. To accept the risk:
dsh plugin allow-version dsh-tinyfish-search@0.21.0 --dsh-version <your-dsh-version> --accept-risk
Guides: Install · Configuration · Usage · Update · Uninstall · Changelog. Each has a Chinese edition.
Install
dsh plugin --profile web add dsh-tinyfish-search
From a checkout or tarball:
dsh plugin --profile web add ./dsh-tinyfish-search
dsh plugin --profile web add ./dsh-tinyfish-search-0.21.0.tgz
dsh plugin --profile web add github:maxwell-feng/dsh-tinyfish-search
--profile <name> goes before add, remove and update. Git installs build lib/ through the package prepare script (tsc -p tsconfig.build.json).
Check the layer with dsh --profile web --dump-config | grep tinyfish. Then start a session and ask a question that needs live information: the result should carry TinyFish URLs and snippets, and the web search settings card should show provider tinyfish with available: true.
Configure
Set the API key (recommended):
export TINYFISH_API_KEY="your_api_key_here" # current shell
echo 'export TINYFISH_API_KEY="your_api_key_here"' >> ~/.bashrc # permanent (bash)
echo 'export TINYFISH_API_KEY="your_api_key_here"' >> ~/.zshrc # permanent (zsh)
source ~/.bashrc # or reopen the terminal
On Windows PowerShell, use setx TINYFISH_API_KEY "your_api_key_here" for new terminals or $env:TINYFISH_API_KEY = "your_api_key_here" for the current session.
Set these fields in your profile cordis.yml or a patch layer:
| Field | Default | Meaning |
|---|---|---|
apiKey |
— | Literal API key (secret; wins over the env var) |
apiKeyEnv |
TINYFISH_API_KEY |
Environment variable carrying the key |
baseURL |
https://api.search.tinyfish.ai |
API endpoint base |
location |
— | Optional geo targeting; blank sends nothing |
language |
— | Optional search language; blank sends nothing |
All fields are optional. See the Configuration Guide for the schema, credential order and readiness rules.
Usage
- The model calls
web_searchas usual. - The harness routes it through
ctx.web→tinyfish→https://api.search.tinyfish.ai. - Results arrive as
WebSearchSource[](url,title,snippet,publishedAt).
available() is a local check the seam uses to pick a provider. ready() decides whether the tool is offered on a model step. With no usable key, web_search is withheld. A dispatched search without a key fails with WEB_PROVIDER_CREDENTIAL_MISSING.
Errors follow the dsh-web seam: WEB_PROVIDER_CREDENTIAL_MISSING when no key is found, WEB_ABORTED on cancellation, WEB_PROVIDER_ERROR otherwise. See the Usage Guide for examples and the error table.
Update
dsh plugin --profile web add dsh-tinyfish-search@latest
The current release is a dependency-only update. See the Update Guide for steps and rollback.
Uninstall
dsh plugin --profile web remove dsh-tinyfish-search
This removes the bundle layer and the tinyfish provider. The web and tool-web rows return to the values shipped by the underlying bundles. Restart the profile to confirm web_search falls back to deepseek-search-api (the 0.2.2 default; deepseek-official on earlier hosts) or to no provider if none is installed.
Development
Maintained with the assistance of dsh-superagent.
pnpm install
pnpm build # tsc -> lib/
pnpm test # node --test, mocked fetch
pnpm typecheck # tsc --noEmit, src + test + scripts
Run node scripts/check-docs-language.ts to check the docs language pairs. Publishing uses npm Trusted Publishing (OIDC) through GitHub Actions; see .github/workflows/publish.yml.
Release notes: CHANGELOG.md or CHANGELOG.zh.md, plus the GitHub Releases page.
License
MIT — see LICENSE.
Links
More in this category
Tencent/BrowserSkill#dsh-plugin-browserskill★ 10384
BrowserSkill bridge for controlling visible Chrome and Edge Agent Windows from DeepSeek Harness, with native browser tools, accessibility and VOM observations, screenshots, owned multi-session control, and a live Web UI overlay.
DDDMUC/dsh-free-search★ 1128
Free, keyless web search for DSH: 7 engines (DuckDuckGo/Bing/SearXNG free + Exa/Perplexity/DeepSeek paid), auto-failover, settings-page UI with API key inputs and official links, web_fetch, and an engine test tool.
omdsh-dev/dsh-browser#packages/browser/bridge-browser★ 1060
Chrome sidebar extension that lets DSH operate your browser directly, no vision capabilities required.
liustack/modsearch★ 981
Web search bridge for text-only agents: ask the web or X, get structured JSON evidence (search, fetch, citations).
Fisfzy/dsh-ego-browser★ 502
Drive a real Chrome/Chromium browser from DeepSeek Harness with 35 structured tools for navigation, snapshots, clicks, forms, JavaScript/CDP, screenshots, downloads and tabs; a live sidebar mirrors the page and accepts mouse and keyboard input. It ships a managed CDP runtime, keeps login state across calls, and can import cookies from your everyday Chrome through a companion extension.
wqty123/dsh-browser★ 183
Shared real browser for DSH: a native Electron window the human can watch and take over, driven by the agent over CDP with 20 browser_* tools (open/snapshot/execute/fill/screenshot/download/auth), per-task session isolation, cookie persistence, CAPTCHA detection; self-hosts on plain dsh web without a desktop shell.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.