DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Zcode Persona — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
Z

dsh-zcode-persona

Zcode Persona

Provision an llm-pi-ai provider for the domestic Zhipu GLM Coding Plan endpoint carrying ZCode desktop-client identity headers, so the gateway recognizes the DSH client as ZCode (official 1.5x usage / 67% deduction). No prompt/persona changes. 为 DSH 装配 GLM Coding Plan 的 ZCode 身份请求头 provider(等效 1.5x

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:flashyiyi/dsh-zcode-persona#3b6418224f8b7b25ec04555269ba00ad38c10973
READMECompatibilityVersions

Description

Provision an llm-pi-ai provider for the domestic Zhipu GLM Coding Plan endpoint carrying ZCode desktop-client identity headers, so the gateway recognizes the DSH client as ZCode (official 1.5x usage / 67% deduction). No prompt/persona changes. 为 DSH 装配 GLM Coding Plan 的 ZCode 身份请求头 provider(等效 1.5x 额度),不改动任何提示词。

Compatibility and provenance

Zcode Persona is published as dsh-zcode-persona and currently resolves to version 0.2.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/6/2026

Versions

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

Related plugins

Loading related plugins…

Latest
0.2.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
BSD-3-Clause
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/6/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with the current session provider's today usage on the sidebar entryWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

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