--custom-api-key is optional in non-interactive mode. If omitted, onboarding checks CUSTOM_API_KEY.Non-interactive Z.AI endpoint choices:Note: --auth-choice zai-api-key now auto-detects the best Z.AI endpoint for your key (prefers the general API with zai/glm-5).
If you specifically want the GLM Coding Plan endpoints, pick zai-coding-global or zai-coding-cn.