Hi — love the project, but I'm hitting a wall with the Z.AI OAuth flow and the free "ZCode Start Plan" trial that comes with a new Z.ai account.
Setup:
Fresh Z.ai account, macOS
Ran zcode login → OAuth completed successfully (Login successful as )
Credentials saved to ~/.zcode/v2/credentials.json (oauth access token + JWT)
What happens:
zcode --prompt "reply exactly: ok" → ProviderBusinessError: captcha verify failed (error code 3007)
The account HAS the trial: balance API shows GLM-5.3: 3,000,000 + GLM-5-Turbo: 2,000,000 (ZCode Start Plan, active, daily reset)
The desktop app can use it fine — I saw no captcha in the desktop app
What I expected:
After OAuth, the CLI would use the session to hit the trial endpoint (https://zcode.z.ai/api/v1/zcode-plan/anthropic) with the trial quota — same as the desktop app
Questions:
Is the free "ZCode Start Plan" trial quota reachable through the CLI at all, or is it desktop-app-only?
The CLI's OAuth flow creates a session, but model calls go to api.z.ai/api/anthropic (the API-key path) instead of zcode.z.ai/api/v1/zcode-plan/anthropic (the trial path). Is there a config to point the CLI at the start-plan endpoint?
Is captcha verify failed (3007) something the CLI is supposed to handle? Is there a way for a human to solve it once (like the desktop app does)?
When I set provider.zai.options.baseURL to https://zcode.z.ai/api/v1/zcode-plan/anthropic with the OAuth JWT as apiKey, I get the same captcha verify failed — am I missing a header/cookie the desktop sends?
Hi — love the project, but I'm hitting a wall with the Z.AI OAuth flow and the free "ZCode Start Plan" trial that comes with a new Z.ai account.
Setup:
Fresh Z.ai account, macOS
Ran zcode login → OAuth completed successfully (Login successful as )
Credentials saved to ~/.zcode/v2/credentials.json (oauth access token + JWT)
What happens:
zcode --prompt "reply exactly: ok" → ProviderBusinessError: captcha verify failed (error code 3007)
The account HAS the trial: balance API shows GLM-5.3: 3,000,000 + GLM-5-Turbo: 2,000,000 (ZCode Start Plan, active, daily reset)
The desktop app can use it fine — I saw no captcha in the desktop app
What I expected:
After OAuth, the CLI would use the session to hit the trial endpoint (https://zcode.z.ai/api/v1/zcode-plan/anthropic) with the trial quota — same as the desktop app
Questions:
Is the free "ZCode Start Plan" trial quota reachable through the CLI at all, or is it desktop-app-only?
The CLI's OAuth flow creates a session, but model calls go to api.z.ai/api/anthropic (the API-key path) instead of zcode.z.ai/api/v1/zcode-plan/anthropic (the trial path). Is there a config to point the CLI at the start-plan endpoint?
Is captcha verify failed (3007) something the CLI is supposed to handle? Is there a way for a human to solve it once (like the desktop app does)?
When I set provider.zai.options.baseURL to https://zcode.z.ai/api/v1/zcode-plan/anthropic with the OAuth JWT as apiKey, I get the same captcha verify failed — am I missing a header/cookie the desktop sends?