DSH Plugins Marketplace

DSH Plugins

Plugins

/

Models & Providers

/

dsh-x-opencode-session

C

dsh-x-opencode-session

Manifest valid★ 12

DeepSeek Harness plugin: When the model request URL contains opencode.ai, attach the `x-opencode-session` request header, whose value reuses the session id from the request itself (fixed within the same conversation, unchanged across restarts/network interruptions, and different for different conversations).

hasBundlePatch

dsh-x-opencode-session

DeepSeek Harness 插件:当模型调用发往 URL 包含 opencode.ai 的服务(如 OpenCode Go / Zen 网关)时,自动为请求附加请求头 x-opencode-session。

作用

该请求头用于向服务端标识当前会话,值无需任何配置,插件会自动满足:

  • 同一对话内固定 —— 同一对话的所有模型请求携带同一个值;
  • 不同对话互不相同 —— 各对话之间互不干扰;
  • 断开网络或重启后不变 —— 值来自对话自身的持久标识,重启、续聊、断网重连后依然一致。

插件直接复用对话已有的会话标识,不维护任何额外 id、映射或状态,也不影响其他请求:只有发往 opencode.ai 的模型请求会被附加该头,其他提供方与旁路请求不受影响。

安装

从 GitHub 安装:

dsh plugin --profile web add https://github.com/Coco-king/dsh-x-opencode-session.git#v0.1.0

或从 Gitee 安装(国内用户可用;代码由 GitHub 自动镜像同步到 Gitee):

dsh plugin --profile web add https://gitee.com/kkcoco/dsh-x-opencode-session.git#v0.1.0

将 #v0.1.0 换成当前发布版本的 tag 即可锁定版本。

重启 web 服务(或刷新页面 + HMR)后生效。卸载:

dsh plugin --profile web remove dsh-x-opencode-session

开发迭代:修改代码后重新执行 dsh plugin --profile web add <本仓库路径> 即可。

验证

  1. 用 opencode-go 提供方的模型发起对话并正常使用;
  2. 通过抓包或服务端日志确认请求带上了 x-opencode-session 头;
  3. 同一对话中多次请求值一致,另开一个新对话值不同,重启 web 后再发消息值仍与之前一致。

License

MIT

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.1-rc.1: failedDSH 0.2.2-alpha.2: failed

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

From the same category

dsh-our-free-model

by Ebony-Vinyl

在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 Muse Spark 1.3、MiMo V2.6 在内的前沿模型——完全免费,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, Mu

Models & ProvidersManifest valid

★ 56.6k

↓ 12.1k/wk

MIT

JavaScript

Nov 2, 2026

dsh plugin --profile web add dsh-our-free-model

by zouyuxuan122

在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 Muse Spark 1.3、MiMo V2.6 在内的前沿模型——完全免费,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, Mu

Models & ProvidersManifest valid

★ 24.7k

↓ 12.1k/wk

MIT

JavaScript

Oct 5, 2026

dsh plugin --profile web add dsh-our-free-model

by dingminhua

Connect locally signed-in WorkBuddy models to DeepSeek Harness with a read-only credits overview and model management.

Models & ProvidersManifest valid

★ 1k

↓ 33k/wk

MIT

TypeScript

Nov 2, 2026

dsh plugin --profile web add dsh-connect-workbuddy

by Alice-Marx

Model Router and GALGame plugin for DeepSeek Harness

Terminal & ClientsModels & ProvidersManifest valid

★ 626

↓ 1.1k/wk

MIT

JavaScript

Nov 1, 2026

dsh plugin --profile web add @ljwei-stak/dsh-model-router

by FishBottle7

DSH plugin — free OpenCode Zen models for DeepSeek Harness (DSH). Free LLM API, no API key needed. 在 DSH 中使用 OpenCode Zen 免费模型,无需 API key

Models & ProvidersManifest valid

★ 385

MIT

TypeScript

Oct 30, 2026

dsh plugin --profile agent add opencode2dsh

by XDTrees

把你能白嫖的模型额度接进 DSH 同一个池:WorkBuddy 多账号自动容错、十三家扫码登录、76 家免费额度聚合、用量看板、模型路由、本地 OpenAI 网关、积分自动化。

Models & ProvidersManifest valid

★ 385

↓ 1.6k/wk

MIT

TypeScript

Oct 31, 2026

dsh plugin --profile web add dsh-xdpool