dsh-llm-headers
Inject custom HTTP headers (user-agent etc.) into DeepSeek Harness LLM provider requests, configured through cordis.yml or the Web UI settings surface. 核心用途是自定义 LLM 请求的 HTTP 头部。适合需要绕过特定 API 限制、标识客户端身份或进行网络调试的用户。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:QiE2035/dsh-llm-headersREADME
Read the full README ↗配置
- id: llm-headers
name: dsh-llm-headers
config:
headers:
user-agent: opencode/1.0
urlPatterns:
- /chat/completions
| 字段 | 类型 | 默认 | 说明 |
|---|---|---|---|
headers | Record | {} | 注入的请求头;同名覆盖,空表示不注入 |
urlPatterns | string[] | ['/chat/completions'] | URL 子串匹配规则,命中任一项即注入 |
通过 Web UI 配置
安装到含 Web 界面的 profile 后:
- 打开 Web UI → Settings(设置)页面;
- 「插件」→「插件配置」应看到本插件的 LLM 请求头卡片(服务端注册已就绪);
- 填写
headers与urlPatterns保存,写入 user-settings 文档并实时生效(applies: live)。
UI 保存的值优先级高于 cordis.yml 中的 config(作为 base 层)。
通过 settings.yaml 配置(备用)
llm-headers:
headers:
user-agent: opencode/1.0
urlPatterns:
- /chat/completions
保存即热重载(applies: live),无需重启。
通过 Web UI 配置
安装到含 Web 界面的 profile 后:
- 打开 Web UI → Settings(设置)页面;
- 「插件」→「插件配置」应看到本插件的 LLM 请求头卡片(服务端注册已就绪);
- 填写
headers与urlPatterns保存,写入 user-settings 文档并实时生效(applies: live)。
UI 保存的值优先级高于 cordis.yml 中的 config(作为 base 层)。
通过 settings.yaml 配置(备用)
llm-headers:
headers:
user-agent: opencode/1.0
urlPatterns:
- /chat/completions
保存即热重载(applies: live),无需重启。