Skip to content

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.

  1. You start with nothing. Everything you need is on this page.
  2. Report every failure honestly. Do not claim something works unless you ran it and saw the result. Do not fabricate output.
  3. Never invent fixes you cannot verify. If a step needs a permission, device or account you can’t get, say so and stop.
  4. Ask the human before anything destructive (uninstalling, deleting files, changing system settings beyond what the app itself asks for).
  5. This is a voice app. Any step that checks recognition needs the human to speak. Prompt them and wait.
  6. 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”
Terminal window
uname -s # Linux | Darwin
uname -m # x86_64 | arm64 | aarch64
# Linux:
cat /etc/os-release 2>/dev/null | head -n 2
# macOS:
sw_vers 2>/dev/null
python3 --version # Utter needs 3.12+
curl --version | head -n 1

Record 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.

Section titled “Option A — the curl installer (recommended, both platforms)”

Interactive wizard (a real terminal is best):

Terminal window
curl -fsSL https://utter.sujaisubbanna.com/install.sh -o install.sh
chmod +x install.sh && ./install.sh

Non-interactive, recommended defaults:

Terminal window
curl -fsSL https://utter.sujaisubbanna.com/install.sh | bash -s -- --yes

Preview the plan without changing anything:

Terminal window
./install.sh --dry-run
  • Linux: installs dependencies, the assistant core, the GUI, and the utter-runner.service systemd user unit, then offers to enable and start it.
  • macOS: resolves the release for your architecture (aarch64 for Apple Silicon, x86_64 for Intel), downloads the .dmg, verifies its sha256 against the release checksums, installs utter.app to /Applications (or ~/Applications if 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.
Terminal window
git clone https://github.com/sujaisubbanna/utter-assistant.git
cd utter-assistant
./install.sh # or: ./install.sh --dry-run

Option C — minimal package install (Linux)

Section titled “Option C — minimal package install (Linux)”
Terminal window
./install/install.sh --yes

Undo 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:

Terminal window
./macos/setup.sh # creates .venv-macos, writes the launchd agents
./macos/setup.sh --no-agent # environment + config only, no background agents

macos/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.

Terminal window
systemctl --user status utter-runner.service --no-pager
# if it is not running yet:
systemctl --user enable --now utter-runner.service

Then 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.

Terminal window
ls -d /Applications/utter.app
codesign -d -r- /Applications/utter.app 2>&1 | tail -n 1 # expect: identifier "org.utter.settings"
launchctl list | grep -i utter
tail -n 20 ~/Library/Logs/utter/utter.log

The 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:

PermissionUsed forSymptom when missing
Microphonecapturing speechno audio
Speech RecognitionApple on-device recogniser (fallback)Apple STT unavailable
Input Monitoringthe global push-to-talk keykeys never fire
Accessibilitytyping text, pressing keys, window titlesinjection silently does nothing
Screen Recordingreading window titles / screenshotswindow 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:

Terminal window
launchctl kickstart -k gui/$(id -u)/com.utter.assistant
launchctl kickstart -k gui/$(id -u)/com.utter.runner

If 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)”
  1. Open the app and confirm permissions on the Settings tab (macOS) or that the runner is running (Linux).
  2. Hold the assistant key (macOS default: right Command), say “open youtube”, release.
  3. 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)”
Terminal window
./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.
  • 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-runner failed to start. systemctl --user status utter-runner.service and journalctl --user -u utter-runner -n 50 for 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.
PLATFORM: <Linux|macOS> <arch> <version>
INSTALL METHOD: <A|B|C|D>
STATUS: pass | fail | partial
RAN: <exact commands>
SAW: <exact output, trimmed>
PROBLEMS: <what broke, with evidence>
COULD NOT TEST: <and why>