dsh-custom-header
Run the following command in DeepSeek Harness:
dsh plugin install Asaiuta/dsh-custom-header
Paste the following prompt into your AI chat to install this plugin:
In the DeepSeek Harness terminal, run dsh plugin install Asaiuta/dsh-custom-header to install the plugin; the source code is hosted at https://github.com/Asaiuta/dsh-custom-header.
About this plugin
DeepSeek Harness does not expose a per-request header hook, yet controlling outbound HTTP headers is often essential when you need to present a specific client identity—Codex, Claude Code, opencode—to an LLM provider. dsh-custom-header sits at the fetch transport layer, one layer below the LLM SDK, and inserts a shared middleware pipeline so every outgoing provider request can be shaped without touching upper-level logic.
The plugin ships nine preset profiles that faithfully replicate the exact header sets of real Codex desktop, CLI, TUI, Claude Code plugin, pi agent, and opencode clients. Beyond header injection it strips X-Stainless SDK fingerprint headers, rewrites request URLs via path matching and appendQuery, and patches Anthropic Messages request bodies with identity or billing system blocks. Every modification is gated by an explicit host allowlist, and the safe default (auto profile with an empty allowlist) passes all requests through completely untouched. Per-conversation session scoping uses AsyncLocalStorage so that x-opencode-session and X-Claude-Code-Session-Id stay isolated even when multiple agents run concurrently in a single process.
This plugin is designed for administrators or authorized users of a DSH gateway who need to present provider-specific client identities, remove SDK fingerprints to pass edge checks, or restructure Anthropic request payloads for billing and session policies. If you simply call DSH without header-level concerns, leave the defaults and the plugin is effectively invisible. When a 403 response appears, the stream observer logs a clear distinction between Cloudflare HTML interstitials and JSON rejection responses, making root-cause identification straightforward.
Use Cases
- Present Codex, Claude Code, or opencode client identities to LLM providers to pass edge validation
- Strip X-Stainless and other SDK fingerprint headers to avoid detection as automated traffic
- Patch Anthropic Messages request bodies to inject identity or billing system blocks for billing and session policies
Best For
- Operations staff who manage or are authorized to use a DSH gateway
- Developers who need to spoof specific client identities in outbound requests
- Users hitting 403 or bot-detection blocks who need to adjust header strategies
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.