Asaiuta/dsh-custom-header
Asaiuta★ 0TypeScript最后同步: 2026-08-15
—
README 摘要
dsh-custom-header Outbound LLM request header modification for DeepSeek Harness (DSH). Operates at the fetch transport layer — one layer below the LLM SDK — and modifies the HTTP headers of outgoing provider requests: - injects client-identity headers ( User-Agent , Originator , X-Claude-Code-Session-Id , x-opencode- , …) from a set of presets that mirror real Codex / Claude Code / opencode clients - strips SDK runtime fingerprint headers ( X-Stainless- ) - rewrites request URLs (path matching + appendQuery ) - patches Anthropic Messages request bodies (identity / billing system block + metadata.user id ) All of it is scoped by an explicit host allowlist ( autoHosts ) — nothing outside the allowlist is ever touched; the default auto profile with an empty allowlist sends every request through untouched. For servers you administer or are authorized to use. Cloudflare TLS/Bot edge blocks need a different API entry, an admin allowlist, or a local forward proxy — see the troubleshooting section in the Chinese README. How it works DSH has no per-request header hook, so every modification lands at the fetch transport layer , sharing one middleware pipeline ( Symbol.for("dsh-custom-header.…
在 GitHub 查看完整 README →