voxagent
Local-first voice I/O for MCP clients, enabling hands-free dictation, spoken responses, and voice-based Q&A with coding agents.
README
<div align="center">
<img src="docs/brand/logo.png" width="150" alt="VoxAgent logo" />
VoxAgent
Talk to your coding agent. It talks back.
Local-first voice I/O for Claude Code, Cursor, OpenClaw and any MCP client.
</div>

Why
Coding agents went from autocomplete to coworkers — but the interface is still a keyboard. VoxAgent gives your agent ears and a mouth:
- 🎤
listen()— dictate instructions, code snippets, or code review feedback - 🔊
speak()— spoken progress updates; go get coffee while your agent talks - 🗣️
ask_user()— the agent asks, you answer out loud from across the room - 🕹️ Push-to-talk — hold a global hotkey anywhere; your words go straight
into
claude -p, and the reply is spoken back
Everything runs on your machine. STT is fully offline (faster-whisper); TTS starts with a zero-setup voice and upgrades to a local CosyVoice server for production-quality speech. No API keys required.
Highlights
| 🏠 Local-first | STT runs 100% offline; no API keys, no cloud dependency |
| 🪶 Featherweight core | Only mcp is required; heavy deps live in optional extras and load lazily |
| 🧠 Smart model loading | Local model cache with automatic fallback; CUDA / int8 auto-detection |
| 🔌 Pluggable engines | Swap STT/TTS with one env var; a new adapter is ~40 lines |
| ⌨️ Global push-to-talk | Works from any app, with macOS hotkey suppression built in |
| 🛡️ Robust audio | Silence auto-stop, VAD filtering, multi-backend playback fallback |
Quickstart
pip install 'voxagent[local]'
voxagent doctor # check mic + deps
voxagent demo # try the talk-loop standalone
# Register with Claude Code
claude mcp add voxagent -- voxagent serve
# Enable the agent skill (when to speak, how to behave)
mkdir -p ~/.claude/skills && cp -r skills/voice-control ~/.claude/skills/
# Push-to-talk daemon (optional): talk to Claude Code from any app
pip install 'voxagent[ptt]'
voxagent ptt --send 'claude -p'
Then just say: "voice mode on" — or hold the PTT hotkey (default
Ctrl+Shift+Space) and talk.
Works with any MCP client — Cursor, OpenClaw, Codex and friends all speak MCP.
Architecture
Engines are pluggable — set one env var to swap either side:
| Layer | Default | Upgrade path | Config |
|---|---|---|---|
| STT | faster-whisper (small) |
medium / large-v3, GPU |
WHISPER_MODEL, WHISPER_DEVICE |
| TTS | edge-tts (zero setup) | local CosyVoice server | VOXAGENT_TTS_ENGINE=cosyvoice |
| Language | auto-detect | pin zh / en / ... |
VOXAGENT_LANGUAGE |
See .env.example for all options.
MCP Tools
| Tool | What it does |
|---|---|
listen() |
Record mic → transcript. Silence auto-stop, VAD filtered. |
speak(text) |
Text → speech on your speakers. Returns seconds spoken. |
ask_user(question) |
Speak a question, then capture the spoken answer. |
The bundled Agent Skill (skills/voice-control) teaches the agent when
to use them: short spoken replies, voice announcements before long tasks,
language mirroring, graceful fallback to text.
Troubleshooting
Model download fails (network errors from huggingface.co): download the
model manually from a mirror, then point WHISPER_MODEL at the folder:
bash scripts/download_model.sh tiny # or base / small
export WHISPER_MODEL="$HOME/.voxagent/models/tiny"
The script pulls from hf-mirror.com with plain curl, bypassing the
huggingface_hub SDK entirely. Alternatively, set HF_ENDPOINT=https://hf-mirror.com
and HF_HUB_DISABLE_XET=1 before running if the SDK works for you.
Holding the hotkey types characters into the focused app (e.g. ctrl+j
sends newlines in a terminal, scrolling it while you speak): on macOS the
daemon swallows the hotkey's character key while the combo is held. If the
suppressor is unavailable, prefer a character-free hotkey such as
--hotkey f6 or --hotkey ctrl+cmd+j.
macOS hotkeys don't respond: grant your terminal Accessibility / Input Monitoring permission in System Settings → Privacy & Security, then restart the daemon.
Roadmap
- [x] Push-to-talk global hotkey (
voxagent ptt) - [ ] Streaming STT (partial transcripts while you speak)
- [ ] Voice memory — clone your own voice for agent replies
- [ ] OpenClaw / n8n integration recipes
- [ ] Docker image with bundled CosyVoice
Contributing
Issues and PRs welcome — especially new engine adapters (GPT-SoVITS, F5-TTS,
Piper...). Each adapter is ~40 lines; see voxagent/tts/cosyvoice_engine.py
for the pattern.
License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.