CLI Commands
Manage the daemon and sessions from the terminal.
Auto-Start on Boot
- macOS: writes
~/Library/LaunchAgents/com.botmux.daemon.plistand loads it withlaunchctl bootstrap. - Linux: writes
~/.config/systemd/user/botmux.serviceand runssystemctl --user enable --now.- On servers / headless environments, logging out stops the service; to keep it running across logout, run
sudo loginctl enable-linger <username>.
- On servers / headless environments, logging out stops the service; to keep it running across logout, run
- The
node/cli.jspaths in the unit file come from the currentprocess.execPath; after switching versions with nvm/fnm, just runenableonce to rewrite them (start/restartalso auto-detect path changes and refresh in place). enable/disableonly manage the auto-start hook and don't touch a running daemon — avoiding the "I just wanted to turn off auto-start but it killed the service too" problem.
In-Session Subcommands (for the CLI agent)
Session info is inferred automatically from ancestor-process markers, so the agent can call these directly: