lordraiden/dsh-9router-web-search ↗★ 1

dsh-9router-web-search

9router-backed web search + fetch providers for DeepSeek Harness (ctx.web). Wires the native web_search/web_fetch tools to 9router's /v1/search and /v1/web/fetch endpoints. 适合需要增强联网搜索能力的用户,将原生搜索工具桥接到9router。

パッケージ
dsh-9router-web-search
互換性
未検証
Harness ピア範囲
>=0.1.7-rc.1 <0.3.0
バージョン
0.2.3
ライセンス
MIT
最終更新
2026/09/30

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lordraiden/dsh-9router-web-search

ドキュメント

README 全文を読む ↗

🛠️ Configuration

KeyTypeDefaultDescription
baseURLstring—Base URL of your 9router-compatible API (http/https only); resolved as explicit setting → NINE_ROUTER_BASE_URL env → absent (provider unavailable)
searchModelstringsearch-comboModel name for the search endpoint
fetchModelstringfetch-comboModel name for the fetch endpoint
searchTypestringwebsearch_type sent to the search endpoint
defaultMaxResultsnumber8Source cap used only when a search request does not specify maxResults (the DSH seam enforces the per-operation limit)
timeoutMsnumber30000Shared per-request timeout (per-capability defaults)
searchTimeoutMsnumber30000Search-only timeout; blank follows timeoutMs
fetchTimeoutMsnumber30000Fetch-only timeout; blank follows timeoutMs
fetchFormatstringmarkdownBody format requested from the fetch endpoint (markdown, text, html)
maxCharactersnumber50000Character cap for fetched bodies; sent to the gateway and enforced locally
apiKeysecret—Literal API key (optional; no key = no Authorization header)
apiKeyEnvcredential-refNINE_ROUTER_API_KEYCredentials-service key name

Self-hosted 9router picks its search and fetch backends from its own provider configuration and ignores searchModel/fetchModel; keep those fields set for cloud gateways that route by model.

Endpoint precedence — an explicit baseURL setting wins over the NINE_ROUTER_BASE_URL environment value; with neither set, no endpoint exists and the providers report themselves unavailable. There is no silent fallback to a repository-chosen remote. The schema rejects non-http(s) URLs, empty model/format strings, and non-positive numeric limits before any request is made.

Credentials — NINE_ROUTER_API_KEY is resolved through DSH's credentials service; a literal apiKey is optional and wins when set. apiKeyEnv is a reference name in the credentials service, not a key. The secret is write-only in the settings UI, is never stored in git, and never appears in logs, diagnostics, or error messages.