Skip to content

Aider

Terminal-first developers who use Aider for repository edits and coding tasks.

  • Aider 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.

Terminal window
export OPENAI_API_BASE="https://api.glideflowai.com/v1"
export OPENAI_API_KEY="sk-your-key"
aider --model openai/glm-5.2

Launch Aider with the command above and ask it to explain one file. You can isolate API issues 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}'
  • Missing openai/ before the model ID causes model resolution to fail.
  • Give reasoning models at least 512 output tokens when configuring limits.
  • HTTP 503 with 无可用渠道 means the model ID is wrong or unavailable for the key.