DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Zcode Persona — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
Z

dsh-zcode-persona

Zcode Persona

为国内 Zhipu GLM Coding Plan 端点配置 llm-pi-ai provider,携带 ZCode 桌面客户端身份请求头,使网关将 DSH 客户端识别为 ZCode(官方 1.5 倍用量 / 扣除 67%)。不修改提示词或 persona。为 DSH 装配 GLM Coding Plan 的 ZCode 身份请求头 provider(等效 1.5 倍额度),不改动任何提示词。为 DSH 装配 GLM Coding Plan 的 ZCode 身份请求头 provider(等效 1.5 倍

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

npx -y @deepseek-ai/dsh plugin --profile web add github:flashyiyi/dsh-zcode-persona#3b6418224f8b7b25ec04555269ba00ad38c10973
README兼容性版本

说明

为国内 Zhipu GLM Coding Plan 端点配置 llm-pi-ai provider,携带 ZCode 桌面客户端身份请求头,使网关将 DSH 客户端识别为 ZCode(官方 1.5 倍用量 / 扣除 67%)。不修改提示词或 persona。为 DSH 装配 GLM Coding Plan 的 ZCode 身份请求头 provider(等效 1.5 倍额度),不改动任何提示词。

兼容性与来源证明

Zcode Persona 以 dsh-zcode-persona 发布,当前版本为 0.2.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/6

版本

0.2.0stable
2026/9/6
0.1.0stable
2026/9/5

相关插件

正在加载相关插件…

最新版
0.2.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
BSD-3-Clause
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/6
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。

README

dsh-zcode-persona

Provisions a ZCode-identity GLM Coding Plan channel for DeepSeek Harness so the Zhipu gateway recognizes the DSH client as ZCode, activating the official limited-time perk: equivalent model calls deduct only 67% of quota (i.e. 1.5× usable quota). No prompt/persona changes (the server-side check only looks at request characteristics, not the system prompt).

English | 简体中文

Mechanism & evidence

Zhipu's docs (docs.bigmodel.cn → GLM Coding Plan → ZCode) state that GLM Coding Plan users signed in via ZCode enjoy an all-day 1.5× usage allowance (67% deduction). The check happens server-side on HTTP request characteristics. Field-level evidence for the identity headers:

  • TriDefender/zcode-api: src/proxy/identity.ts mirrors the ZCode bundle's pio field-for-field (refreshed 2026-08-07); the README says "it's all about the 1.5x usage on frontier models";
  • LINUX DO t/2531858: reusing ZCode request headers in another client, the perk applied.

After ready, this plugin idempotently writes one provider into the llm-pi-ai settings namespace via the ctx.settings seam (default key zai-coding-cn, pointing at the domestic endpoint https://open.bigmodel.cn/api/coding/paas/v4), with requests carrying the full ZCode identity header set: HTTP-Referer, X-ZCode-App-Version (default 3.11.2), X-Title: Z Code@cli, X-ZCode-Agent: glm, X-Platform, X-Release-Channel: production, X-Client-Language, X-Client-Timezone, X-Os-Category, X-Os-Version, X-Device-Mid (stable host-fingerprint-derived UUID). The write is a path-level mutate — only the provider key is added; existing providers (doubao, opencode-go, …) are never touched. The write passes through llm-pi-ai's own schema and serviceability validation; a refusal leaves existing routes untouched. pi-ai ships the zai-coding-cn catalog (thinkingFormat: zai wire compatibility is inherited); models missing from the catalog (glm-5.3, glm-5.3-flash) are declared with full specs.

Known boundary: DSH enforces product-attribution User-Agent (dsh-llm attributionHeaders); llm-pi-ai strips user-agent from profile headers and substitutes the harness UA. So User-Agent: ZCode/… cannot be delivered via configuration; every other ZCode-specific header passes through. Whether the gateway fingerprint accepts this needs a live check; if not, a local reverse proxy restoring the UA is required (not built into this plugin).

Configuration (reload the plugin after changing)

KeyDefaultMeaning
codingPlan.enabledtrueProvisioning master switch.
codingPlan.providerKeyzai-coding-cnllm-pi-ai providers dict key (route id).
codingPlan.apiKeyEnvGLM_CODING_API_KEYEnv-var reference for the Coding Plan API key.
codingPlan.displayNameGLM Coding Plan (ZCode)Name shown in the model settings UI.
codingPlan.appVersion3.11.2X-ZCode-App-Version; update to the real client after upgrading ZCode.
codingPlan.sourceTitlecliX-Title: Z Code@{sourceTitle}.
codingPlan.deviceMid''X-Device-Mid; empty derives a stable host-fingerprint UUID.
codingPlan.baseURLhttps://open.bigmodel.cn/api/coding/paas/v4Domestic Zhipu Coding Plan OpenAI-compatible endpoint.
codingPlan.modelsDEFAULT_MODELS in sourceModel list served by this route (replaces the catalog).

Usage & verification

⚠️ If the plan is currently at its 5-hour cycle quota limit, wait for the cycle to reset before firing observable billing requests (official: quota refreshes 5 hours after consumption).

  1. After provisioning, pick glm-5.3 / glm-5.2 etc. under the GLM Coding Plan (ZCode) provider in Settings → Models;
  2. Set the env var GLM_CODING_API_KEY=<your Coding Plan API key> (generated on the Zhipu open platform Coding Plan page; requires an active GLM Coding Plan / bigmodel subscription);
  3. After the quota resets, fire some real requests and check usage: quota should be deducted at 67% (equivalent 1.5×). If it deducts at 100%, the gateway fingerprint checks more than these headers (e.g. User-Agent), and a local reverse proxy restoring the full UA is required.

⚠️ Zhipu enforces risk controls on plan usage (shared accounts and abnormal clients may trigger verification, throttling, or bans — see LINUX DO discussions). Personal use, low concurrency, and a genuine Coding Plan subscription are the baseline.

Compliance

Intended for behavior customization of your own subscription, research, and testing. Impersonating ZCode or any other brand to serve others or to bypass upstream service restrictions is at your own risk; please honor Zhipu's terms of service.

Build

DSH_CHECKOUT=<checkout> bash scripts/build.sh