Sandbox
@QwenAudio/qwen-audio-agent

Realtime voice runtime for agent workflows

Qwen Audio Agent is a realtime voice runtime for keeping an agent in the loop while it talks, uses tools, and works on longer tasks. It routes quick questions directly and sends heavier work to a backend agent, then brings the result back into the same conversation. The runtime comes with a CLI, TUI, web UI, and desktop app.

2,397 stars211 forksJavaScriptUpdated 7d ago
Who it's for

Builders who want their agent to keep talking while it handles tools, file work, and long-running tasks.

What it delivers

You can keep one live conversation going instead of switching between chat, tool runs, and task updates.

What it does

Full-duplex voice conversation

Supports realtime voice interaction, interruption, and multi-turn conversation without stopping after one response.

Background task execution

Runs frontend conversation and backend tasks in parallel, with progress tracking and cancellation.

Agent reuse and integration

Reuses an agent’s model config, tools, MCP, skills, and auth through native or adapter-based ACP support.

Multiple frontends

Provides a web UI, terminal TUI, and desktop floating orb for macOS, Windows, and Linux.

Memory and personalization

Keeps per-user memory, with an optional VoiceMem connector for richer session continuity.

Example scenarios

Includes example setups for smart cockpit, AI Passport, VoiceMem, and LightRAG integrations.

How to get it

  1. 1Requires Node.js 22.22.2+ or 24.15.0+, npm 10+. One-click install (recommended)
    npm install -g qwen-audio-agent
  2. 2Create your config and fill in the API Key
    qwenaudio config
  3. 3Start the Gateway, then open another terminal to start the TUI (or use qwenaudio webui…
    qwenaudio        # Terminal 1: Gateway
    qwenaudio tui    # Terminal 2: TUI

README

Qwen Audio Agent

中文 | English | User Guide | Quickstart

CI npm node license WeChat

Agent Presence

Real conversation should not leave you waiting after a single sentence, nor should it grind to a halt just because the Agent is looking something up, calling a tool, or working on a task.

Conversation should keep flowing, and the Agent should always be present.

That is why we built qwen-audio-agent—a realtime voice runtime that keeps Agents talking, working, and present. Whether chatting with you, thinking through a problem, or working on a task, your Agent remains in the conversation. It listens, responds, and when the task is complete, naturally tells you:

"It's ready."

News

  • 2026-08-27 · v2.0.0 (In development) 🚧 The next major version is under active development, with ongoing work on the Agent architecture, task lifecycle, multimodal input, memory, and extensibility.
  • 2026-08-20 · v1.11.0 🧩 Adds embeddable Gateway and Realtime Provider extensions; 🛠️ supports installing and managing Agent Skills; 📎 adds multimodal input to the TUI; 🎨 links pet animations to runtime states.
  • 2026-08-13 · v1.9.0 🧩 Desktop task cards show live Agent progress; 🔎 backend Agent selection is clearer and searchable; 🎙️ supports Qwen3.5-Omni Realtime frontend integration.
  • 2026-08-07 · v1.7.0 🎨 The orb opens up custom skins — import your own look, compatible with pet packs from the Awesome Codex Pet community gallery; 🪟 improved Windows backend Agent startup.
  • 2026-08-05 · v1.5.0 ⏰ 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.
  • 2026-08-03 · v1.3.0 🎙️ Adds 🤗 speech-to-speech frontend integration, supporting fully local VAD, STT, LLM, and TTS.
  • 2026-07-30 · v1.0.0 🚀 First stable release, introducing a macOS desktop app with a built-in Gateway.
  • 2026-07-28 · v0.9.0 🌍 Project officially open-sourced; backend Agents unified under the ACP architecture.

Conversation Continues, Tasks Too

Conversation doesn't stop for background tasks; when a task completes, the result naturally returns to the current conversation:

https://github.com/user-attachments/assets/ab570531-8da9-4af4-93fa-244bb6614c05

Core Features

  • Full-duplex realtime voice interaction, natural interruption, and sustained multi-turn conversation
  • One-click integration with your preferred Agent, reusing its model configuration, tools, MCP, Skills, and authentication
  • Frontend conversation and background tasks run in parallel; ask about progress or cancel at any time
  • Create multiple independent tasks executed asynchronously by the backend Agent, with continuous status tracking
  • Task results automatically return to the current conversation, supporting follow-up questions and modifications
  • WebUI, terminal TUI, and desktop floating orb (macOS / Windows / Linux)
  • Long-term per-user personalization and memory, with an optional VoiceMem connector

Architecture

qwen-audio-agent architecture

Questions that can be answered directly are answered immediately; when tools or sustained processing are needed, the task is delegated to the backend Agent. Throughout, the user always faces the same assistant.

View detailed architecture

qwen-audio-agent reference architecture

For the full design and module breakdown, see the architecture document.

Agent Support

Backend AgentIntegrationSetupRating
NoneN/AFrontend-only mode, no config needed★★★★★
Qwen CodeNative ACPOne-click install, user config required★★★★★
OpenCodeNative ACPOne-click install + Bailian config★★★★★
OpenClawBuilt-in ACP bridgeOne-click install + Bailian config★★★★★
QoderNative ACPOne-click install, user config required★★★★★
MiniMax CodeNative ACPOne-click install, user config required★★★★☆
Kimi CodeNative ACPOne-click install, user config required★★★★★
HermesNative ACPOne-click install, user config required★★★★☆
CodeBuddyNative ACPOne-click install, user config required★★★★☆
CodexExternal ACP adapterOne-click install (base + adapter), user config required★★★★☆
Claude CodeExternal ACP adapterOne-click install (base + adapter), user config required★★★★☆
DeepSeekNative ACPOne-click install, DeepSeek API key required★★★★☆
PiExternal ACP adapterOne-click install (base + adapter), user config required★★★★☆

Ratings reflect current integration completeness, compatibility, and verification level: five stars indicate a thoroughly tested recommended integration; four stars indicate active development or not yet fully verified. For detailed configuration and capability boundaries, see the backend Agent documentation and configuration guide.

Installation

Requires Node.js 22.22.2+ or 24.15.0+, npm 10+. One-click install (recommended):

npm install -g qwen-audio-agent

For building from source, installing from GitHub, and obtaining a DashScope API Key, see the installation guide.

Quick Start

  1. Create your config and fill in the API Key:
qwenaudio config
DASHSCOPE_API_KEY=your-key
# Voice frontend model: Audio Flash/Plus or Omni Flash/Plus (Audio Plus is default)
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

Before starting, create a key from the Bailian API Key page. Eligible new users can review the new-user free quota and check remaining usage on the model usage page. Quota and billing rules are subject to the current official Bailian documentation.

Uses DashScope realtime voice by default. Alternatives include Speech-to-Speech and ModelBest MiniCPM-o 4.5, with local or hosted endpoints selected through their service URL.

With a visual-capable Realtime frontend, WebUI can explicitly stream bounded camera frames alongside live audio. See Realtime frontend configuration.

  1. Start the Gateway, then open another terminal to start the TUI (or use qwenaudio webui for the browser UI):
qwenaudio        # Terminal 1: Gateway
qwenaudio tui    # Terminal 2: TUI

For full configuration options, local voice frontend setup, and TUI platform notes, see quick start, voice frontends, and TUI notes.

Desktop App

The desktop app provides a persistent floating voice orb with a built-in Gateway, automatic idle sleep, local voice wake, and customizable appearance. Download the installer for your platform from the releases page, or build from source:

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

For visuals, orb behavior, and build instructions, see the desktop documentation.

Examples and Scenario Expansion

The current qwen-audio-agent framework focuses on desktop productivity: users can keep talking with the Agent in realtime while delegating tool use, file work, code changes, and long-running tasks to the backend Agent.

This "foreground conversation + background task" design is not limited to desktop use. It can also expand to more scenarios where the Agent can both chat naturally and get real work done.

ScenarioDescriptionLinkStatus
DesktopVoice chat, progress follow-up, tools, and background tasks.DocsAvailable
Smart cockpitVehicle control, navigation, music, weather, and services.ExampleAvailable
AI PassportQwen Voice Bean on a hardware card; voice conversation and backend tasks through a LAN relay. Currently half-duplex only.ExampleExperimental
VoiceMemOptional semantic memory with transcript or native-audio input.Setup exampleAvailable
LightRAGReplaceable knowledge base with semantic retrieval, document indexing, and management.Integration exampleAvailable
Customer supportIssue clarification, order lookup, tickets, and human handoff.TBDPlanned
Embodied intelligenceVoice commands, action execution, inspection, and exception feedback.TBDPlanned
Livestream assistantAudience interaction, product explanation, coupons, and risk reminders.TBDExploratory

This repository includes a smart-cockpit reference scenario built on the foreground-conversation and backend-execution boundary. Its cockpit UI, small A2A Agent, and cockpit service are customer-replaceable examples:

cp examples/smart-cockpit/.env.example examples/smart-cockpit/.env.local
npm run example:smart-cockpit:install
npm run example:smart-cockpit          # service + agent + gateway + client

See examples/smart-cockpit for details.

The VoiceMem setup example shows how to install VoiceMem outside the framework, configure the connector, and switch between Realtime transcripts and VoiceMem-native audio. Lightweight Markdown memory remains the default; the core npm package contains no VoiceMem Python code or dependencies.

The LightRAG integration example connects an independently deployed knowledge base through the generic KnowledgeProvider. LightRAG keeps control of its LLM, embeddings, documents, and indexes; the core npm package does not include LightRAG or Python dependencies.

Community

You can start discussions directly in GitHub Issues.

For users in China, scan the QR codes below to join the WeChat group. If the group QR code is full or expired, scan either maintainer's personal QR code to be invited.

WeChat GroupPersonalPersonal
WeChat group QR codeLi Xu personal WeChat QR codePigeon.Dan personal WeChat QR code

Contributing and Security

License

Apache License 2.0

Files in the repo

Repository payload32 top-level entries
  • .github
  • .gitlab
  • cli
  • config
  • desktop
  • docs
  • examples
  • mobile
  • scripts
  • server
  • shared
  • test
  • tui
  • web
  • .env.example
  • .gitignore
  • .node-version
  • .npmignore
  • .npmrc
  • .nvmrc
  • CHANGELOG.md
  • CONTRIBUTING.md
  • eslint.config.mjs
  • LICENSE
  • NOTICE
  • package-lock.json
  • package.json
  • PRIVACY.md
  • README_ZH.md
  • README.md
  • SECURITY.md
  • THIRD_PARTY_NOTICES.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More harnesses

affaan-m/
ECC
affaan-m/ECCHarnesses

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

258k

The job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.

42k
ruvnet/rufloHarnesses

🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

72k

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

11k