/voice-control:startfrom voice-control
Start the phone voice remote for this Claude Code session.
Ships in voice-control. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The voice remote runs as a visible, killable background task inside this Claude Code
session — it appears in /tasks and dies with the session. Starting it launches that task,
then shows a scannable QR code + the phone URL. State lives in the plugin's own data dir
(${CLAUDE_PLUGIN_DATA}), not in ~/.config.
Launch the voice daemon as a background task. Use the Bash tool's background mode
(run_in_background) — do not append &, and do not use nohup/setsid/disown
(those detach it to launchd and it loses the cmux trust it needs to type into the pane).
Run exactly this command (the env is set explicitly so it can't pick up another
plugin's data dir):
CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" node "${CLAUDE_PLUGIN_ROOT}/dist/daemon/standalone.js"
It will not return — that is correct; this process is the live voice session and must keep running. (If the OpenAI key is missing it instead writes onboarding state and exits.)
Wait for the daemon to publish the session, then show it. The daemon writes a
machine-level QR code (qr.txt, the same URL/QR for every pane) and a per-pane runtime
file (runtime/<CMUX_SURFACE_ID>.json, so multiple panes don't clobber each other). Poll for
THIS pane's runtime file in a separate, normal (foreground) Bash call — and also handle
the no-API-key case, which writes the machine-level runtime.json and exits:
D="${CLAUDE_PLUGIN_DATA}"
R="$D/runtime/${CMUX_SURFACE_ID:-default}.json"
# Wait for this pane's runtime file AND for the bridge to report the pairing state (`"pairing"`
# settles from null to true/false once the daemon connects), or for the no-API-key notice.
for i in $(seq 1 30); do
{ [ -f "$R" ] && grep -qE '"pairing": (true|false)' "$R"; } && break
[ -f "$D/runtime.json" ] && break
sleep 0.5
done
if [ -f "$R" ]; then cat "$D/qr.txt" 2>/dev/null; echo; cat "$R";
elif [ -f "$D/runtime.json" ]; then cat "$D/runtime.json"; # may be a needsSetup notice
else echo "NOT_RUNNING"; fi
If the output contains "needsSetup": true (instead of a sessionUrl), the daemon
could not start because the OpenAI API key is missing (the background task already exited, so
there's no ghost /tasks entry). Do not show a QR code. Instead, print a friendly,
clearly-formatted message that:
configPath from the JSON to open or create (use that value verbatim);{ "openaiApiKey": "sk-..." }
/voice-control:start after saving.The message field in runtime.json already contains suitable text — you may surface it
as-is and/or reformat it nicely. Then stop.
If you see the QR block and a sessionUrl, present both to the user (always show the
link — it's how any device gets back to this session):
```) so it
renders monospaced and stays scannable — do not summarize, crop, re-wrap, or alter any
character. Show the sessionUrl directly beneath it as a tap/copy fallback."pairing" field in the runtime JSON:
"pairing": true — no device is paired yet, so a pairing window is open: tell them to
scan/open it on their phone within about 90 seconds to connect it, then tap to speak. Their
words arrive here as normal messages and replies are spoken back. Note that the link is
single-use (the first device to claim it pairs; a leaked link can't be used to join later)."pairing": false — a device is already paired: tell them their paired devices reconnect
automatically (just open the link; an overnight sleep needs nothing). To connect a new
device, run /voice-control:pair for a fresh ~90-second window."pairing" is null/absent (the bridge state couldn't be confirmed), just show the link and
say paired devices reconnect, and to add a device run /voice-control:pair./tasks, and to
end it they can run /voice-control:stop or stop that task from /tasks.If you see NOT_RUNNING after the poll, the background task didn't come up — check /tasks
for its output (it logs to stderr) and ${CLAUDE_PLUGIN_DATA}/daemon.log. Confirm the plugin
is loaded, then run /voice-control:start again.
Then stop and return to normal — do not call any further tools. To end it, run /voice-control:stop.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jankocian/cc-voice-control --plugin voice-control5 skills in this plugin
/pairOpen a short pairing window so a new phone/device can connect to the voice remote./spawnOpen a NEW voice-controlled Claude session in another cmux workspace, joining this phone's voice remote as a new switchable thread. Use when the user asks to spin up / open / start another session, instance, or workspace — optionally at a given repo path./statusShow the phone voice remote status./stopStop the phone voice remote.Other plugins' skills for the same job