tts:setup

A first-run setup command for claude-tts, a system that reads coding-agent responses aloud. It configures the speech engine, language-model backend, settings, and background service.

In plain words
What is it for?
It helps choose voices and voice policies, configure the processing backend, install the operating-system service, and verify that the daemon starts.
Why use it?
It brings the required components together so text-to-speech can start and continue running in the background.

Command

Part of the claude-tts plugin — 1 skill, 8 commands, 5 hooks 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/chendrizzy/claude-tts/setup
Clone the repo
git clone --depth 1 https://github.com/chendrizzy/claude-tts

Or install claude-tts, the plugin that ships this one along with the rest of its 1 skill, 8 commands, 5 hooks.

Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 844 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00033 $0.00844
Opus 5 $0.00016 $0.00422
Sonnet 5 $0.00007 $0.00169
Haiku 4.5 $0.00003 $0.00084

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

Security

Grade A, and why

tts:setup scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/setup.md · 59 lines

What it actually says

You are running first-run setup for the claude-tts plugin.

Invoke the tts-setup skill and follow it end-to-end. The skill bootstraps:

  1. Detect the platform and architecture (macOS/Linux, arm64/x86_64).
  2. Ensure uv and a project virtual environment are available.
  3. Pick the speech engine.
  4. Ask whether voices vary per project or stay shared across all projects.
  5. Ask for voice gender policy: balanced, female-only, male-only, mostly female, or mostly male. The stable config values are balanced, female_only, male_only, female_preferred, and male_preferred; mostly means 80/20.
  6. Pick the LLM backend for content routing.
  7. Calibrate the chosen backend against the bundled mini-eval.
  8. Install the OS background service (launchd on macOS, systemd --user on Linux).
  9. Write ~/.config/claude-tts/config.json.
  10. Verify the daemon starts and the socket binds at ${CLAUDE_TTS_SOCKET:-${XDG_RUNTIME_DIR:-/tmp}/claude-tts.sock}.

Run the skill now. Do not hardcode absolute paths — always use ~/.config/claude-tts and the XDG socket expression above. If a step cannot complete, report which step failed and the single most likely remediation, then stop.

Note: the full bootstrap and calibration logic lives in the tts-setup skill. If the skill reports it is a stub, tell the user setup automation is not yet available in this build and point them at /tts:doctor to check current health.

Only edge-tts and kokoro expose bundled gender metadata in this plugin. For say, espeak, and voicebox, setup must keep project_voices.enabled=false and explain that gender/per-project assignment is not enforceable for that engine. Changing a generated voice pool can remap projects, so restart the daemon after changing these preferences.

Optional post-setup integrations (not part of the automated skill flow):

  • Cursor editor. To drive TTS from Cursor too, manually wire the three cursor-*.sh hooks (cursor-pre-tool-use.sh, cursor-post-tool-use.sh, cursor-after-agent-response.sh) into Cursor's hook config — they are not registered in hooks/hooks.json, so Claude Code never loads them. They map Cursor's preToolUse/postToolUse/afterAgentResponse events onto the Claude Code hooks with CLAUDE_TTS_PASSTHROUGH=false (the gate defaults to true; setting it false keeps Cursor's stdout clean). On macOS the after-response hook uses GNU timeoutbrew install coreutils. Knobs: CLAUDE_TTS_ENABLED, CLAUDE_TTS_PYTHON, CLAUDE_TTS_PASSTHROUGH. See the Cursor section of the README for the full steps.

  • 🔊 statusline segment. Everything spoken is logged to a bounded per-session JSONL (~/.claude/logs/tts/spoken/<session>.jsonl), readable with /tts:log; sub-agents and background-agents each get their own session file. The statusline config block (subagent_aware, active_window_s, include_subagent_in_main) is VIEW-ONLY — it tunes what that view shows, not what the daemon logs. The repo ships the config block and the spoken log; the wrapper that renders the live 🔊 segment in your statusline is a personal/global file and is not shipped here.

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. 2d ago First seen · 59 lines · 33 tokens per session scan A e29420c94027

Subscribe to this mod's changes

tts:setup is a command published in the GitHub repository chendrizzy/claude-tts (1 stars, last pushed 16d ago), licensed MIT. It adds 33 tokens to every session and 844 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.