dsh-litellm-extra-headers
Injects an extra_headers field into OpenAI-compatible request bodies to survive LiteLLM relay proxies.
Install
$ dsh plugin --profile web add ./dsh-litellm-extra-headersPlugin Overview & Capabilities
AI-assisted organization based on the public repository snapshot. The content must be grounded in source evidence and does not replace compatibility or security verification.
Key Capabilities
- Patches global fetch during model streaming calls via AsyncLocalStorage
- Merges specified headers into request body extra_headers for /chat/completions
- Supports multiple value modes: session-id, uuid, or fixed literal
- Applies dual-layer filtering requiring both provider and upstream host whitelist match
- Provides debug logging to console and optional debug log file
Useful For
- Maintaining session affinity (e.g., x-opencode-session) when routing DSH model traffic through a LiteLLM proxy
- Passing custom gateway headers that are stripped at the HTTP protocol layer by intermediate proxies
- Integrating OpenAI-compatible upstream gateways that require body-level header definitions
Who It Fits
- DeepSeek Harness developers working behind LiteLLM proxies
- Teams requiring OpenCode session tracking across LLM completions
- Infrastructure engineers running multi-hop gateway architectures for LLM requests
Documented Limitations
- Remains inert if providers or hosts whitelist configurations are empty
- Only modifies POST requests ending with /chat/completions containing JSON string bodies
- Passes through Request object inputs without modification
DSH Compatibility
Version-specific runtime evidence collected by DSH Plugin. A missing result means we have not tested that combination yet.
Security Signals
Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.
package.json declares 0 runtime, 0 development, 0 peer, and 0 optional dependencies.
package.json declares DSH bundle metadata.
GitHub reports the repository license as MIT.
A root package.json was captured and can be inspected by the registry.
Public GitHub source metadata is available for this registry snapshot.
Source & Registry Notes
Public provenance, Registry classification, and the latest source check for this entry, kept separate from runtime verification.
- Source repository
- chenyifawan-cell/dsh-litellm-extra-headers
- Registry source
- GitHub · dsh-plugin topic
- Registry classification
- Plugin
- Source checked
- f9c6ba4 · 2026-10-15
This project is independently indexed from public source information. DSH Plugin is not affiliated with DeepSeek or the plugin author. Always check the author repository before installation.
Repository Activity
- GitHub stars
- 0GitHub stars
- Forks
- 0
- Open issues
- 0
- Last commit
- 2026-10-15
- Last release
- 2026-10-15
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
Mobile adaptation and secure remote/LAN access plugin with Android companion app support for DeepSeek Harness.
View plugin →Compatibility bridge running unmodified Pi ecosystem extensions natively on DeepSeek Harness.
View plugin →Local cross-agent memory and session history recall integration for DeepSeek Harness.
View plugin →Connect instant messaging bots across WeChat, Feishu, DingTalk, QQ, Telegram, Discord, Slack, and WhatsApp to DeepSeek Harness.
View plugin →