🎙️ Real-Time Duplex Audio
Stream raw PCM audio from your microphone to multimodal speech models (Gemini Live / OpenAI Realtime) with natural interruption and smooth model audio playback.
The voice-first coding environment. Speak naturally with an AI coding model that reads your project, reasons aloud, and modifies code files in real time—with all edits appearing instantly in your browser as they arrive.
Voicebox bridges low-latency duplex voice audio with real local coding harnesses and native file system storage.
Stream raw PCM audio from your microphone to multimodal speech models (Gemini Live / OpenAI Realtime) with natural interruption and smooth model audio playback.
When the model calls file tools (write, edit, patch), modified files render instantly in the browser's file explorer. No reloads or manual refreshing required.
Speaks the Agent Client Protocol (ACP) over stdio to communicate directly with local coding agents (pi, claude) running on your machine.
Work in standalone browser-owned OPFS (Origin Private File System) without granting host permissions, or open real local machine directories with IndexedDB reload persistence.
Fenced execution runs inside Bubblewrap containers and transient systemd units with strict CPU, memory, and timeout bounds (RuntimeMaxSec=1800).
Opt-in ?debug=1 panel surfaces real-time audio state machines, ACP JSON-RPC traces, tool invocations, and redacted exportable session logs.
Voicebox is built on rigorous architectural specifications. Read the underlying documentation in the repository:
Core room topology, WebSocket duplex protocol, live session lifecycle, and responsive file explorer container queries.
Development server startup, Vite proxy chaining, secure origin enforcement (port 5173), and health checks.
Security boundaries between untrusted voice input, host-token authentication, and execution permissions.
Agent Client Protocol stdio client, session handshake, cancellation semantics, and tool call mapping.
Bubblewrap isolation, proposals folder protocol, transient unit lifetimes, and automatic orphan cleanup.
Pluggable environments, capability declarations, and zero-server browser-owned task delegation.
Run Voicebox locally under Node 22+ with audio access enabled.
Voicebox requires a modern Node.js runtime and npm:
git clone https://github.com/PaulKinlan/voicebox.git
cd voicebox
npm install
Run the built-in doctor command to check API keys and dependencies:
npm run doctor
Starts the Vite frontend on http://127.0.0.1:5173/ and the backend API on http://127.0.0.1:8787/:
npm run dev
Open http://127.0.0.1:5173/ in Chrome. A secure localhost origin is required to grant microphone access.