dsh-header-injection
Run the following command in DeepSeek Harness:
dsh plugin install ZhiGangCai/dsh-header-injection
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install ZhiGangCai/dsh-header-injection in DeepSeek Harness to install this plugin; source is available at https://github.com/ZhiGangCai/dsh-header-injection
About this plugin
When DSH calls third-party inference gateways with its default deepseek-harness User-Agent, WAFs that fingerprint the client will typically reject the request outright. The traditional workaround is a sidecar proxy—an extra process, an extra port, an extra failure mode to debug. dsh-header-injection collapses all of that into a single global fetch patch applied once at startup: every API client created afterwards automatically carries the headers you specify, with no subprocess, no additional port, and no build step.
The core model is multi-rule host-suffix matching with set-semantics override. Each rule pairs a comma-separated list of host suffixes (subdomains match automatically) with a multi-line block of header-name/value pairs. Requests walk the rules in order and the first hit wins; same-named headers are overridden via Headers.set, header names are case-insensitive, headers a rule does not mention are left untouched, and unmatched requests pass through unmodified. The built-in settings panel lets you add, edit, or delete rules visually, and changes take effect immediately without restarting the backend. When the settings service is unavailable, the plugin falls back to environment-variable configuration.
If you run DSH against WAF-protected gateways such as AgentRouter, need per-domain header customization, and would rather not maintain a proxy process, this plugin is the lightest path to getting unblocked.
Use Cases
- Bypass WAF client-fingerprint checks on gateways like AgentRouter
- Inject per-domain User-Agent or custom headers without a proxy
- Replace a sidecar proxy with a single in-process fetch patch
Best For
- Developers connecting DSH to third-party inference gateways
- Teams needing per-domain header control without extra processes
- API users blocked by WAF fingerprint checks
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.