一个 DeepSeek Harness(DSH)插件,为 LLM provider 请求注入动态/随机的 HTTP 请求头。DSH 的 pi-ai provider 只支持静态 headers 字符串,无法表达动态值;本插件通过包装 globalThis.fetch,按 urlPatterns 匹配请求并注入 ${uuid} 等模板值(每个 DSH 进程铸造唯一且在进程内稳定的会话 id),解决 opencode-go 网关对 x-opencode-session 头的要求(缺失会返回 400 Model is unavailable)。零默认、卸载安全、日志自动脱敏凭据。
What it does
一个 DeepSeek Harness(DSH)插件,为 LLM provider 请求注入动态/随机的 HTTP 请求头。DSH 的 pi-ai provider 只支持静态 headers 字符串,无法表达动态值;本插件通过包装 globalThis.fetch,按 urlPatterns 匹配请求并注入 ${uuid} 等模板值(每个 DSH 进程铸造唯一且在进程内稳定的会话 id),解决 opencode-go 网关对 x-opencode-session 头的要求(缺失会返回 400 Model is unavailable)。零默认、卸载安全、日志自动脱敏凭据。
Installation
dsh plugin --profile web add github:MX1syk/dsh-x-opencode-sessionInstall method: GitHub · no verification record (L1-L5)
Verification & Compatibility
No verification record yet for this plugin.
- • Node.js: not stated
- • DSH: not stated
- • External credentials: none detected
Author badges
Embed the official badges in your README to showcase security & install-test status:
`[](https://www.dsh.so/artifact/dsh-x-opencode-session-2/)``[](https://www.dsh.so/artifact/dsh-x-opencode-session-2/)`Security Report
Automated static scan, not manual review.
No security scan record for this plugin yet. Newly indexed plugins are scanned by the daily pipeline.
——d30f26feac07The scan result is valid for the scanned commit. New commits within 7 days are tolerated (the rating still counts); after 7 days without a rescan the badge shows outdated.
Disclaimer: automated static analysis, not a security guarantee. Always review what you install.
Risk details
• Static heuristic scan: pending
• Dependency vulnerabilities: —
• Hardcoded secrets: —
• Supply chain risks: —
Activity
Last commit 2026-09-09 · activity: Active
• Repo created: 2026-09-09
• Stars: ★ 0 · Forks: 0
• Health: Active — committed within last 30 days
Source
Author README
View on GitHub ↗The author's original README.md from the repository — fetched live, unedited.
