qwen-audio-agent 1.5.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -307
- package/README_ZH.md +218 -0
- package/cli/package.json +1 -1
- package/config/frontend-agent/PROMPT.md +11 -6
- package/docs/architecture.md +16 -8
- package/docs/architecture.zh.md +305 -0
- package/docs/backends/overview.md +89 -0
- package/docs/backends/overview.zh.md +89 -0
- package/docs/configuration.md +363 -277
- package/docs/configuration.zh.md +640 -0
- package/docs/desktop/overview.md +45 -0
- package/docs/desktop/overview.zh.md +45 -0
- package/docs/getting-started/install.md +77 -0
- package/docs/getting-started/install.zh.md +77 -0
- package/docs/getting-started/quickstart.md +64 -0
- package/docs/getting-started/quickstart.zh.md +64 -0
- package/docs/getting-started/tui.md +41 -0
- package/docs/getting-started/tui.zh.md +41 -0
- package/docs/reference/memory.md +59 -0
- package/docs/reference/memory.zh.md +59 -0
- package/docs/voice-frontends/speech-to-speech.md +87 -0
- package/docs/voice-frontends/speech-to-speech.zh.md +87 -0
- package/package.json +22 -4
- package/scripts/claude-code-acp.mjs +54 -0
- package/scripts/codex-acp.mjs +52 -0
- package/scripts/lib/launcher.mjs +184 -0
- package/scripts/lib/launcher.test.mjs +108 -0
- package/scripts/openclaw-gateway.mjs +13 -0
- package/scripts/openclaw.mjs +200 -0
- package/scripts/opencode-server.mjs +12 -0
- package/scripts/opencode.mjs +134 -0
- package/scripts/release-check +11 -8
- package/scripts/set-version.mjs +1 -1
- package/scripts/test/memory-extractor-e2e.mjs +185 -0
- package/scripts/test/memory-gateway-smoke.mjs +135 -0
- package/scripts/verify-package.mjs +3 -3
- package/server/package.json +2 -1
- package/server/src/agent/acp-backend-adapter.mjs +12 -2
- package/server/src/agent/acp-process-client.mjs +5 -4
- package/server/src/agent/backend-availability.mjs +57 -0
- package/server/src/agent/backends/claude.mjs +3 -6
- package/server/src/agent/backends/codex.mjs +3 -2
- package/server/src/agent/backends/openclaw.mjs +3 -1
- package/server/src/agent/backends/opencode.mjs +3 -3
- package/server/src/agent/backends/qoder.mjs +1 -2
- package/server/src/agent/builtin-mcp.mjs +67 -0
- package/server/src/agent/coordinator.mjs +1 -1
- package/server/src/app/bootstrap.mjs +40 -4
- package/server/src/conversation/frontend-agent-context.mjs +1 -1
- package/server/src/conversation/frontend-memory.mjs +36 -7
- package/server/src/conversation/memory-audit.mjs +55 -0
- package/server/src/conversation/memory-extractor.mjs +259 -0
- package/server/src/conversation/profiled-memory-store.mjs +13 -4
- package/server/src/core/config.mjs +20 -0
- package/server/src/core/memory-scopes.mjs +16 -2
- package/server/src/process/backend-drivers/openclaw.mjs +1 -1
- package/server/src/process/backend-drivers/opencode.mjs +1 -1
- package/server/src/process/managed-backend.mjs +4 -15
- package/server/src/voice/frontend-tools.mjs +7 -7
- package/server/src/voice/realtime-gateway.mjs +83 -20
- package/server/src/voice/realtime-provider.mjs +1 -1
- package/server/src/voice/tools/tool-call-handler.mjs +143 -111
- package/shared/backend-auth-status.mjs +1 -0
- package/shared/backend-install.mjs +190 -20
- package/shared/backend-lifecycle.mjs +4 -2
- package/shared/backend-setup.mjs +14 -2
- package/shared/realtime-events.mjs +1 -0
- package/tui/package.json +1 -1
- package/web/dist/assets/index-CH9eBvfi.js +38 -0
- package/web/dist/index.html +1 -1
- package/README_EN.md +0 -466
- package/scripts/claude-code-acp +0 -73
- package/scripts/codex-acp +0 -71
- package/scripts/openclaw +0 -269
- package/scripts/openclaw-gateway +0 -8
- package/scripts/opencode-acp +0 -6
- package/scripts/opencode-server +0 -208
- package/web/dist/assets/index-CAteXyT1.js +0 -38
package/README.md
CHANGED
|
@@ -1,382 +1,198 @@
|
|
|
1
1
|
# Qwen Audio Agent
|
|
2
2
|
|
|
3
|
-
[中文](
|
|
3
|
+
[中文](README_ZH.md) | [English](README.md)
|
|
4
4
|
|
|
5
5
|
[](https://github.com/QwenAudio/qwen-audio-agent/actions/workflows/ci.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/qwen-audio-agent)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
[](LICENSE)
|
|
9
|
-
[](#community)
|
|
10
10
|
|
|
11
|
-
## Agent
|
|
11
|
+
## Agent Presence
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Real conversation should not leave you waiting after a single sentence, nor
|
|
14
|
+
should it grind to a halt just because the Agent is looking something up,
|
|
15
|
+
calling a tool, or working on a task.
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
Conversation should keep flowing, and the Agent should always be present.
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
That is why we built **qwen-audio-agent**—a realtime voice runtime that keeps
|
|
20
|
+
Agents talking, working, and present. Whether chatting with you, thinking
|
|
21
|
+
through a problem, or working on a task, your Agent remains in the
|
|
22
|
+
conversation. It listens, responds, and when the task is complete, naturally
|
|
23
|
+
tells you:
|
|
18
24
|
|
|
19
|
-
|
|
25
|
+
"It's ready."
|
|
20
26
|
|
|
21
27
|
## News
|
|
22
28
|
|
|
29
|
+
- **2026-08-07 · [v1.6.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.1)**
|
|
30
|
+
⚡ Task delegation and permission decisions confirm instantly; 🖥️ built-in computer-use lets backend Agents operate the computer out of the box; 🎙️ more reliable wake; 📚 fully bilingual docs.
|
|
31
|
+
- **2026-08-06 · [v1.6.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.6.0)**
|
|
32
|
+
🪟 Desktop app now officially supports Windows; 🧠 adds invisible memory with automatic extraction after each session.
|
|
23
33
|
- **2026-08-05 · [v1.5.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.5.0)**
|
|
24
|
-
⏰
|
|
34
|
+
⏰ Adds scheduled reminders and progress reporting; 🗣️ adds the voice wake word ("你好千问"); 🐧 desktop build support for Linux; the desktop app now uses a data directory isolated from the CLI.
|
|
25
35
|
- **2026-08-05 · [v1.4.2](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.2)**
|
|
26
|
-
🔧
|
|
36
|
+
🔧 Improves desktop backend Agent installation, login, and status detection; refines long-term memory behavior.
|
|
27
37
|
- **2026-08-04 · [v1.4.1](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.1)**
|
|
28
|
-
🧰
|
|
38
|
+
🧰 Adds one-click backend Agent install; desktop floating orb supports auto-hide and shortcut recall.
|
|
29
39
|
- **2026-08-04 · [v1.4.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.4.0)**
|
|
30
|
-
🧠
|
|
40
|
+
🧠 Adds personalized rules and checklist management; desktop app supports auto-sleep and shortcut wake.
|
|
31
41
|
- **2026-08-03 · [v1.3.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.3.0)**
|
|
32
|
-
🎙️
|
|
42
|
+
🎙️ Adds [🤗 speech-to-speech](https://github.com/huggingface/speech-to-speech) frontend integration, supporting fully local VAD, STT, LLM, and TTS.
|
|
33
43
|
- **2026-08-01 · [v1.2.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.2.0)**
|
|
34
|
-
⚡
|
|
44
|
+
⚡ Desktop app adds auto-update, faster startup, and improved backend Agent detection.
|
|
35
45
|
- **2026-07-31 · [v1.1.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.1.0)**
|
|
36
|
-
🤝
|
|
46
|
+
🤝 Adds Kimi Code CLI backend with native ACP integration.
|
|
37
47
|
- **2026-07-30 · [v1.0.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v1.0.0)**
|
|
38
|
-
🚀
|
|
48
|
+
🚀 First stable release, introducing a macOS desktop app with a built-in Gateway.
|
|
39
49
|
- **2026-07-28 · [v0.9.0](https://github.com/QwenAudio/qwen-audio-agent/releases/tag/v0.9.0)**
|
|
40
|
-
🌍
|
|
50
|
+
🌍 Project officially open-sourced; backend Agents unified under the ACP architecture.
|
|
41
51
|
|
|
42
|
-
##
|
|
52
|
+
## Conversation Continues, Tasks Too
|
|
43
53
|
|
|
44
|
-
|
|
54
|
+
Conversation doesn't stop for background tasks; when a task completes, the
|
|
55
|
+
result naturally returns to the current conversation:
|
|
45
56
|
|
|
46
57
|
https://github.com/user-attachments/assets/42022655-36d1-46b2-9c26-ff0765284000
|
|
47
58
|
|
|
48
|
-
###
|
|
59
|
+
### Core Features
|
|
49
60
|
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
61
|
+
- Full-duplex realtime voice interaction, natural interruption, and sustained multi-turn conversation
|
|
62
|
+
- One-click selection of your preferred coding Agent, reusing existing tools, MCP, and Skills
|
|
63
|
+
- Frontend conversation and background tasks run in parallel; ask about progress or cancel at any time
|
|
64
|
+
- Create multiple independent tasks executed asynchronously by the backend Agent, with continuous status tracking
|
|
65
|
+
- Task results automatically return to the current conversation, supporting follow-up questions and modifications
|
|
66
|
+
- WebUI, terminal TUI, and desktop floating orb (macOS / Windows / Linux)
|
|
67
|
+
- Local user profile and cross-session personal memory
|
|
57
68
|
|
|
58
|
-
##
|
|
69
|
+
## Architecture
|
|
59
70
|
|
|
60
|
-

|
|
61
72
|
|
|
62
|
-
|
|
63
|
-
|
|
73
|
+
Questions that can be answered directly are answered immediately; when tools
|
|
74
|
+
or sustained processing are needed, the task is delegated to the backend Agent.
|
|
75
|
+
Throughout, the user always faces the same assistant.
|
|
64
76
|
|
|
65
77
|
<details open>
|
|
66
|
-
<summary
|
|
78
|
+
<summary>View detailed architecture</summary>
|
|
67
79
|
|
|
68
|
-

|
|
69
81
|
|
|
70
|
-
|
|
82
|
+
For the full design and module breakdown, see the [architecture document](docs/architecture.md).
|
|
71
83
|
|
|
72
84
|
</details>
|
|
73
85
|
|
|
74
|
-
## Agent
|
|
86
|
+
## Agent Support
|
|
75
87
|
|
|
76
|
-
|
|
|
88
|
+
| Backend Agent | Integration | Setup | Rating |
|
|
77
89
|
| --- | --- | --- | --- |
|
|
78
|
-
|
|
|
79
|
-
| OpenCode |
|
|
80
|
-
| OpenClaw |
|
|
81
|
-
| Qoder |
|
|
82
|
-
| Kimi Code |
|
|
83
|
-
| Hermes |
|
|
84
|
-
| CodeBuddy |
|
|
85
|
-
| Codex |
|
|
86
|
-
| Claude Code |
|
|
90
|
+
| None | N/A | Frontend-only mode, no config needed | ★★★★★ |
|
|
91
|
+
| OpenCode | Native ACP | One-click install + Bailian config | ★★★★★ |
|
|
92
|
+
| OpenClaw | Built-in ACP bridge | One-click install + Bailian config | ★★★★★ |
|
|
93
|
+
| Qoder | Native ACP | One-click install, user config required | ★★★★★ |
|
|
94
|
+
| Kimi Code | Native ACP | One-click install, user config required | ★★★★★ |
|
|
95
|
+
| Hermes | Native ACP | One-click install, user config required | ★★★★☆ |
|
|
96
|
+
| CodeBuddy | Native ACP | One-click install, user config required | ★★★★☆ |
|
|
97
|
+
| Codex | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
|
|
98
|
+
| Claude Code | External ACP adapter | One-click install (base + adapter), user config required | ★★★★☆ |
|
|
87
99
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
100
|
+
Ratings reflect current integration completeness, compatibility, and
|
|
101
|
+
verification level: five stars indicate a thoroughly tested recommended
|
|
102
|
+
integration; four stars indicate active development or not yet fully verified.
|
|
103
|
+
For detailed configuration and capability boundaries, see the [configuration guide](docs/configuration.md).
|
|
91
104
|
|
|
92
|
-
##
|
|
105
|
+
## Installation
|
|
93
106
|
|
|
94
|
-
|
|
95
|
-
实时语音前台时,还需要 DashScope API Key。
|
|
96
|
-
仓库提供 `.nvmrc` 和 `.node-version`;使用 nvm 时可直接运行 `nvm use`。
|
|
97
|
-
|
|
98
|
-
一键安装(推荐,从 npm 安装):
|
|
107
|
+
Requires Node.js 22.22.2+ or 24.15.0+, npm 10+. One-click install (recommended):
|
|
99
108
|
|
|
100
109
|
```bash
|
|
101
110
|
npm install -g qwen-audio-agent
|
|
102
111
|
```
|
|
103
112
|
|
|
104
|
-
|
|
113
|
+
For building from source, installing from GitHub, and obtaining a DashScope
|
|
114
|
+
API Key, see the [installation guide](docs/getting-started/install.md).
|
|
105
115
|
|
|
106
|
-
|
|
107
|
-
npm install -g git+https://github.com/QwenAudio/qwen-audio-agent.git
|
|
108
|
-
```
|
|
116
|
+
## Quick Start
|
|
109
117
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
git clone https://github.com/QwenAudio/qwen-audio-agent.git
|
|
114
|
-
cd qwen-audio-agent
|
|
115
|
-
npm install
|
|
116
|
-
npm run install:global
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
升级到最新 npm 版本:
|
|
120
|
-
|
|
121
|
-
```bash
|
|
122
|
-
npm install -g qwen-audio-agent@latest
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
升级到 GitHub 最新代码:
|
|
126
|
-
|
|
127
|
-
```bash
|
|
128
|
-
npm install -g git+https://github.com/QwenAudio/qwen-audio-agent.git
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
## 获取 DashScope API Key
|
|
132
|
-
|
|
133
|
-
阿里云百炼为 Qwen Audio 3.0 Realtime 提供
|
|
134
|
-
[新人免费额度](https://help.aliyun.com/zh/model-studio/new-free-quota),创建 API Key 后
|
|
135
|
-
即可免费开始使用 qwen-audio-agent。
|
|
136
|
-
|
|
137
|
-
1. 打开百炼控制台的 [API Key 页面](https://bailian.console.aliyun.com/?tab=model#/api-key),
|
|
138
|
-
登录账号,单击**创建 API Key**。
|
|
139
|
-
2. 复制生成的 Key,稍后填入 `config.env`。请勿公开或提交 API Key。
|
|
140
|
-
|
|
141
|
-
详细说明见[百炼官方文档](https://help.aliyun.com/zh/model-studio/get-api-key)。
|
|
142
|
-
|
|
143
|
-
## 快速开始
|
|
144
|
-
|
|
145
|
-
1. 创建配置:
|
|
118
|
+
1. Create your config and fill in the API Key:
|
|
146
119
|
|
|
147
120
|
```bash
|
|
148
121
|
qwenaudio config
|
|
149
122
|
```
|
|
150
123
|
|
|
151
|
-
2. 打开命令显示的 `config.env`,填写 DashScope API Key。需要执行后台任务时,
|
|
152
|
-
再选择 OpenClaw 或其他后台 Agent:
|
|
153
|
-
|
|
154
124
|
```dotenv
|
|
155
125
|
DASHSCOPE_API_KEY=your-key
|
|
156
|
-
#
|
|
126
|
+
# Voice frontend model: qwen-audio-3.0-realtime-flash or qwen-audio-3.0-realtime-plus (default)
|
|
157
127
|
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
|
|
158
|
-
#
|
|
128
|
+
# Backend Agent: optional, leave empty or set to none for frontend-only mode
|
|
159
129
|
AGENT_PROTOCOL=openclaw
|
|
160
|
-
#
|
|
130
|
+
# Backend model: can be empty; if empty, uses the Agent's own user config
|
|
161
131
|
QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-max
|
|
162
132
|
```
|
|
163
133
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
```bash
|
|
167
|
-
qwenaudio
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
4. 另开一个终端,启动 TUI:
|
|
171
|
-
|
|
172
|
-
```bash
|
|
173
|
-
qwenaudio tui
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
也可以使用浏览器界面:
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
qwenaudio webui
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### 使用 Hugging Face speech-to-speech 前台
|
|
183
|
-
|
|
184
|
-
qwen-audio-agent 也可以连接用户自行运行的
|
|
185
|
-
[Hugging Face speech-to-speech](https://github.com/huggingface/speech-to-speech)。
|
|
186
|
-
它将 VAD、STT、LLM 和 TTS 组合成 OpenAI Realtime 兼容服务,整条语音链路既可以
|
|
187
|
-
完全运行在本地,也可以按需替换其中的模型或服务。
|
|
188
|
-
|
|
189
|
-
1. 安装 speech-to-speech:
|
|
190
|
-
|
|
191
|
-
```bash
|
|
192
|
-
pip install "speech-to-speech[paraformer]"
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
2. 启动全本地服务:
|
|
196
|
-
|
|
197
|
-
Linux / Windows(NVIDIA GPU):
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
speech-to-speech \
|
|
201
|
-
--stt paraformer \
|
|
202
|
-
--llm_backend transformers \
|
|
203
|
-
--device cuda
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
Apple Silicon:
|
|
207
|
-
|
|
208
|
-
```bash
|
|
209
|
-
speech-to-speech \
|
|
210
|
-
--stt paraformer \
|
|
211
|
-
--llm_backend mlx-lm \
|
|
212
|
-
--device mps
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
没有 NVIDIA GPU 时,也可以选择适合 CPU 的更小本地模型;还可以
|
|
216
|
-
将 LLM 指向本机运行的 vLLM / llama.cpp。服务默认运行在
|
|
217
|
-
`ws://127.0.0.1:8765/v1/realtime`。
|
|
218
|
-
|
|
219
|
-
3. 在 qwen-audio-agent 的 `config.env` 中设置:
|
|
220
|
-
|
|
221
|
-
```dotenv
|
|
222
|
-
QWEN_AUDIO_REALTIME_PROVIDER=speech-to-speech
|
|
223
|
-
SPEECH_TO_SPEECH_REALTIME_URL=ws://127.0.0.1:8765/v1/realtime
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
然后正常启动 `qwenaudio`。在全本地模式下无需云端 API Key。Gateway 只连接 Realtime
|
|
227
|
-
接口,不会修改 speech-to-speech 的 STT、LLM、TTS 或音色配置。
|
|
228
|
-
如果 Realtime 接口位于需要 Bearer 认证的代理后方,可设置
|
|
229
|
-
`SPEECH_TO_SPEECH_AUTH_TOKEN`。
|
|
134
|
+
> Uses DashScope realtime voice frontend by default; alternatively, switch to a local [speech-to-speech frontend](docs/voice-frontends/speech-to-speech.md), no cloud API Key needed.
|
|
230
135
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
| 平台 | 默认模式 | 打断方式 |
|
|
234
|
-
| --- | --- | --- |
|
|
235
|
-
| macOS | 带回声消除的全双工 | 直接说话 |
|
|
236
|
-
| Linux / Windows | 半双工 | 播报时按 `x` |
|
|
237
|
-
|
|
238
|
-
Linux 和 Windows 首次使用前需安装 `sounddevice` 和系统 PortAudio。也可以开启
|
|
239
|
-
无回声消除的全双工模式;此时请佩戴耳机,避免扬声器声音造成误识别:
|
|
136
|
+
2. Start the Gateway, then open another terminal to start the TUI (or use `qwenaudio webui` for the browser UI):
|
|
240
137
|
|
|
241
138
|
```bash
|
|
242
|
-
qwenaudio
|
|
139
|
+
qwenaudio # Terminal 1: Gateway
|
|
140
|
+
qwenaudio tui # Terminal 2: TUI
|
|
243
141
|
```
|
|
244
142
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
应用会创建配置文件,并引导你在设置页填写 DashScope API Key、选择后台 Agent
|
|
250
|
-
(也可以使用仅前台模式)。
|
|
143
|
+
For full configuration options, speech-to-speech frontend setup, and TUI
|
|
144
|
+
platform notes, see [quick start](docs/getting-started/quickstart.md),
|
|
145
|
+
[voice frontends](docs/voice-frontends/speech-to-speech.md), and
|
|
146
|
+
[TUI notes](docs/getting-started/tui.md).
|
|
251
147
|
|
|
252
|
-
|
|
253
|
-
常驻菜单栏,可从菜单栏或显示快捷键重新唤出。默认快捷键为 `⇧⌘ Space`,也可以在
|
|
254
|
-
应用设置中更换。
|
|
148
|
+
## Desktop App
|
|
255
149
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
| --- | --- |
|
|
261
|
-
|  |  |
|
|
262
|
-
|
|
263
|
-
从发布页下载 `.dmg`,打开后将 **Qwen Audio Agent** 拖入“应用程序”即可。
|
|
264
|
-
|
|
265
|
-
从源码生成本机测试版:
|
|
150
|
+
The desktop app provides a floating voice orb that stays on your desktop,
|
|
151
|
+
with a built-in Gateway, auto-hide, shortcut recall, and voice wake word.
|
|
152
|
+
Download the installer for your platform from the releases page, or build
|
|
153
|
+
from source:
|
|
266
154
|
|
|
267
155
|
```bash
|
|
268
|
-
npm run desktop:build:local
|
|
156
|
+
npm run desktop:build:local # macOS
|
|
157
|
+
npm run desktop:build:win # Windows
|
|
158
|
+
npm run desktop:build:linux # Linux (AppImage + deb, no signing)
|
|
269
159
|
```
|
|
270
160
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
```bash
|
|
274
|
-
npm run desktop:build:linux
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
产物位于 `dist/desktop/`(AppImage 与 deb),无需代码签名证书。
|
|
278
|
-
|
|
279
|
-
## 后台常驻
|
|
280
|
-
|
|
281
|
-
希望个人助理长期在线时,可以安装为用户后台服务:
|
|
282
|
-
|
|
283
|
-
```bash
|
|
284
|
-
qwenaudio gateway install
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
常用管理命令:
|
|
288
|
-
|
|
289
|
-
```bash
|
|
290
|
-
qwenaudio gateway status
|
|
291
|
-
qwenaudio gateway restart
|
|
292
|
-
qwenaudio gateway stop
|
|
293
|
-
qwenaudio gateway start
|
|
294
|
-
qwenaudio gateway uninstall
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
## 选择后台 Agent
|
|
298
|
-
|
|
299
|
-
`AGENT_PROTOCOL` 是可选配置。留空时,Gateway 以仅前台模式运行,实时语音聊天
|
|
300
|
-
保持可用;如果请求需要后台执行,前台会明确说明当前没有可用的后台 Agent。
|
|
301
|
-
也可以在命令行中使用 `qwenaudio --backend none`,明确要求仅启动前台模式。
|
|
161
|
+
For visuals, orb behavior, and build instructions, see the [desktop documentation](docs/desktop/overview.md).
|
|
302
162
|
|
|
303
|
-
|
|
304
|
-
OpenCode 和 OpenClaw 支持自动下载安装;配置
|
|
305
|
-
`DASHSCOPE_API_KEY` 和 `QWEN_AUDIO_AGENT_BACKEND_MODEL` 后即可自动接入百炼
|
|
306
|
-
模型。未指定后台模型且用户已经安装并配置对应 Agent 时,则完整复用用户环境。
|
|
163
|
+
## Backend Agent
|
|
307
164
|
|
|
308
|
-
|
|
165
|
+
`AGENT_PROTOCOL` is optional. Leave empty for frontend-only mode; when set,
|
|
166
|
+
it reuses the installed Agent's user-level models, tools, MCP, Skills, and
|
|
167
|
+
authentication. OpenCode and OpenClaw support one-click install with Bailian
|
|
168
|
+
configuration.
|
|
309
169
|
|
|
310
170
|
```bash
|
|
311
|
-
qwenaudio setup
|
|
171
|
+
qwenaudio setup # View available backend Agents
|
|
312
172
|
```
|
|
313
173
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
```dotenv
|
|
317
|
-
AGENT_PROTOCOL=openclaw
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
使用 OpenCode:
|
|
321
|
-
|
|
322
|
-
```dotenv
|
|
323
|
-
AGENT_PROTOCOL=opencode
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
使用 Qoder:
|
|
327
|
-
|
|
328
|
-
```dotenv
|
|
329
|
-
AGENT_PROTOCOL=qoder
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
已安装并完成原生配置的后台 Agent,qwen-audio-agent 会复用其
|
|
333
|
-
用户级模型、工具、MCP、Skill 和认证。
|
|
334
|
-
|
|
335
|
-
使用其他支持 ACP stdio 的 Agent:
|
|
336
|
-
|
|
337
|
-
```dotenv
|
|
338
|
-
AGENT_PROTOCOL=acp
|
|
339
|
-
ACP_COMMAND=your-agent
|
|
340
|
-
ACP_ARGS=["--acp"]
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
通用 ACP 入口不需要修改 Gateway 代码。命令、参数、显示名称和工作目录可分别通过 `ACP_COMMAND`、`ACP_ARGS`、`ACP_LABEL` 和 `ACP_WORKSPACE` 配置。
|
|
344
|
-
|
|
345
|
-
后台权限默认使用 `native`,由后台 Agent 在需要时询问。只有在可信项目中,并且
|
|
346
|
-
明确接受自动执行命令和修改文件时,才应启用:
|
|
347
|
-
|
|
348
|
-
```dotenv
|
|
349
|
-
QWEN_AUDIO_AGENT_BACKEND_PERMISSION_MODE=full
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
详细选项见 [配置说明](docs/configuration.md)。
|
|
353
|
-
|
|
354
|
-
## 用户档案与记忆
|
|
355
|
-
|
|
356
|
-
用户数据保存在 `~/.config/qwaudio/`:
|
|
174
|
+
For Agent selection, persistent background service, generic ACP entry, and
|
|
175
|
+
permission modes, see the [backend Agent documentation](docs/backends/overview.md).
|
|
357
176
|
|
|
358
|
-
|
|
359
|
-
- `frontend-memory.json`:用户明确要求长期记住的信息
|
|
360
|
-
- `tasks.json`:任务结果和待通知状态
|
|
361
|
-
- `logs/`:经过凭据脱敏并自动轮转的本地运行日志
|
|
177
|
+
## User Profile and Memory
|
|
362
178
|
|
|
363
|
-
|
|
364
|
-
|
|
179
|
+
User data is stored in `~/.config/qwaudio/` (`USER.md`,
|
|
180
|
+
`frontend-memory.json`, `tasks.json`, `logs/`), kept local only, never
|
|
181
|
+
committed to the repository. See [user profile and memory](docs/reference/memory.md).
|
|
365
182
|
|
|
366
|
-
##
|
|
183
|
+
## Important Notes
|
|
367
184
|
|
|
368
|
-
-
|
|
369
|
-
-
|
|
370
|
-
|
|
371
|
-
-
|
|
372
|
-
-
|
|
373
|
-
-
|
|
374
|
-
- Linux / Windows 使用无回声消除全双工时,请佩戴耳机。
|
|
185
|
+
- Do not store passwords, API Keys, verification codes, or access tokens in the user profile or conversation.
|
|
186
|
+
- Microphone audio and realtime conversation are sent to the configured Realtime frontend service (DashScope or speech-to-speech).
|
|
187
|
+
- Background tasks may invoke the selected Agent's models, tools, MCP, and external services.
|
|
188
|
+
- `full` permission allows the backend to execute commands and modify files; use only in trusted projects.
|
|
189
|
+
- The Gateway is for local use only; do not expose it directly to the network or public internet.
|
|
190
|
+
- On Linux / Windows with full-duplex without echo cancellation, wear headphones.
|
|
375
191
|
|
|
376
|
-
|
|
377
|
-
[
|
|
192
|
+
For detailed data boundaries, see the [privacy notice](PRIVACY.md); for
|
|
193
|
+
network and permission configuration, see the [configuration guide](docs/configuration.md).
|
|
378
194
|
|
|
379
|
-
##
|
|
195
|
+
## Development
|
|
380
196
|
|
|
381
197
|
```bash
|
|
382
198
|
npm install
|
|
@@ -385,30 +201,31 @@ npm test
|
|
|
385
201
|
```
|
|
386
202
|
|
|
387
203
|
```bash
|
|
388
|
-
npm run dev # Gateway
|
|
389
|
-
npm run desktop # macOS
|
|
204
|
+
npm run dev # Gateway + WebUI hot reload
|
|
205
|
+
npm run desktop # Desktop floating orb (macOS / Windows)
|
|
390
206
|
```
|
|
391
207
|
|
|
392
|
-
|
|
208
|
+
For more build, test, and release instructions, see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
393
209
|
|
|
394
|
-
##
|
|
210
|
+
## Community
|
|
395
211
|
|
|
396
|
-
|
|
212
|
+
You can start discussions directly in [GitHub Issues](https://github.com/QwenAudio/qwen-audio-agent/issues).
|
|
397
213
|
|
|
398
|
-
|
|
399
|
-
|
|
214
|
+
For users in China, scan the QR codes below to join the WeChat group. If the
|
|
215
|
+
group QR code is full or expired, scan either maintainer's personal QR code
|
|
216
|
+
to be invited.
|
|
400
217
|
|
|
401
|
-
|
|
|
218
|
+
| WeChat Group | Personal | Personal |
|
|
402
219
|
| :---: | :---: | :---: |
|
|
403
|
-
| <img src="docs/wechat-group-qr.png" width="240" alt="
|
|
220
|
+
| <img src="docs/wechat-group-qr.png" width="240" alt="WeChat group QR code"> | <img src="docs/wechat-contact-qr.png" width="240" alt="Li Xu personal WeChat QR code"> | <img src="docs/wechat-pigeon-dan-qr.png" width="240" alt="Pigeon.Dan personal WeChat QR code"> |
|
|
404
221
|
|
|
405
|
-
##
|
|
222
|
+
## Contributing and Security
|
|
406
223
|
|
|
407
|
-
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
224
|
+
- Development and contribution guide: [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
225
|
+
- Security reports: [SECURITY.md](SECURITY.md)
|
|
226
|
+
- Data flow and privacy: [PRIVACY.md](PRIVACY.md)
|
|
227
|
+
- Third-party notices: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)
|
|
411
228
|
|
|
412
|
-
##
|
|
229
|
+
## License
|
|
413
230
|
|
|
414
231
|
[Apache License 2.0](LICENSE)
|