dsh-ocg-session-head

Injects a per-conversation x-opencode-session header for OpenCode Go routes that were registered under a custom provider name, through the host official llm-pi-ai/request-headers waterfall. Zero dependencies, no fetch patching, and it never overwrites a header someone else already set.

Overview

Injects a per-conversation x-opencode-session header for OpenCode Go routes that were registered under a custom provider name, through the host official llm-pi-ai/request-headers waterfall. Zero dependencies, no fetch patching, and it never overwrites a header someone else already set.

Installation

Install from GitHub

dsh plugin --profile web add github:verneuil/dsh-ocg-session-head

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.