Skip to content

CC Switch

Developers who use CC Switch to manage several Claude Code or Codex CLI provider configurations.

  • CC Switch and the target coding tool installed
  • A GlideflowAI API key

Create a key in the GlideflowAI dashboard.

  • Claude Code target: https://api.glideflowai.com without /v1
  • Codex CLI target: https://api.glideflowai.com/v1
  • Claude Code example: glm-5.2
  • Codex CLI example: glm-5.2

Copy exact IDs from /models.

For a Claude Code target, write these environment values:

ANTHROPIC_BASE_URL=https://api.glideflowai.com
ANTHROPIC_AUTH_TOKEN=sk-your-key
ANTHROPIC_MODEL=glm-5.2

For a Codex CLI target, CC Switch must produce the same provider block documented in the Codex CLI guide, including top-level model_provider = "glideflowai".

Switch to the saved target, launch that tool, and ask for OK. You can test the key separately:

Terminal window
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}'
  • Claude Code uses the base URL without /v1.
  • Codex CLI requires the top-level model_provider value; any model works.
  • HTTP 503 with 无可用渠道 means the model ID is wrong or unavailable for the key.

Check the generated target file before launching the tool.