cyijun/dsh-surfing-plugin ↗★ 15

dsh-surfing-plugin

为DSH提供SearXNG搜索与Crawl4AI抓取服务,可配置端点与鉴权。 适合需自建搜索与网页抓取能力的用户;需先部署SearXNG和Crawl4AI服务。

套件
dsh-surfing-plugin
相容性
待驗證
Harness 依賴範圍
^0.1.0-rc.6
Cordis 依賴範圍
^4.0.1
版本
0.1.0
授權
MIT
最近更新
2026年8月14日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cyijun/dsh-surfing-plugin

Configuration

Explicit configuration wins over environment values. Override this plugin's row in $DSH_HOME/profiles/web/cordis.patch.yml:

- id: surfing-plugin
  config:
    searxng:
      url: https://search.example.com
      apiKeyEnv: MY_SEARXNG_KEY
      authHeader: X-API-Key
      authScheme: ''
      language: en
      categories: general,news
      safeSearch: 1
      timeRange: month
    crawl4ai:
      url: https://crawl.example.com
      apiKeyEnv: CRAWL4AI_API_TOKEN
      authHeader: Authorization
      authScheme: Bearer
      markdownMode: raw
      maxContentChars: 100000
FieldEnvironment or defaultMeaning
searxng.urlSEARXNG_URLService root or /search endpoint
searxng.apiKeynoneOptional literal key
searxng.apiKeyEnvSEARXNG_API_KEYEnvironment variable containing the optional key
searxng.authHeaderAuthorizationAuthentication header
searxng.authSchemeBearerAuthentication prefix; empty sends the key directly
searxng.languageserver defaultSearXNG language parameter
searxng.categoriesserver defaultComma-separated categories parameter
searxng.safeSearchserver default0, 1, or 2
searxng.timeRangenoneday, month, or year
crawl4ai.urlCRAWL4AI_URLService root or /crawl endpoint
crawl4ai.apiKeynoneOptional literal key
crawl4ai.apiKeyEnvCRAWL4AI_API_TOKENEnvironment variable containing the optional key
crawl4ai.authHeaderAuthorizationAuthentication header
crawl4ai.authSchemeBearerAuthentication prefix; empty sends the key directly
crawl4ai.markdownModerawPrefer raw, fit, or citations markdown
crawl4ai.maxContentChars100000Provider content cap before returning to DSH

A literal apiKey takes precedence over the environment variable named by apiKeyEnv. No authentication header is sent when no key is available.