Skip to main content
Velqa

Use MiniMax M3 with Roo Code — velqa.dev

Roo Code is a fork of Cline with advanced mode profiles (Code, Architect, Ask, Debug). It is configured the same way for an OpenAI-compatible provider.

Prerequisites

Configuration

  1. Open Roo Code in the VS Code sidebar
  2. Click the Settings icon (gear)
  3. Under API Provider, select OpenAI Compatible
  4. Fill in the fields:
FieldValue
Base URLhttps://api.velqa.dev/v1
API Keysk-...
Model IDminimax-m3
Context Window Size131072
Max Output Tokens16384
  1. Click Save

Context window and output (important)

Fill in Context Window Size and Max Output Tokens in the OpenAI Compatible provider's advanced settings. They tell Roo Code when to compact the context. Without them, a long agentic session lets the context grow unbounded and eventually triggers Trop de tokens demandes. Reessaie plus tard., while burning through your quota faster.

Values per model:

Model IDContext Window SizeMax Output Tokens
minimax-m313107216384
hy326214416384
glm-4.7-flash20000016384
deepseek-v4-flash655368192

Available models

Model IDRoo Code use case
minimax-m3Code mode — generation and refactoring
glm-4.7-flashAsk mode — quick questions, documentation
deepseek-v4-flashHigh-volume, economical

Tool calling compatibility

Roo Code requires OpenAI native tool calling. MiniMax M3 supports this format. Do not configure an XML fallback — it is not supported by Roo Code.

Test

Run a simple task in Ask mode: What is in this folder?. A response with no error confirms that the velqa.dev gateway is responding correctly.

Troubleshooting

  • `401 Unauthorized`: incorrect or missing API key
  • `Model not found`: check the exact identifier at velqa.dev/models
  • No tool calling: check that the Model ID matches exactly a model that supports tools, such as minimax-m3