← DeepSeek Harness Plugins
DeepSeek Harness PluginManifest Valid

dsh-litellm-extra-headers

Injects an extra_headers field into OpenAI-compatible request bodies to survive LiteLLM relay proxies.

Developer Tools
0GitHub Stars0ForksUpdated2026-10-15

Install

$ dsh plugin --profile web add ./dsh-litellm-extra-headers

Plugin 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.

source-grounded
dsh-litellm-extra-headers is a DeepSeek Harness host plugin designed to solve header dropping issues caused by LiteLLM reverse proxies. When forwarding requests through LiteLLM to upstreams requiring custom session headers (such as x-opencode-session), standard HTTP headers are stripped. This plugin intercepts outbound chat completions requests to whitelisted hosts and providers, merging designated session headers into the request body's extra_headers payload.

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.

Not tested yetNo runtime compatibility tests have been published yet.

Security Signals

Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.

Dependency Counts

package.json declares 0 runtime, 0 development, 0 peer, and 0 optional dependencies.

info
Dsh Bundle Declared

package.json declares DSH bundle metadata.

info
License Declared

GitHub reports the repository license as MIT.

info
Package Manifest Available

A root package.json was captured and can be inspected by the registry.

info
Source Available

Public GitHub source metadata is available for this registry snapshot.

info

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
For maintainers

Maintaining this plugin?

This listing is generated from public repository data. If you maintain this project, you can review the information and share this listing with your users if you find it useful.

Add to README
Listed on DSHPlugin.app