Qwen Code
Install, authenticate, and resume Alibaba's Qwen Code inside Daintree, including DASHSCOPE_API_KEY, session resume, and how Daintree keeps its output in scrollback.
Qwen Code
Qwen Code is Alibaba's Qwen3-Coder agent, with a 1,000,000-token context window. It runs as a process in its own Daintree terminal panel with full PTY emulation, like every other built-in agent.
| Command | qwen |
|---|---|
| Shortcut | — (assignable in Keyboard settings) |
| Rendering | Inline — Daintree strips Qwen's alt-screen switch so output stays in scrollback |
| Resume | qwen --resume <session-id> |
| Quit command | /quit |
| Permission bypass | --yolo |
| Platforms | macOS, Windows, Linux |
Install & Authenticate
npm install -g @qwen-code/qwen-codenpm install -g @qwen-code/qwen-codenpm install -g @qwen-code/qwen-codeRequires Node.js 22 or newer. Run qwen once to start. Authentication reads from ~/.qwen/oauth_creds.json or ~/.qwen/settings.json, or from DASHSCOPE_API_KEY, BAILIAN_CODING_PLAN_API_KEY, or OPENAI_API_KEY. Qwen's model list refreshes at runtime from the shared model catalog rather than a snapshot baked into Daintree.
DASHSCOPE_API_KEY. Sign up at dashscope.console.aliyun.com. Access may depend on your region.Resuming Sessions
Qwen prints its resume command on exit and Daintree reads the session ID off that line, then relaunches with qwen --resume <session-id>. Quit with /quit so the line is emitted. There is no resume-latest fallback for Qwen — a missed capture means the next launch starts fresh. See Session Management for how resumable sessions are stored and pruned.
Launch flags, custom presets and display titles are covered in Agent Presets. What the working, waiting and exited badges on a running agent mean is covered in Agent States.
qwen isn't detected after install, confirm it's on your PATH (which qwen on macOS/Linux, where qwen on Windows), then restart Daintree.