I.
Wiki article
Reading · 1 mindocs/agent-mux/reference/agents/qwen
Qwen Code reference
@qwen-code/qwen-code(https://github.com/QwenLM/qwen-code) is Alibaba's
Continue reading
Nearby pages in the same section.
Qwen Code
`@qwen-code/qwen-code` is Alibaba's coding CLI built on top of Gemini CLI, tuned for the Qwen3-Coder family of models. agent-mux drives it via the qwen binary.
Install
amux install qwenSupported on macOS, Linux and Windows.
Authenticate
Qwen Code speaks the OpenAI-compatible API. The quickest path is DashScope:
export OPENAI_API_KEY=sk-...
export OPENAI_BASE_URL=https://dashscope-intl.aliyuncs.com/compatible-mode/v1
export OPENAI_MODEL=qwen3-coder-plusAlternatively, run qwen interactively and use the built-in OAuth flow.
Example
import { createClient } from '@a5c-ai/agent-mux';
const client = createClient();
const run = client.run({
agent: 'qwen',
model: 'qwen3-coder-plus',
prompt: 'Summarize the public API in src/index.ts',
});
for await (const ev of run.events()) {
if (ev.type === 'text_delta') process.stdout.write(ev.delta);
}Plugins
Plugin support: **no**. Use MCP servers for extensibility.
MCP Servers
amux mcp install qwen <mcp-server>
amux mcp list qwenRegistry: https://modelcontextprotocol.io
Notes
default to false pending upstream confirmation.
- Session files live under
~/.qwen/sessions(JSONL). - MCP servers are configured under
mcpServersin~/.qwen/settings.json. - Capabilities are set conservatively — thinking, JSON mode, and image input