Setup
- Install the Roo Code extension in VS Code.
- Open Roo Code's settings panel.
- Set API Provider to OpenAI Compatible.
- Fill in:
- Base URL:
https://api.luv13.ai/v1 - API Key: your luv13 key
- Model:
luv13/glm-5.3-flash, or another id from the live list
- Base URL:
- Save and start a task.
Tool calling matters here
Roo Code sends its tools using OpenAI's tools format and expects the model to answer with tool calls. If a model or provider doesn't fully support that, Roo Code shows tool-calling errors. Check Tool Calling on luv13 for which luv13 models are confirmed, and test a short task first. For the idea in general, see Tool Calling.
Model Configuration
Roo Code lets you set max output tokens, context window, image support and prices.
- Prices: luv13 is a flat $0.33 per 1M tokens on every model, input the same as output. See Pricing.
- Context window: luv13 doesn't publish context lengths in its model list, so there's no official number to enter.
Check your settings first
This checks the key, base URL and model with a tool attached, which is close to what Roo Code sends:
curl https://api.luv13.ai/v1/chat/completions \
-H "Authorization: Bearer $LUV13_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "luv13/glm-5.3-flash",
"messages": [{"role": "user", "content": "Read the file README.md."}],
"tools": [{
"type": "function",
"function": {
"name": "read_file",
"description": "Read a file from the workspace.",
"parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}
}
}]
}'If the reply contains tool_calls, the model is using the tool as Roo Code expects.
