Skip to main content

CLI Reference

The otto CLI manages the relay daemon, pairs extension nodes, registers controller clients, executes browser commands, and tails operation logs. All commands support --help for inline usage.

Command groups

GroupCommandsPurpose
Relay lifecycleotto start, otto stop, otto statusStart, stop, and inspect the relay daemon
Setupotto setupInteractive or non-interactive first-run setup
Configurationotto config, otto settingsRead and edit controller configuration
Extensionotto extension update, otto extension infoManage the packaged extension asset
Pairingotto authcode, otto pair, otto revokePair extension nodes with the relay
Clientotto client register/login/status/forget/removeManage controller client identities
Commandsotto commands list, otto cmd, otto testBrowse, run, and stream browser commands
Logsotto logs list/follow/status/exportQuery and stream relay operation logs
Listenerotto listener subscribe-network/unsubscribe/listManage network interception streams

Global behavior

  • All commands accept --help for usage and flag descriptions.
  • Use --json on supported commands for machine-readable output. Non-interactive mode removes TTY formatting.
  • Commands exit 0 on success, non-zero on failure.
  • When exactly one node is connected, targetNodeId is auto-selected. With multiple nodes, pass --node-id.

Configuration file

Controller configuration is stored at ~/.otto/config.json. Use otto config to read it and otto settings to edit it interactively.