Roo Code is an open-source AI coding agent for VS Code with first-class support for OpenAI-compatible providers. Because every model sits behind the same request format, you can run the whole Chinese model lineup — GLM-5.2, DeepSeek, Kimi — from a single Turiloop key and switch per task.
The setup
In the Roo Code settings panel, choose your API Provider and fill in the fields:
- API Provider: OpenAI Compatible
- Base URL:
https://api.turiloop.com/v1 - API Key: your Turiloop key
- Model:
glm-5.2(ordeepseek-v4-pro,deepseek-v4-flash)
One requirement worth noting: Roo Code's agent actions need native tool calling, and GLM-5.2 plus the DeepSeek V4 line all support it.
The routing habit that saves money
The point of a unified provider is that switching models is one dropdown, not a rewrite. A practical setup for Roo Code:
- Default to `deepseek-v4-flash` for routine edits, boilerplate and quick questions — it is priced at a fraction of a cent per thousand tokens.
- Switch to `glm-5.2` for real feature work and multi-file refactors (1M context, 62.1 on SWE-bench Pro).
- Reach for `deepseek-v4-pro` on the occasional hard algorithm (top LiveCodeBench score).
Sending the bulk of your traffic to Flash and only escalating the hard prompts is how teams cut their bill by an order of magnitude. The pricing breakdown has the numbers.
Why Turiloop
Turiloop is an OpenAI-compatible API gateway that gives you one key for GLM-5.2, DeepSeek, Kimi and MiniMax, billed pay-as-you-go with an international card and no Chinese phone number. Same base URL for every model, so Roo Code's model dropdown becomes your router. More in one key, every model.
FAQ
Does Roo Code work with DeepSeek and GLM? Yes — set API Provider to OpenAI Compatible, Base URL to https://api.turiloop.com/v1, and pick the model id (deepseek-v4-pro, glm-5.2, etc.).
Roo Code shows "Model Not Found". Use a valid, lowercase model id and confirm the Base URL ends in /v1.
Which model is best for Roo Code agents? GLM-5.2 is the strongest all-round default; use DeepSeek V4-Flash for cheap high-volume work and V4-Pro for hard algorithmic tasks. See the model-by-model guide.
Get a key on Turiloop and paste it into Roo Code's OpenAI-Compatible provider.