Calling GLM-5 reports error 1311 - cc-switch
Quick fix
A provider permissions problem: enable GLM-5 / MiniMax / Kimi access with your provider, or ask them to confirm your subscription entitlements.
Symptom
Section titled “Symptom”调用 GLM-5 报错 1311,提示无权限,请开通 GLM-5、MiniMax、Kimi 权限Calling GLM-5 reports error 1311, saying no permission — please enable GLM-5, MiniMax, and Kimi access
This error comes from upstream provider permission validation: calling GLM-5 returns 1311, saying your current subscription plan does not yet include GLM-5 access and that GLM-5, MiniMax, and Kimi access must be enabled. Maintainers confirmed this is not a cc-switch problem but an account/plan entitlement not enabled on the provider side. A related problem is a Codex batch endpoint failing when the input array exceeds 1000 sub-items; that limit comes from the upstream service API — the session history in a Codex HTTP Responses request makes the input array too long — and has nothing to do with the cc-switch forwarding layer.
Confirm whether the provider account and subscription plan you use has GLM-5 access enabled.
If the plan says GLM-5, MiniMax, and Kimi access must be enabled, enable it in the provider console, or ask provider support to handle it.
Retry calling GLM-5 once the access is enabled.
If what you hit is the Codex batch endpoint 1000-item input array limit, start a new conversation to verify it works. That comes from an upstream service API limit or a long session history — avoid triggering it further in a long session, or switch to an upstream endpoint that supports a longer input.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 3 real issues
- Is error 1311 caused by cc-switch?
- No. Maintainers confirmed this is a provider permissions problem — ask your provider to enable GLM-5, MiniMax, and Kimi access.
- Why does it still say no permission after buying a plan?
- The subscription plan may not include access to that model. Confirm and enable GLM-5 and similar model access on the provider side.
- Is the Codex batch endpoint 1000-item limit added by cc-switch?
- No. There is no hard-coded 1000 limit in the cc-switch code; it comes from the upstream service API. In a long session, Codex sends the session history as an input array, which readily hits the upstream limit.
Related problems
Section titled “Related problems”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.