From bd5e91ee00cd02d1f4293df2d95af1ceb303ecba Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 1 Oct 2026 23:11:00 +0800 Subject: [PATCH] =?UTF-8?q?zcode:=20stop=20advertising=20ZCode's=20free=20?= =?UTF-8?q?Start=20Plan=20=E2=80=94=20zcode.z.ai=20serves=20it=20only=20to?= =?UTF-8?q?=20requests=20carrying=20the=20official=20ZCode=20client's=20sy?= =?UTF-8?q?stem=20prompt=20and=20answers=20others=20HTTP=20405=20'request?= =?UTF-8?q?=20has=20been=20blocked=20due=20to=20unusual=20activity';=20the?= =?UTF-8?q?=20plugin,=20like=20magpie,=20never=20rewrites=20prompts=20or?= =?UTF-8?q?=20poses=20as=20the=20official=20client,=20so=20the=20plan=20ca?= =?UTF-8?q?n't=20be=20used=20through=20it.=20registry.json's=20summary=20(?= =?UTF-8?q?en/zh),=20the=20root=20README's=20table,=20the=20package's=20de?= =?UTF-8?q?scription=20and=20its=20README=20now=20name=20the=20GLM=20Codin?= =?UTF-8?q?g=20Plan=20and=20team=20seats=20only,=20and=20the=20package=20R?= =?UTF-8?q?EADME=20says=20why=20the=20Start=20Plan=20isn't=20usable.=20Tex?= =?UTF-8?q?t=20only;=20no=20code=20or=20version=20change.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- packages/zcode/README.md | 9 ++++++++- packages/zcode/package.json | 2 +- registry.json | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f1db4e5..68786dd 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ subscription and makes its requests. The packages work in OpenCode and in | [qoder](packages/qoder) | Qoder subscription, with Qoder's device sign-in | `qoder` | | [workbuddy](packages/workbuddy) | WorkBuddy (China build, CodeBuddy plan) | `workbuddy` | | [workbuddy](packages/workbuddy) | WorkBuddy (international build) | `workbuddy-ai` | -| [zcode](packages/zcode) | ZCode: Z.ai / BigModel (智谱) GLM Coding Plan, team seats, Start Plan | `zcode` | +| [zcode](packages/zcode) | ZCode: Z.ai / BigModel (智谱) GLM Coding Plan, team seats | `zcode` | | [zed](packages/zed) | Zed (Pro, Pro Trial, Student, Business): Anthropic, OpenAI, Google and xAI models hosted by Zed | `zed` | ## Use diff --git a/packages/zcode/README.md b/packages/zcode/README.md index 5a7056a..05779d9 100644 --- a/packages/zcode/README.md +++ b/packages/zcode/README.md @@ -16,10 +16,17 @@ over Anthropic's Messages API. Provider id: `zcode`. `open.bigmodel.cn/api/anthropic`. - If the account has no plan of its own, it looks for a seat on a team's plan and uses that team project's `zcode-team-api-key`. - - Failing both, it uses ZCode's free **Start Plan**, served by zcode.z.ai + - Failing both, it tries ZCode's free **Start Plan**, served by zcode.z.ai with ZCode's session token and ZCode's own headers. - The Start Plan's token can't be refreshed. When it runs out, sign in again. + +> **ZCode's free Start Plan (and its trial) can't be used through this +> plugin.** zcode.z.ai only serves that plan to requests carrying the +> official ZCode client's own system prompt, and refuses others with +> HTTP 405 "request has been blocked due to unusual activity". The plugin +> (like magpie) never rewrites prompts or poses as the official client, so +> a GLM Coding Plan — your own or a team seat — is needed. - **ZCode app's sign-in** - Uses the account the ZCode app on this computer is signed in to. For every request it reads ZCode's own credentials (`~/.zcode/v2`), so it diff --git a/packages/zcode/package.json b/packages/zcode/package.json index e47e586..5eeb769 100644 --- a/packages/zcode/package.json +++ b/packages/zcode/package.json @@ -1,7 +1,7 @@ { "name": "@magpie-community/opencode-zcode-auth", "version": "0.1.6", - "description": "OpenCode provider plugin: signs in to Z.ai's or BigModel's (智谱) GLM Coding Plan as ZCode does, including team seats and ZCode's Start Plan", + "description": "OpenCode provider plugin: signs in to Z.ai's or BigModel's (智谱) GLM Coding Plan as ZCode does, including team seats", "type": "module", "main": "./index.mjs", "exports": "./index.mjs", diff --git a/registry.json b/registry.json index 588a771..d3d6fa1 100644 --- a/registry.json +++ b/registry.json @@ -2,7 +2,7 @@ "version": 1, "plugins": [ { "package": "@magpie-community/opencode-zcode-auth", "name": "ZCode", "icon": "zcode", "providers": ["zcode"], "community": true, "replaces": "zcode", - "summary": { "en": "Z.ai and BigModel GLM Coding Plan, team seats and ZCode's free Start Plan.", "zh": "Z.ai 与智谱 GLM Coding Plan,支持团队席位和 ZCode 免费 Start Plan。" } }, + "summary": { "en": "Z.ai and BigModel GLM Coding Plan, with team seats.", "zh": "Z.ai 与智谱 GLM Coding Plan,支持团队席位。" } }, { "package": "@magpie-community/opencode-qoder-auth", "name": "Qoder", "icon": "qoder", "providers": ["qoder"], "community": true, "replaces": "qoder", "summary": { "en": "Your Qoder subscription, with Qoder's own device sign-in.", "zh": "用 Qoder 自己的设备登录使用 Qoder 订阅。" } }, { "package": "@magpie-community/opencode-devin-auth", "name": "Devin", "icon": "devin", "providers": ["devin"], "community": true, "replaces": "devin",