ymh0000123/dsh-client-masquerade5

dsh-client-masquerade

DeepSeek Harness plugin: make a custom llm-pi-ai provider route masquerade as Claude Code / Codex by injecting spoofed client-identity headers into its profile settings.

AI Analysis

核心用途是修改请求头以绕过特定网关的客户端身份限制。适合需要将自定义路由伪装为 Claude Code 等官方客户端的用户。必要条件是安装后必须手动应用 User-Agent 补丁。

Package
dsh-client-masquerade
Version
1.0.2
License
MIT
Last updated
Aug 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ymh0000123/dsh-client-masquerade

使用 / Usage

设置页:选择 provider → 点 Claude Code / Codex / Off,或 Test call 验证伪装是否生效。

模型工具 mask_client

mask_client action=list
mask_client action=on provider=agen-openai preset=codex
mask_client action=on provider=agen-openai preset=custom headersJson={"originator":"codex-tui"}
mask_client action=off provider=agen-openai
mask_client action=test provider=agen-openai
  • on 采用合并语义:保留你原有的其他请求头,仅覆盖预设拥有的键;headersJson 可追加/覆盖任意头。
  • off 只删除预设拥有的键,你手工配置的头会保留。
  • test 通过 ctx.llm.stream 真实调用该路由(默认用 provider 的第一个模型,可用 model= 指定),返回 effectiveWireHeaders(线上实际收到的头)、模型首段输出或网关报错。