Back to directory

dsh-opencode-session-header

Curated pickMaintenance: Active

beihzb/dsh-opencode-session-header

Per-conversation x-opencode-session injection for OpenCode Go in DeepSeek Harness - fixes 400 MissingSessionID without breaking other providers

View on GitHub
$ dsh plugin --profile web add dsh-opencode-session-header

16

stars

0

forks

JavaScript

Language

MIT

License

2026-09-07

Created

2026-09-07

Last push

A DSH header adapter scoped to opencode.ai and its subdomains, with a JSON switch that takes effect on each LLM request.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-10-19

License

MIT

01What can it help you accomplish?

  • Supply stable session headers to OpenCode Go from DSH

    Per-conversation x-opencode-session headers for OpenCode Go

    DSH users connecting to OpenCode Go

02How to install into DeepSeek Harness

Installation steps

  1. 01

    $ dsh plugin --profile web add dsh-opencode-session-header

  2. 02

    Restart dsh web once to load the plugin.

Verify the integration

  • Check the startup log for: [dsh-opencode-session-header] loaded: header=x-opencode-session hosts=opencode.ai fallback=dsh-default

Rollback

  • dsh plugin --profile web remove dsh-opencode-session-header
  • Restart dsh web; optionally delete the switch file.

03DSH integration and capability boundaries

DSH integrationNative runtime

DSH llm/stream observer and fetch middleware

  • Supply stable session headers to OpenCode Go from DSH

    Headers are injected for opencode.ai and subdomains; other hosts pass through. Outside LLM context the fallback is dsh-default.

  • Runtime JSON switch

    Set enabled:false in <DSH_HOME>/plugins/dsh-opencode-session-header.json to disable injection. Missing file or true enables it; changes apply on the next LLM request.

04Who is it for? When not to use it?

Good for

  • DSH users connecting to OpenCode Go

Not for

  • The author verified DSH 0.1.2-rc.1. This depends on global fetch; a future network-stack change can silently stop injection.

05Compatibility, maintenance and safety notes

  • The author verified DSH 0.1.2-rc.1. This depends on global fetch; a future network-stack change can silently stop injection.
2026-09-072026-09-07Not specified by the author

README author claims; not independently tested.

06Frequently asked questions

Does it modify requests to all DSH providers?

No. The default scope is opencode.ai and subdomains; other hosts pass through unchanged.

Must DSH restart when toggling the switch?

Installation requires one restart. Later JSON switch changes are read on every LLM request.

Which DSH version did the author verify?

DSH 0.1.2-rc.1. Global fetch is required; a changed network stack may stop injection.

08Data and sources

github.come471b82Not specified by the author
  • Author-claimedgithub.come471b82a3ef2…

    Per-conversation `x-opencode-session` header injection for **DeepSeek Harness (DSH)** → **OpenCode Go**.

  • Author-claimedgithub.come471b82a3ef2…

    **`llm/stream` waterfall observer**

  • Author-claimedgithub.come471b82a3ef2…

    **Fetch transport middleware**

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-10-19. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

AD

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.