Skip to main content

Qwen Code

Install, authenticate, and resume Alibaba's Qwen Code inside Daintree, including DASHSCOPE_API_KEY and session resume.

Updated
Reviewed

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.

Commandqwen
Shortcut
ColorIndigo (#615CED)
PlatformsmacOS, Windows, Linux

Install & Authenticate

npm install -g @qwen-code/qwen-code

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.

Note
The Qwen OAuth free tier was discontinued on April 15, 2026. Most people now authenticate with DASHSCOPE_API_KEY. Sign up at dashscope.console.aliyun.com. Access may depend on your region.

Resuming Sessions

Daintree captures Qwen's session ID on shutdown and resumes with qwen --resume <session-id>. Quit a session cleanly with /quit so the ID is captured. For the resume mechanics across all agents, see Session Resume.

Tip
If qwen isn't detected after install, confirm it's on your PATH (which qwen on macOS/Linux, where qwen on Windows), then restart Daintree. See Agent Availability for the five detection states, and Presets for launch configuration.