CC Switch
Who it’s for
Section titled “Who it’s for”Developers who use CC Switch to manage several Claude Code or Codex CLI provider configurations.
Prerequisites
Section titled “Prerequisites”- CC Switch and the target coding tool installed
- A GlideflowAI API key
Get your API key
Section titled “Get your API key”Create a key in the GlideflowAI dashboard.
Base URL
Section titled “Base URL”- Claude Code target:
https://api.glideflowai.comwithout/v1 - Codex CLI target:
https://api.glideflowai.com/v1
Model ID
Section titled “Model ID”- Claude Code example:
glm-5.2 - Codex CLI example:
glm-5.2
Copy exact IDs from /models.
Minimal working config
Section titled “Minimal working config”For a Claude Code target, write these environment values:
ANTHROPIC_BASE_URL=https://api.glideflowai.comANTHROPIC_AUTH_TOKEN=sk-your-keyANTHROPIC_MODEL=glm-5.2For a Codex CLI target, CC Switch must produce the same provider block documented in the Codex CLI guide, including top-level model_provider = "glideflowai".
Test it
Section titled “Test it”Switch to the saved target, launch that tool, and ask for OK. You can test the key separately:
curl https://api.glideflowai.com/v1/chat/completions \ -H "Authorization: Bearer sk-your-key" \ -H "Content-Type: application/json" \ -d '{"model":"glm-5.2","messages":[{"role":"user","content":"Say OK"}],"max_tokens":512}'Common errors
Section titled “Common errors”- Claude Code uses the base URL without
/v1. - Codex CLI requires the top-level
model_providervalue; any model works. - HTTP 503 with
无可用渠道means the model ID is wrong or unavailable for the key.
Notes / limitations
Section titled “Notes / limitations”Check the generated target file before launching the tool.