Skip to content

GLM Team Plan usage query fails in Claude Code

Quick fix

Upgrade to v3.17.0 or later, then enter the organization ID and project ID in the 「Zhipu GLM Team」 template.

Error output
GLM国内团队版接入后无法获取用量余额
English translation

Unable to retrieve the usage balance after connecting the domestic GLM Team Plan.

The Team Plan usage query differs from the personal plan: the query URL requires `?type=2` and must include the API Key, `bigmodel-organization`, and `bigmodel-project` request headers. The previous preset script followed personal-plan logic and did not distinguish the team context, so the query failed.

The maintainer confirmed this was fixed in v3.17.0: a dedicated team-plan query path was added, along with a 「Zhipu GLM Team」 template in 「Usage Query Script」.

  1. Upgrade cc-switch to v3.17.0 or later.

  2. In 「Usage Query Script」 settings, select the 「Zhipu GLM Team」 template, enter the organization ID and project ID, then verify the usage query again.

ToolClaude Code
Versionv3.16.3(受影响)
PlatformsWindows

This page is distilled from 1 real issues

(No FAQ yet)

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.