# Qwen Audio Agent

> A full-duplex voice runtime that keeps talking while a backend coding agent works — swap the speech frontend, swap the agent, keep the conversation

- Category: Multimodal Generation / Audio, Music & Voice
- Language: JavaScript
- Licence: Apache-2.0
- Repository: https://github.com/QwenAudio/qwen-audio-agent
- Website: https://qwenaudio.github.io/qwen-audio-agent/
- Canonical page: https://ai-tldr.dev/tools/qwen-audio-agent/
- Updated: 2026-08-20

## In short

Qwen Audio Agent addresses a specific failure of voice assistants built on top of agents: the conversation stops the moment the agent starts working. Ask it to look something up, call a tool or run a task, and you are left waiting in silence. It sits in the Audio, Music & Voice category of the Multimodal Generation tools and is open-source, written in JavaScript and licensed Apache-2.0.

## Overview

Qwen Audio Agent addresses a specific failure of voice assistants built on top of agents: the conversation stops the moment the agent starts working. Ask it to look something up, call a tool or run a task, and you are left waiting in silence. The project's design separates the two jobs — a realtime voice frontend handles the conversation, a backend agent executes the work — and lets them run in parallel. Questions that can be answered immediately are; anything that needs tools or sustained processing is delegated, the conversation continues, and when the task finishes the result returns to the same conversation for follow-up.

Both halves are pluggable. The voice frontend can be a cloud realtime service (Qwen Audio 3.0 Realtime, OpenAI's GPT-Live/Realtime, Google Gemini Live, Qwen3.5-Omni and Qwen3.8 Omni Flash Realtime for video input, StepAudio 3 Realtime) or a fully local stack (Hugging Face speech-to-speech with local VAD, STT, LLM and TTS; MiniCPM-o 4.5), and a documented Realtime Provider interface lets you add another without touching the Gateway's voice-session or task logic. The backend is reached over ACP: Qwen Code, OpenCode, OpenClaw, Qoder, Kimi Code, MiniMax Code, Hermes, CodeBuddy and DeepSeek Harness integrate natively, with external adapters for Codex, Claude Code and Pi, and a Muse Code MSP adapter. Frontend-only mode, with no backend at all, is also supported.

Around that core sit three surfaces — a browser WebUI, a terminal TUI and a desktop floating orb for macOS, Windows and Linux with a built-in Gateway, idle sleep, a local wake word and customisable skins. The runtime supports several independent background tasks at once with continuous status tracking, so you can ask about progress or cancel mid-flight, and keeps long-term per-user personalisation across sessions. The project was open-sourced in July 2026 under Apache-2.0 and reached its first stable release, v1.0.0, on 30 July 2026.

## What it does

- Full-duplex realtime voice with natural interruption and sustained multi-turn conversation
- Replaceable voice frontends — cloud realtime services or a fully local VAD/STT/LLM/TTS stack — behind one Realtime Provider interface
- One-click integration with an existing agent over ACP, reusing its model config, tools, MCP servers, skills and authentication
- Foreground conversation and background tasks in parallel: ask about progress or cancel at any time, and results return to the current conversation
- Three surfaces from one runtime — browser WebUI, terminal TUI, and a desktop floating orb with local wake word and idle sleep
- Long-term per-user personalisation and cross-session memory
- Embeddable Gateway and Realtime Provider extensions, plus installable Agent Skills (added in v1.11.0)

## Getting started

Node.js 22.22.2+ or 24.15.0+ and npm 10+ are required. The default voice frontend is Qwen Audio 3.0 Realtime, which needs a DashScope/Bailian API key; other frontends, including fully local ones, are configured the same way.

1. Install the CLI

```bash
npm install -g qwen-audio-agent
```

2. Create the config and add your key

   `qwenaudio config` writes the config file. The backend agent is optional — leave AGENT_PROTOCOL empty or set it to `none` for frontend-only mode.

```bash
qwenaudio config
```

3. Fill in the values you need

   Create a key on the Bailian API Key page first. The realtime model and backend model lines are both optional; an empty backend model reuses the agent's own configuration.

```text
DASHSCOPE_API_KEY=your-key
# Voice frontend model: optional, defaults to Qwen Audio 3.0 Realtime Plus
QWEN_AUDIO_REALTIME_MODEL=qwen-audio-3.0-realtime-plus
# Backend Agent: optional, leave empty or set to none for frontend-only mode
AGENT_PROTOCOL=openclaw
# Backend model: optional; explicit values use standard ACP, empty reuses Agent config
QWEN_AUDIO_AGENT_BACKEND_MODEL=qwen3.7-max
```

4. Start the Gateway, then a client

   The Gateway holds the voice session and task state; the TUI attaches to it. `qwenaudio webui` opens the browser UI instead.

```bash
qwenaudio        # Terminal 1: Gateway
qwenaudio tui    # Terminal 2: TUI
```

5. Or run the desktop orb

   The desktop app bundles its own Gateway and adds the floating voice orb, idle sleep and local wake. Download an installer from the releases page, or build it yourself.

```bash
npm run desktop:build:local      # macOS
npm run desktop:build:win        # Windows
npm run desktop:build:linux      # Linux (AppImage + deb, no signing)
```

## When to use it

- Talk to a coding agent while it works, instead of watching a terminal and waiting for the run to finish
- Put a voice interface on an agent you already use — Qwen Code, OpenCode, OpenClaw, Codex or Claude Code — without rewriting its tooling or auth
- Run the whole speech loop locally with the Hugging Face speech-to-speech frontend when audio must not leave the machine
- Build a voice product on the same runtime: the repo ships worked examples for smart cockpit, customer service and camera-assisted conversation

## Version history

- 2026-08-20 v1.11.0: Adds embeddable Gateway and Realtime Provider extensions, installing and managing Agent Skills, and multimodal input in the TUI. Pet animations are now linked to runtime states.
- 2026-07-30 v1.0.0: First stable release, introducing a macOS desktop app with a built-in Gateway.
