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",