Skip to content

Roo Code

VS Code users who want Roo Code connected to a custom OpenAI-compatible model.

  • Roo Code installed
  • A GlideflowAI API key

Create a key in the GlideflowAI dashboard.

Use https://api.glideflowai.com/v1.

Start with glm-5.2. Copy exact IDs from /models.

Provider : OpenAI Compatible
Base URL : https://api.glideflowai.com/v1
API Key : sk-your-key
Model ID : glm-5.2

Send a short prompt in Roo Code, or isolate the API connection with:

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}'
  • Reasoning models need at least 512 output tokens for a useful first test.
  • HTTP 503 with 无可用渠道 means the model ID is wrong or unavailable for the key.

Roo Code UI labels can vary between versions.