DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Opencode — DeepSeek Harness 插件(DSH Plugin)
← Plugins

@viztor/dsh-opencode

Opencode

DeepSeek Harness 上的 OpenCode — 会话亲和性、Zen/Go 网关来源标头,以及 OpenCode 模型的免费层工具回退。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @viztor/dsh-opencode@0.5.1
README兼容性版本

兼容性与来源证明

Opencode 以 @viztor/dsh-opencode 发布,当前版本为 0.5.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/10/1

版本

0.5.1stable
2026/10/1
0.3.4stable
2026/9/30
0.3.2stable
2026/9/30
查看其余 1 个版本收起版本
0.3.0stable
2026/9/30

相关插件

正在加载相关插件…

最新版
0.5.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
46.1 kB
文件数
10
Surface
web
许可证
MIT
发布源
npm
周下载
0
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

README

OpenCode on DeepSeek Harness

Run free OpenCode models — Zen (muse-spark-1.3-contributor-free, space-bunny-free) and Go (deepseek-v4.1-flash) — inside DeepSeek Harness without 403 FreeTierError or 400 MissingSessionID errors.

Why this exists: OpenCode's gateways only serve requests carrying a valid x-opencode-session, and the Zen gateway additionally demands CLI origin proof (User-Agent, client headers, ses_… IDs) plus read/bash tool definitions on free-tier calls. DeepSeek Harness strips the user agent, uses UUID session IDs the gateways reject, and can send tool-less requests — so calls fail. This plugin restores what's needed at the network layer, only for OpenCode traffic (opencode and opencode-go routes, zen/v1 and zen/go/v1 URLs). Everything else (DeepSeek, OpenAI, GitHub, tools) passes through byte-for-byte untouched.

Install

Recommended — from npm:

dsh plugin --profile web add @viztor/dsh-opencode

Or declare it in your profile's package.json:

{
  "dependencies": {
    "@viztor/dsh-opencode": "^0.3.0"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "@viztor/dsh-opencode"
      ]
    }
  }
}

Then run pnpm install in your profile directory.

Configure (no YAML needed)

Open DSH Web → Settings → Plugins → OpenCode Integration, flip toggles, hit Save:

SettingDefaultWhat it does
Inject User-AgentonRestores the OpenCode CLI User-Agent DSH strips
User-Agent OverrideemptyCustom string instead of the canonical CLI one
Inject Origin HeadersonAdds x-opencode-client: cli + x-opencode-project: global
Inject Core ToolsonAdds fallback read/bash schemas to free-tier /responses calls
Providersopencode, opencode-goWhich route IDs get the treatment

The Defaults above live in code (resolveConfig in src/index.ts — e.g. DEFAULT_PROVIDERS, toggles defaulting to on, empty override meaning "use canonical"). cordis.patch.yml pins the same values explicitly so a deployment's effective config reads in one place; the UI clearing a field falls back to the file value, then the code default. Single source of truth stays in code — the file mirrors, never contradicts.

Headless / declarative config

For servers or cordis.patch.yml overlays:

- id: dsh-opencode
  name: "@viztor/dsh-opencode"
  config:
    providers: [opencode, opencode-go]
    injectUserAgent: true
    userAgent: ""
    injectOriginHeaders: true
    injectCoreTools: true
    debug: false

Full option reference (types, debug/debugFile): see cordis.patch.yml header comments.

Troubleshooting

SymptomLikely causeFix
403 FreeTierError on free modelsHeaders stripped or tools missingKeep all three inject toggles on
400 MissingSessionIDNo session header attachedPlugin must be in bundles; check it loaded
Paid/other providers misbehavingShouldn't happen — they're never touchedFile an issue with a redacted log

Compatibility

Last verified: 2026-10-01 — refreshed on every release (see Contributing).

ComponentVerified version
Plugin@viztor/dsh-opencode@0.3.0 (npm + GitHub Packages)
HostDSH Web profile (dsh-profile-web, patchReload: live)
RuntimeNode 24+
Gatewayzen/v1 (/responses + chat completions) and zen/go/v1 (chat completions)
Modelsmuse-spark-1.3-contributor-free, space-bunny-free, deepseek-v4.1-flash (Go)
Checksvp check clean, 44/44 deterministic tests, registry install resolves

Links

  • Contributing — dev setup, conventions, release process
  • Changelog — what changed in each version
  • License — MIT (nobu121 & viztor)

Attribution

Evolved from nobu121/dsh-opencode-session by @nobu121, which pioneered the x-opencode-session approach for OpenCode Go. This project extends it to OpenCode Zen free-tier compatibility, deterministic session hashing, configurable headers, and a Web settings UI.

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Client Ui Git Graph@linxin666/dsh-client-ui-git-graph外部 dsh Web GUI 插件:空会话 Git 分支选择器和 Git 图,包含实际的主机端 Git 操作与防护,作为 dsh 配置文件包Ssh@linxin666/dsh-sshdsh Web GUI 的远程 SSH 操作:主机配置存储(~/.dsh/dsh-ssh.json,可从 ~/.ssh/config 导入)、支持跳板主机的持久化 ssh2 连接池、exec / PTY Web 终端 / SFTP 传输 / 本地端口转发隧道 / 集群执行Update@linxin666/dsh-update用于 dsh Web GUI 的自更新插件:探测 npm 上是否有更新的系列版本,并在原地运行所属配置的 pnpm 更新;可通过设置图标旁侧边栏中的触发器启动,并显示发布说明面板Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件