Agent-driven install
このコンテンツはまだ日本語訳がありません。
This page is an install runbook for an AI coding agent. Hand the agent this page (or the raw
Markdown from docs/INSTALL-AGENT.md)
and it can install Utter on a Linux or macOS machine end to end, verifying each step, without any
prior context about the repo. It is also useful for a human who wants the plain, step-by-step
sequence.
If you are the agent: you are the installer — execute the commands, don’t just summarise them.
Ground rules for the agent
Section titled “Ground rules for the agent”- You start with nothing. Everything you need is on this page.
- Report every failure honestly. Do not claim something works unless you ran it and saw the result. Do not fabricate output.
- Never invent fixes you cannot verify. If a step needs a permission, device or account you can’t get, say so and stop.
- Ask the human before anything destructive (uninstalling, deleting files, changing system settings beyond what the app itself asks for).
- This is a voice app. Any step that checks recognition needs the human to speak. Prompt them and wait.
- Run commands in a terminal and report, for each step, the exact command and the exact output (trim long logs but keep the error lines).
Phase 0 — Detect the platform and report the environment
Section titled “Phase 0 — Detect the platform and report the environment”uname -s # Linux | Darwinuname -m # x86_64 | arm64 | aarch64# Linux:cat /etc/os-release 2>/dev/null | head -n 2# macOS:sw_vers 2>/dev/nullpython3 --version # Utter needs 3.12+curl --version | head -n 1Record the OS, architecture and Python version. Utter needs Python 3.12+ for the CLI; the
macOS app bundles its own Python runtime, so 3.12+ is only needed for the source path. Stop and
report if curl is missing.
Phase 1 — Install
Section titled “Phase 1 — Install”Option A — the curl installer (recommended, both platforms)
Section titled “Option A — the curl installer (recommended, both platforms)”Interactive wizard (a real terminal is best):
curl -fsSL https://utter.sujaisubbanna.com/install.sh -o install.shchmod +x install.sh && ./install.shNon-interactive, recommended defaults:
curl -fsSL https://utter.sujaisubbanna.com/install.sh | bash -s -- --yesPreview the plan without changing anything:
./install.sh --dry-run- Linux: installs dependencies, the assistant core, the GUI, and the
utter-runner.servicesystemd user unit, then offers to enable and start it. - macOS: resolves the release for your architecture (
aarch64for Apple Silicon,x86_64for Intel), downloads the.dmg, verifies its sha256 against the release checksums, installsutter.appto/Applications(or~/Applicationsif that is not writable), clears quarantine, re-signs the app with a stable code identity (identifier "org.utter.settings") so macOS privacy grants persist, and launches it.
Option B — clone and run the installer
Section titled “Option B — clone and run the installer”git clone https://github.com/sujaisubbanna/utter-assistant.gitcd utter-assistant./install.sh # or: ./install.sh --dry-runOption C — minimal package install (Linux)
Section titled “Option C — minimal package install (Linux)”./install/install.sh --yesUndo with ./install/uninstall.sh --yes.
Option D — source checkout on macOS (developers)
Section titled “Option D — source checkout on macOS (developers)”End users should use Option A. For a source checkout:
./macos/setup.sh # creates .venv-macos, writes the launchd agents./macos/setup.sh --no-agent # environment + config only, no background agentsmacos/setup.sh refuses to clobber the agents a packaged utter.app already manages — if a
runtime is already installed it points you at the app’s Settings tab instead.
Phase 2 — Verify the install
Section titled “Phase 2 — Verify the install”systemctl --user status utter-runner.service --no-pager# if it is not running yet:systemctl --user enable --now utter-runner.serviceThen open the GUI: on first launch the mandatory onboarding wizard runs before the settings shell; the Settings tab shows the runner service state with a Start/Restart button.
ls -d /Applications/utter.appcodesign -d -r- /Applications/utter.app 2>&1 | tail -n 1 # expect: identifier "org.utter.settings"launchctl list | grep -i uttertail -n 20 ~/Library/Logs/utter/utter.logThe app’s Settings tab unpacks the bundled Python runtime into
~/Library/Application Support/utter/runtime/ and writes two launchd agents,
com.utter.runner and com.utter.assistant. The first-run onboarding wizard opens
automatically on first launch, and its permissions step reappears whenever a required permission
is still missing.
Phase 3 — macOS permissions (required before voice works)
Section titled “Phase 3 — macOS permissions (required before voice works)”In System Settings → Privacy & Security, grant, for the app utter:
| Permission | Used for | Symptom when missing |
|---|---|---|
| Microphone | capturing speech | no audio |
| Speech Recognition | Apple on-device recogniser (fallback) | Apple STT unavailable |
| Input Monitoring | the global push-to-talk key | keys never fire |
| Accessibility | typing text, pressing keys, window titles | injection silently does nothing |
| Screen Recording | reading window titles / screenshots | window titles come back empty |
Use the Grant access buttons in the onboarding wizard’s permissions step, or on the Settings tab (they open the exact pane).
Critical gotcha: Input Monitoring and Accessibility only take effect for newly started processes. The wizard and the Settings tab restart the background agents automatically when they see them flip to granted; by hand:
launchctl kickstart -k gui/$(id -u)/com.utter.assistantlaunchctl kickstart -k gui/$(id -u)/com.utter.runnerIf a permission reads as granted but the API still does nothing, remove the app from the list and add it back (toggling is often not enough), then restart the agents.
Phase 4 — First run (needs the human to speak)
Section titled “Phase 4 — First run (needs the human to speak)”- Open the app and confirm permissions on the Settings tab (macOS) or that the runner is running (Linux).
- Hold the assistant key (macOS default: right Command), say “open youtube”, release.
- Expected: a start sound, the on-screen overlay, then the browser opens YouTube and a success sound plays.
If nothing fired, check the logs first:
- macOS:
tail -f ~/Library/Logs/utter/utter.log - Linux:
journalctl --user -u utter-runner -f
Phase 5 — Uninstall (ask the human first)
Section titled “Phase 5 — Uninstall (ask the human first)”./install.sh --uninstall --yes# or pipe a fresh copy:curl -fsSL https://utter.sujaisubbanna.com/install.sh | bash -s -- --uninstall --yes- Linux: removes the installed files and disables/stops the systemd user units.
- macOS: stops the agents and removes
/Applications/utter.app,~/Library/Application Support/utter,~/Library/Logs/utter, and the two~/Library/LaunchAgents/com.utter.*.plist.~/.config/utter(your config) is kept.
Troubleshooting
Section titled “Troubleshooting”- macOS: “utter is damaged and can’t be opened.” Quarantine was not cleared:
xattr -cr /Applications/utter.app. - macOS: push-to-talk does nothing after granting Input Monitoring. The agents are still the old, un-granted processes — restart them (Phase 3).
- Linux:
utter-runnerfailed to start.systemctl --user status utter-runner.serviceandjournalctl --user -u utter-runner -n 50for the traceback. - No speech recognised. On macOS ensure Microphone + Speech Recognition are granted; the default STT is local whisper.cpp with Apple Speech as fallback. On Linux check the input device.
- Installer checksum failure. Re-run; the download can be retried. If it persists, report the asset name and the expected/actual hash.
Report format
Section titled “Report format”PLATFORM: <Linux|macOS> <arch> <version>INSTALL METHOD: <A|B|C|D>STATUS: pass | fail | partialRAN: <exact commands>SAW: <exact output, trimmed>PROBLEMS: <what broke, with evidence>COULD NOT TEST: <and why>