Skip to main content

Setup

otto setup is the first-run wizard that installs relay dependencies, downloads and installs the extension, starts the relay daemon, and guides pairing.

otto setup

Usage

otto setup [options]

Flags

FlagShorthandRequiredTypeDefaultAllowed valuesDescription
--relay-urlNostringRelay URL to configure (skips interactive relay URL prompt)
--non-interactiveNobooleanfalseRun in non-interactive mode; emits deterministic JSON summary
--skip-extensionNobooleanfalseSkip extension download and installation step
--skip-daemonNobooleanfalseSkip relay daemon start step

Examples

# Interactive setup — guided walkthrough
otto setup

# Non-interactive setup for CI/automation
otto setup --non-interactive

# Set relay URL directly
otto setup --relay-url http://127.0.0.1:8787

# Skip extension download (relay-only setup)
otto setup --skip-extension

Non-interactive JSON output

In non-interactive mode, otto setup emits a JSON summary with:

  • Daemon readiness: started or already_running
  • Extension metadata: version, artifact path, checksum status
  • Handoff path: relay URL and next pairing steps

Setup daemon behavior

otto setup ensures the relay daemon is running on the configured relay URL port before completing. If a daemon is already running on that port, setup reuses it (already_running). If the port conflicts with a different daemon, setup fails with explicit remediation: run otto stop, then rerun setup with the intended relay URL.

Exit codes

CodeMeaning
0Setup completed successfully
1Setup failed (port conflict, download error, etc.)