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.
/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
-
/v1suffix is hardcoded. qwen-code appends no prefix — setbaseUrltohttp://localhost:8000/v1, not the bare root. -
Older releases (< 1.2) stripped
chat_template_kwargs. Upgrade if you see<think>traces leaking intocontenton Qwen 3.6.
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.