setup

A setup command for voice-to-claude that installs its dependencies, builds whisper.cpp, downloads a Whisper speech-recognition model, and creates an isolated Python environment.

In plain words
What is it for?
It helps prepare voice-to-claude on a machine with a supported Python version and handles the initial model and configuration setup.
Why use it?
It automates the installation work needed before the voice-dictation service can run.

Command

Part of the voice-to-claude plugin — 5 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/enesbasbug/voice-to-claude/setup
Clone the repo
git clone --depth 1 https://github.com/enesbasbug/voice-to-claude

Or install voice-to-claude, the plugin that ships this one along with the rest of its 5 commands.

Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 544 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.00544
Opus 5 $0.00009 $0.00272
Sonnet 5 $0.00003 $0.00109
Haiku 4.5 $0.00002 $0.00054

Measured 3d ago against content hash cec2a10c137c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

setup scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf build
commands/setup.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

voice-to-claude Setup

Run the setup script directly. Do not manually check prerequisites - the script handles everything automatically.

Instructions

IMPORTANT: Run the command below directly. Do NOT manually check Python version or install dependencies first - the setup script handles all of this automatically.

python3.10 ${CLAUDE_PLUGIN_ROOT}/scripts/setup.py 2>/dev/null || python3.11 ${CLAUDE_PLUGIN_ROOT}/scripts/setup.py 2>/dev/null || python3.12 ${CLAUDE_PLUGIN_ROOT}/scripts/setup.py 2>/dev/null || python3 ${CLAUDE_PLUGIN_ROOT}/scripts/setup.py

The script will:

  • Auto-detect Python 3.10+ (works with 3.10, 3.11, or 3.12)
  • Create a local .venv in the plugin directory
  • Install dependencies in the venv (isolated)
  • Build whisper.cpp with Metal support (~3-5 min)
  • Download the Whisper model (~142MB)
  • Configure everything

Important: Do not manually check Python version or install dependencies - the script does this automatically.

Step 2: Handle Common Errors

"Microphone permission denied" (macOS):

macOS requires Microphone permission for audio recording.

1. Open System Settings > Privacy & Security > Microphone
2. Find your terminal app (Terminal, iTerm, etc.) and enable it
3. Re-run: /voice-to-claude:setup

"Accessibility permission needed" (macOS):

macOS requires Accessibility permission for keyboard input.

1. Open System Settings > Privacy & Security > Accessibility
2. Find your terminal app and enable it
3. Re-run: /voice-to-claude:start

cmake or build errors:

# Ensure Xcode tools are installed
xcode-select --install

# Try rebuilding
cd ~/.local/share/voice-to-claude/whisper.cpp
rm -rf build
cmake -B build -DGGML_METAL=ON
cmake --build build -j

PortAudio errors:

brew install portaudio

Success

When setup completes successfully, you'll see:

Setup Complete!
To start voice dictation:
  /voice-to-claude:start

Then hold Ctrl+Alt and speak!

Use /voice-to-claude:start to start the daemon.

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 76 lines · 17 tokens per session scan C cec2a10c137c

Subscribe to this mod's changes

setup is a command published in the GitHub repository enesbasbug/voice-to-claude (10 stars, last pushed 5d ago), licensed MIT. It adds 17 tokens to every session and 544 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.