Claude Code works for minutes at a time. You do not have to sit there and watch.
Give tasks, hear the progress, stop and redirect the work, by voice, across several sessions at once.
▶ Watch the 2-minute demo with sound · real Claude Code sessions, nothing staged
voice-relay is a voice agent that sits next to Claude Code. It hears you, sends your words to the right Claude Code session, and tells you what comes back. Claude Code does the work. The agent keeps you informed while your hands and eyes are busy.
| 🎙️ Several sessions, one voice. Name the project and the task goes there: "in api, run the tests". | ↩️ Open or resume by voice. "Pull up my research session from yesterday" opens it with its last conversation. |
| ✋ Stop and redirect. "Stop that, add a weekly summary, then carry on" is one step. | 🔊 Progress as it works. Short spoken updates, never over you, and the result in a sentence or two. |
| 🔒 A yes before risky steps. Commits, pushes and deletes are read back first. | ☁️ Runs where you choose. Each part runs on an API, on this computer, or on your own server. |
Two real Claude Code sessions, driven by voice in one take: resume a research session, open a new project, ask one while the other builds, stop and redirect, hear the result, approve the commit.
small1920.mp4
Install uv first: the plugin runs its voice server with it. Then install the plugin:
claude plugin marketplace add softcery/claude-code-voice-relay && claude plugin install voice-relay@softcery
- Run
/voice-relayin Claude Code. The first run installs the voice server in about half a minute. The status line of Claude Code showsvoice-relay: connected as <folder>when it is up. - A small voice window opens: an app window in Chrome or Edge, else a tab of your default browser. When the browser asks for the microphone, allow it.
- The window shows the three parts of the agent. Paste two keys: ElevenLabs for speech and OpenRouter for the agent model. Or pick This computer for engines that need no key; the window names the download size and asks first.
- Press Test and start. Each part gets real input and shows what it heard and how fast it answered.
- The agent says it is ready. Give your first task: "Tell Claude Code to list the files in this project."
Next times, /voice-relay opens the window, and it connects by itself.
- Wear headphones. Without them, the agent can hear its own voice.
- Turn on accept-edits mode in Claude Code (Shift+Tab), or add allow rules for the commands you trust. The agent cannot approve a permission prompt; it only tells you that one waits.
- Start with the session name when two or more are linked: "In api, run the tests."
- Say a long task in one go. Short pauses are fine; the agent waits until you finish.
- To stop the agent's own speech, just talk. To stop Claude Code, say "stop".
| You say | What happens |
|---|---|
| "Pull up my research session from yesterday." | A terminal opens with Claude Code and its last conversation in that folder. |
| "Open a new session in habit tracker." | A terminal opens with a new Claude Code session there. It links by itself. |
| "Ask research whether SQLite still works for phone sync." | The question goes to that session only. You hear the answer in a sentence or two. |
| "In api, run the tests, but don't fix anything." | Claude Code gets your words as you said them, limits included. |
| "Actually, stop that. Use only the standard library, then carry on." | The running turn stops, and the new instructions go in the same step. |
| "Read me the full answer." | The agent reads Claude Code's last answer in full. |
| "Commit it." | "I'll send: commit it, in habit-tracker. Go ahead?" It sends after your yes. |
Built-in /voice |
voice-relay | |
|---|---|---|
| What it is | Dictation into the prompt box | A voice agent that talks back |
| Sessions | The one in front of you | Several at once, by project name |
| While Claude Code works | Silent | Short progress updates, questions answered |
| Stop a running turn | At the keyboard | By voice, with new instructions |
| Permission prompts | At the screen | At the screen; the agent tells you one waits |
- Claude Code 2.1.303+
- uv
- A browser with a microphone. With Chrome or Edge, the voice window opens on its own, without tabs. Headphones recommended.
- For the defaults, two API keys: ElevenLabs and OpenRouter. Other providers, and engines on this computer with no key, are on the settings page. See Where each part runs.
/voice-relay link this session, start the voice server, open the voice window
/voice-relay settings open all settings: providers, voices, prompt
/voice-relay off unlink this session
/voice-relay quit stop the voice server for all sessions
Next times, the voice window connects by itself and shows the linked sessions, what each one does, and the conversation. Tap the microphone to mute. The gear opens the three parts again. If the window does not open by itself, open http://127.0.0.1:7860/voice.
Run /voice-relay in each session you want to talk to. Each session links under its folder name, for example shop and api. Name the session when you speak: "in api, run the tests". With one session linked, no name is needed. If the agent cannot tell which session you mean, it asks.
Say "open a new session in api" and the agent opens a terminal window with Claude Code in that folder. It asks first only when the folder is unclear. The new session links by itself, and a task you gave goes to it. Say "pull up the research session" to continue the last conversation in that folder instead.
- The agent looks for the folder in the projects folder from the settings page (
VOICE_RELAY_PROJECTS), and next to the linked sessions. - The terminal is Terminal (or your handler for
.commandfiles) on macOS, a console window on Windows, andx-terminal-emulator, GNOME Terminal, Konsole or xterm on Linux. - On macOS and Linux, set
VOICE_RELAY_TERMINALto use another terminal: a command that runs its last argument withsh -c, for examplekittyorwezterm start --.
The voice server runs on its own, so closing the session that started it does not stop it. It stops after 10 minutes with no linked session and no voice window, or on /voice-relay quit.
The server shows an icon in the system tray (the macOS menu bar). Its colour gives the state: grey with no voice window, green listening, blue Claude Code working, orange Claude Code waiting for your approval, red settings to fix. The menu lists the linked sessions and has Open voice window, Mute microphone, Settings and Quit. Set VOICE_RELAY_TRAY=off to run without it. On Linux, the icon needs a desktop with tray support.
| Symptom | What to do |
|---|---|
| No window opens | Open http://127.0.0.1:7860/voice. If it does not load, read ~/.config/voice-relay/start.log. |
/voice-relay reports that uv is missing |
Install uv, then restart Claude Code so it finds uv on the PATH. |
| The agent interrupts itself or answers its own words | Wear headphones. |
| "No Claude Code session is listening" | Run /voice-relay in that session. The status line shows connected as <folder>. |
| A new session opened by voice does not link | Confirm the folder trust question in its terminal. |
| Claude Code stops and the agent says it waits for you | A permission prompt waits at the screen. Answer it there, or use accept-edits mode. |
| The agent mishears names | Pick an API for speech recognition; local engines know fewer names. Rename a folder to a word that is easy to say. |
| Answers are slow | Test and start shows the time of each part. The slowest part is the one to change. |
Silence after /reload-plugins |
Run /voice-relay again. |
| Something else | Read server.log in ~/.config/voice-relay/, and open an issue with its last lines. |
- Run
/voice-relay quitto stop the voice server. - On the settings page, under On this computer, remove the local engines you installed. This deletes their models and packages.
- Run
claude plugin uninstall voice-relay@softcery, thenclaude plugin marketplace remove softcery. - Delete
~/.config/voice-relay/: your settings, keys, rules and logs.
The agent has three parts: speech recognition, the agent model and the voice. Pick where each one runs in the voice window or on the settings page, http://127.0.0.1:7860/settings.
| API | This computer | Your server | |
|---|---|---|---|
| Speech recognition | ElevenLabs, Deepgram, AssemblyAI, Cartesia, OpenAI | Moonshine, Whisper | any /v1/audio/transcriptions server |
| Agent model | OpenRouter, OpenAI, Anthropic, Google, Groq | Ollama, LM Studio, llama.cpp | any OpenAI-compatible server |
| Voice | ElevenLabs, Cartesia, OpenAI, Deepgram | Kokoro, Piper, Pocket TTS | any /v1/audio/speech server |
| Cost | per use, on your provider account | none | your server |
The agent model only runs the conversation; Claude Code does the work. Pick a fast model with reliable tool calling. Claude Code itself is billed as usual.
The settings page lists the voices of the provider with samples and the OpenRouter models with prices. Changes apply when you save: the voice window reconnects with them, with no restart. The page uses Web Awesome components from jsDelivr, so it needs internet access. It writes ~/.config/voice-relay/.env (mode 600). You can edit that file instead; a variable in the shell environment overrides it.
All settings
| Variable | Values | Default | |
|---|---|---|---|
| Speech-to-text | VOICE_RELAY_STT |
elevenlabs deepgram assemblyai cartesia openai moonshine whisper compatible |
elevenlabs |
| STT language | VOICE_RELAY_STT_LANGUAGE |
provider language code, for example uk, multi |
provider default |
| STT model | VOICE_RELAY_STT_MODEL |
provider model name; for whisper the size: tiny base small medium large-v3-turbo large-v3 |
provider default, small for whisper |
| LLM | VOICE_RELAY_LLM |
openrouter openai anthropic google groq ollama lmstudio llamacpp compatible |
openrouter |
| LLM model | VOICE_RELAY_LLM_MODEL |
provider model name | Claude Haiku 5.5 on OpenRouter and Anthropic, gpt-6-luna on OpenAI, gemini-3.6-flash on Google, openai/gpt-oss-120b on Groq |
| Text-to-speech | VOICE_RELAY_TTS |
elevenlabs cartesia openai deepgram kokoro piper pocket compatible |
elevenlabs |
| Voice | VOICE_RELAY_TTS_VOICE |
provider voice id | provider default |
| Speech speed | VOICE_RELAY_TTS_SPEED |
0.7 to 1.2 |
1.0 |
| Progress interval | VOICE_RELAY_NARRATION_SECONDS |
10 to 300 |
30 |
| Projects folder | VOICE_RELAY_PROJECTS |
a folder with your projects | none |
| Terminal | VOICE_RELAY_TERMINAL |
a terminal command, macOS and Linux | the system terminal |
Keys: ASSEMBLYAI_API_KEY, DEEPGRAM_API_KEY, CARTESIA_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, GROQ_API_KEY, ELEVENLABS_API_KEY. Shell environment variables work too.
VOICE_RELAY_LLM_BODY is merged into each request, for example {"chat_template_kwargs": {"enable_thinking": false}}. For Claude models on OpenRouter, reasoning is off, since a spoken reply cannot wait for it; set {"reasoning": {"enabled": true}} to turn it on. Other models keep their own default.
Speech on this computer
These engines run on this computer, with no API key and no audio sent out:
| Engine | Part | Languages | Download |
|---|---|---|---|
| Moonshine | speech-to-text | 10, one model each | 50 MB packages, 140 MB model |
| Whisper | speech-to-text | 99 | 15 MB packages, 75 MB (tiny) to 3 GB (large-v3) model |
| Kokoro | text-to-speech | English | 25 MB packages, 340 MB model |
| Piper | text-to-speech | 50, one model per voice | 50 MB packages, 20 to 110 MB voice |
| Pocket TTS | text-to-speech | English | 600 MB packages with PyTorch, 450 MB model |
None of them is part of the install. When you pick one, as This computer in the voice window or in the settings, a dialog names the download size and asks first. The plugin then installs the engine's packages into its own environment and downloads the model. The settings page, under On this computer, shows the progress. It also removes an engine you no longer use: its models, and its packages that no other installed engine needs. It warns when this computer has less than 8 GB of memory or 4 cores.
Moonshine's models for languages other than English use the non-commercial Moonshine Community License.
Local engines are slower than the API providers. Whisper small hears well in most languages; base and tiny answer faster and mishear more. On an NVIDIA GPU, Whisper uses it.
The language list of each speech-to-text provider comes from the provider itself: pipecat's map of verified languages, Deepgram's model list, Moonshine's catalog.
LLM apps on this computer
The agent model can run in an app on this computer. The plugin does not install the app: install it, download a model, and keep it running.
| App | VOICE_RELAY_LLM |
Address | Steps |
|---|---|---|---|
| Ollama | ollama |
localhost:11434 |
Install Ollama. Run ollama pull <model>. Start Ollama with OLLAMA_CONTEXT_LENGTH=32768, since its default context is short. |
| LM Studio | lmstudio |
localhost:1234 |
Install LM Studio. Download a model. In the Developer tab, load the model and start the server. |
| llama.cpp | llamacpp |
localhost:8080 |
Install llama.cpp. Run llama-server -m <model.gguf> --jinja. --jinja turns on tool calls. |
Then pick This computer for the agent model and the app. The voice window lists the models the app serves. Set VOICE_RELAY_LLM_MODEL when you edit the config file instead.
Pick a model that calls tools reliably; the Test button checks it. For an app on another computer or port, pick Your server and give its address.
Your own servers
Each part can run on a server you run: at home, in an office cluster, or on a rented GPU. The plugin needs its address, and a key if the server asks for one. Model size does not matter to the plugin; the server does the work. Each part uses the matching OpenAI API shape:
| Part | compatible needs |
Server examples |
|---|---|---|
| Speech-to-text | VOICE_RELAY_STT_URL, VOICE_RELAY_STT_MODEL, optional VOICE_RELAY_STT_KEY |
Whisper servers on /v1/audio/transcriptions, for example speaches or vLLM |
| LLM | VOICE_RELAY_LLM_URL, VOICE_RELAY_LLM_MODEL, optional VOICE_RELAY_LLM_KEY |
vLLM, SGLang, llama.cpp, LM Studio, TGI |
| Text-to-speech | VOICE_RELAY_TTS_URL, VOICE_RELAY_TTS_MODEL, VOICE_RELAY_TTS_VOICE, optional VOICE_RELAY_TTS_KEY |
servers on /v1/audio/speech with pcm output, for example Kokoro-FastAPI |
VOICE_RELAY_LLM=compatible
VOICE_RELAY_LLM_URL=http://gpu-box:8000/v1
VOICE_RELAY_LLM_MODEL=qwen3.6-35b-a3b
What the LLM server needs:
- Tool calling on. The agent drives Claude Code through tools. In vLLM, start the server with
--enable-auto-tool-choiceand the--tool-call-parserof the model. - A context window of 16k tokens or more. The plugin reads the window from the server's
/v1/modelsand summarizes the older messages before they fill it. - A first token in about a second. Slower than 2 s feels broken in a spoken conversation.
The Test button checks all three: it sends three typical commands to the model and reports which it got right, and it warns on a slow answer or a small window. The voice window and the settings page both have it.
Two Markdown files in ~/.config/voice-relay/ change what the agent is told. Edit them in any editor or in the Behaviour section of the settings page.
rules.md: your rules, appended to the prompt. For example: "Call me Alex. Never send a push without asking twice."prompt.md: your copy of the built-in prompt, used in its place. The built-in prompt is tuned for Claude Haiku; adjust your copy when you pick another model. When an update changes the built-in prompt, the settings page says your copy is older. Delete the file, or press Reset, to go back to the built-in prompt.
┌── long-poll ── mod in Claude Code (research)
voice window ── WebRTC ── voice server (pipecat) ───┤
(microphone) 127.0.0.1:7860 └── long-poll ── mod in Claude Code (habit-tracker)
- The plugin contains a Claude Code mod and a pipecat voice server.
- The voice LLM has three tools:
send_task,abortwith optional new instructions, andopen_session. The mod in each linked session long-polls the server and submits each task to Claude Code as your prompt. /voice-relayrunsvoice-relay start, which starts the server as a detached process and exits once it answers.- The mod reports each tool-calling step and each final answer back. Progress is spoken at most every 30 s (
VOICE_RELAY_NARRATION_SECONDS), only in a pause, and never over you. - On connect, each mod sends the newest part of its visible session history, about 6k tokens, so the agent has context.
- Context is append-only, so LLM servers can reuse their prompt cache. Claude models on OpenRouter get explicit cache points.
- Past 40k tokens, the older messages are summarized and the newest 12 are kept.
Security:
- The server listens on 127.0.0.1 only.
- It refuses each request whose
OriginorHostis not the server itself, so a website open in your browser cannot reach the voice agent, and DNS rebinding fails. - The mod and tray routes require the token in
~/.config/voice-relay/token(mode 600). The page API requires the token the pages carry.
Logs: server.log, start.log and tray.log in ~/.config/voice-relay/.
| Data | Goes to |
|---|---|
| Your voice | The speech recognition provider you pick. With a local engine, nowhere. |
| Your words, Claude Code's progress lines and answers, about 6k tokens of each session's visible history | The agent model provider you pick. With a local app or your server, nowhere else. |
| The agent's replies | The voice provider you pick. With a local engine, nowhere. |
| Your code and files | Nowhere through voice-relay. Claude Code works as it always does. |
Keys stay in ~/.config/voice-relay/.env and go only to their own provider.
How is this different from /voice? /voice dictates into the prompt box. voice-relay is an agent that talks back, works with several sessions and does not wait for Claude Code to finish.
What does it cost? voice-relay is free. You pay your providers for the speech minutes, tokens and characters of the models you pick. With engines on this computer, the voice part costs nothing.
Can the agent approve actions? No. Permission prompts stay at the screen, for you.
Does it work with other coding agents? No. It is a Claude Code plugin: the mod lives in Claude Code's events.
Which languages? The agent speaks the language you speak, as far as the providers you pick support it. Set the speech recognition language on the settings page; the default is English.
- One voice window at a time. A new one replaces the old one.
- The agent cannot answer permission prompts. Use accept-edits mode or allow rules for hands-free work.
- The voice agent is an LLM: now and then it asks an extra question or words a reply oddly. Hard-to-undo steps get a read-back first.
- Mods are an early-access Claude Code API and can change.
- Run
/voice-relayagain after/reload-plugins.
uv sync
uv run pytest
uv run ruff check src tests
claude plugin test .
claude plugin validate .
claude --plugin-dir . # load the mod from this checkout
Bug reports, ideas and pull requests are welcome. See CONTRIBUTING.md. Report a security issue as SECURITY.md says.
voice-relay is made by Softcery. We build voice AI agents for products: low latency, natural turn-taking, self-hosted stacks.
