Agent guide · rapid-mlx 0.10.3 · ← Back to README

Qwen Code

QwenLM/qwen-code is Alibaba's coding CLI, tuned for the Qwen 3 tool format. It speaks the plain OpenAI wire via its openaiCompatible settings block, so a JSON file with three fields is all you need.

Wire: /v1/chat/completions · Setup: rapid-mlx agents qwen-code --setup · Matrix cell: ✅ ✅ XFAIL(arch) ✅ (DeepSeek R1-Distill — see XFAIL arch).

Install

$ npm install -g @qwenlm/qwen-code

Config

One-shot: rapid-mlx agents qwen-code --setup writes ~/.qwen/settings.json. By hand, the exact JSON rapid-mlx 0.10.3 emits:

// ~/.qwen/settings.json
{
  "openaiCompatible": {
    "baseUrl": "http://localhost:8000/v1",
    "apiKey": "not-needed",
    "model": "default"
  }
}

Run

$ rapid-mlx serve qwen3-coder-30b-4bit \
    --tool-call-parser hermes --enable-auto-tool-choice
$ qwen-code

Recommended aliases (per rapid-mlx agents qwen-code): qwen3-coder-30b-4bit, qwen3.6-35b-4bit, qwen3.6-27b-4bit, qwen3.5-9b-4bit.

Gotchas

Empirical

The qwen-code row of the integration matrix is ✅ on Qwen 3.6, Gemma 4, and gpt-oss; DeepSeek R1-Distill XFAIL(arch). Source of truth for this page: TestQwenCode + rapid-mlx agents qwen-code.

See also