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 the coding agent from Alibaba's Qwen team, built for its Qwen3-Coder models. It runs as a process in its own Daintree terminal panel with full PTY emulation, like every other built-in agent.
| Command | qwen |
|---|---|
| Shortcut | None by default; assign one in Keyboard Shortcuts |
| Bundled context estimate | 1,000,000 tokens |
| Rendering | Inline; Daintree strips Qwen's alt-screen switch so output stays in scrollback |
| Resume | qwen --resume <session-id>. No resume-latest fallback |
| Quit command | /quit |
| Permission bypass | --yolo (per agent or preset only) |
| Platforms | macOS, Windows, Linux |
Install & Authenticate
See Qwen's current setup instructions for installation and sign-in.
Qwen publishes a standalone installer for each platform, plus npm and Homebrew packages. The npm package needs Node.js 22 or newer and is the command Daintree's in-app install prompt offers.
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash Or npm install -g @qwen-code/qwen-code@latest, or brew install qwen-code.
irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex Or npm install -g @qwen-code/qwen-code@latest.
curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash Or npm install -g @qwen-code/qwen-code@latest, or brew install qwen-code.
Run qwen and use /auth inside the session to choose a provider and enter a key. Qwen reads keys such as DASHSCOPE_API_KEY (Alibaba Cloud Model Studio), BAILIAN_CODING_PLAN_API_KEY (the Coding Plan subscription), or OPENAI_API_KEY with an OpenAI-compatible endpoint, from your environment, a .env file, or ~/.qwen/settings.json. Daintree shows Qwen as ready when it finds ~/.qwen/oauth_creds.json, ~/.qwen/settings.json, or one of those three variables. Qwen's model list refreshes at runtime from the shared model catalog rather than a snapshot baked into Daintree.
/auth. Keys come from Alibaba Cloud Model Studio: modelstudio.console.alibabacloud.com internationally, or bailian.console.aliyun.com in mainland China. Daintree's in-app troubleshooting text still points at the older DashScope console address.How Daintree Launches It
Daintree blocks Qwen's alt-screen switch in the terminal, so its output lands in the normal buffer. Scrollback, search and copy then work the way they do in a plain shell, instead of the screen clearing when the TUI exits. Turning on permission bypass adds --yolo; the global Skip permission prompts switch doesn't reach Qwen, because the agent doesn't declare bypass support.
Daintree MCP servers
When the MCP server is on (Settings > MCP server) and the project's Agent integrations setting is Core or Full, or the project has turned on a plugin's agent tools, each new Qwen launch gets those servers through --mcp-config <file>, written in Qwen's own format. The file is written with owner-only permissions under Daintree's data folder and deleted when the terminal exits; nothing is written into your Qwen settings or the repository.
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 (command -v qwen on macOS/Linux, where.exe qwen on Windows), then restart Daintree. Daintree also probes ~/.local/bin/qwen, ~/.qwen/bin/qwen, and npm's global folder.Integration reference
This guide describes Daintree's checked-in integration. Its agent definition records the launch command, install guidance, authentication probes, rendering capabilities, MCP wiring, and resume support. Authentication badges report local evidence; the CLI still owns sign-in and provider access. After changing an installation, use Re-check in Settings > CLI agents; restart Daintree if its inherited PATH has changed.