> ## Documentation Index
> Fetch the complete documentation index at: https://ade-app.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen Code

> Run Qwen Code in DAEX as a chat or as its own CLI, on DashScope, OpenRouter, any OpenAI-compatible server or your Qwen account.

Qwen Code is Alibaba's open source coding agent. DAEX runs its own pinned copy for each machine, downloaded the first time it is needed, and drives chats over the Agent Client Protocol (ACP).

![The Qwen Code page in DAEX Settings › Providers](https://mintcdn.com/ade-ac1c6011/X0fzcdMoI2OYgIpA/media/current/provider-qwen.jpg?fit=max\&auto=format\&n=X0fzcdMoI2OYgIpA\&q=85\&s=e45eca809e86c49ca8cd0c3cf998bafd)

Qwen Code in Settings › Providers: its sign-in, status and models on this machine.

## Connect

Qwen Code has no **Sign in** button in DAEX. Configure it the way Qwen documents, on the machine that runs it:

* **An API key.** Add `OPENAI_API_KEY` (and `OPENAI_BASE_URL` if needed) in the **API keys** panel of **Settings › Providers › Qwen Code**, pointed at DashScope, OpenRouter or any OpenAI-compatible server.
* **Your own Qwen settings.** A custom provider in `~/.qwen/settings.json` works as is. DAEX never writes that file.
* **A Qwen account.** Qwen OAuth and the Qwen subscription sign in inside Qwen Code itself: start a Qwen CLI session and run `/auth`.

Models you add with `/model` show up in DAEX after a refresh.

* **DAEX Cloud.** Save a DashScope API key for DAEX Cloud (make one in Alibaba Cloud Model Studio). Qwen's key settings from your computer are copied too; a Qwen OAuth or subscription sign-in is not, so sign in on the cloud computer for those.

## Chat and CLI

| Surface | How DAEX runs it | What DAEX sees |
| - | - | - |
| **Chat** | `qwen --acp` on DAEX's shared ACP host. | Typed events: turns, tool calls, approvals, slash commands, image and audio input. Token totals come from Qwen's own usage log. |
| **CLI** | The `qwen` program in a DAEX terminal. | The screen only. Turn status is read from output and quiet time. |

## Permission modes

| Mode | What it does | Chat | CLI |
| - | - | :-: | :-: |
| **Plan** | Read-only: reads, searches and proposes a plan. | Yes | Yes |
| **Ask** | Asks before every file change and shell command. | Yes | Yes |
| **Accept edits** | Edits files without asking; shell commands still ask. | Yes | Yes |
| **Auto** | Qwen decides which actions are safe and asks for the rest. | Yes | Yes |
| **Full access** | Nothing asks. | Yes | Yes |

See [Permissions](https://ade-app.dev/docs/configuration/permissions.md).

## Models

The picker lists the models your Qwen setup offers, read from Qwen Code in the background and kept for six hours. Reasoning effort follows what Qwen reports for the model.

## Troubleshooting

> [accordion] Qwen says authentication is required
>
> Qwen has no key or account set up on that machine. Add an API key on the provider page, or run `/auth` in a Qwen CLI session, then choose **Refresh**.

> [accordion] A model I added is missing
>
> Choose **Refresh** on the provider page. DAEX reads the model list from Qwen Code and keeps it for six hours.

> [accordion] Qwen works on my computer but not on DAEX Cloud
>
> A Qwen OAuth or subscription sign-in stays on the computer you made it on. Save a DashScope key for DAEX Cloud, or sign in on the cloud computer.

> [card] [AI providers](https://ade-app.dev/docs/configuration/ai-providers.md)
>
> Sign-ins, API keys, custom providers and free models.

> [card] [Agents and models](https://ade-app.dev/docs/concepts/agents-and-models.md)
>
> All 13 agents, chats vs CLI sessions, and the model picker.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.