dsh-header-masq
DeepSeek Harness 0.2.1-rc.2 plugin that exposes a stable per-session id as x-opencode-session (and other harness headers), including custom pi-ai providers.
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Deliay/dsh-header-masqREADME
Read the full README ↗配置
配置位于插件插入的行 header-masq(见 cordis.patch.yml),全部可选:
| 键 | 默认值 | 说明 |
|---|---|---|
source | x-deepseek-harness-session-id | 没有活动 sessionId 时读取的请求头 |
targets | [x-opencode-session] | 要写入的请求头列表 |
fallbackToSessionId | true | 使用 llm/stream 的 sessionId 作为固定规范值 |
hosts | [] | 可选的目标主机白名单;空表示所有主机 |
debug | false | 每次应用映射时写一条 info 日志 |
例如只对 OpenCode Go 主机生效,并同时写多个头:
- insert:
- id: header-masq
name: dsh-header-masq
config:
source: x-deepseek-harness-session-id
targets:
- x-opencode-session
- x-session-affinity
fallbackToSessionId: true
hosts:
- opencode.ai
debug: true