genson1808/dsh-web-search-perplexity-account ↗★ 0

dsh-web-search-perplexity

Perplexity web search provider plugin for DeepSeek Harness (full oh-my-pi port: consumer account, Sonar API, OpenRouter, anonymous, browser SSO & OTP login) 适合需要利用Perplexity进行联网搜索和实时信息检索的用户。

패키지
dsh-web-search-perplexity
호환성
미검증
Harness peer 범위
>=0.1
Cordis peer 범위
>=4
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 9. 16.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:genson1808/dsh-web-search-perplexity-account

Configuration

Mounting is automatic; selecting it as the active provider and tuning it happen in the profile's cordis.patch.yml:

- id: web
  config:
    searchProvider: perplexity-account
- id:    # shown in Settings → Plugins → Plugin list
  config:
    sessionToken: !!js process.env.PERPLEXITY_SESSION_TOKEN  # or leave unset and sign in via the authorization UI
    model: experimental          # consumer model_preference; default 'experimental'
    searchRecency: week          # optional: hour|day|week|month|year
    timeoutMs: 60000             # optional
FieldDefaultMeaning
cookies$PERPLEXITY_COOKIESRaw Cookie header from a logged-in perplexity.ai session (highest precedence)
sessionToken$PERPLEXITY_SESSION_TOKENValue of __Secure-next-auth.session-token; falls back to the credential record
apiKey$PERPLEXITY_API_KEYBilled Sonar API key; falls back to the api-key credential record
openRouterKey$OPENROUTER_API_KEYOpenRouter key — routes perplexity/
modelexperimentalConsumer model_preference (Sonar on paid plans)
apiModelsonar-proAPI-mode model
apiMaxTokens8192API-mode max_tokens
apiTemperature0.2API-mode sampling temperature
numSearchResults20API-mode num_search_results
useResponsesApi$PERPLEXITY_RESPONSES=1API-mode transport: Responses API SSE instead of chat/completions
searchRecency(unset)search_recency_filter: hour, day, week, month, year
timeoutMs60000Hard per-request timeout

To sign in interactively, run the harness's login/authorization UI and pick Perplexity (account session) — browser SSO is the default method — or Perplexity (API key) to store a Sonar API key. In the web interface, the plugin appears as Enabled under Settings → Plugins → Plugin list → Global plugins; no card is rendered under Plugin configuration (which requires a client-side browser bundle), so tuning parameters are configured exclusively via the profile patch (cordis.patch.yml) or environment variables.