CLI Commands
Manage the daemon and sessions from the terminal.
When the daemon is online, botmux delete first asks the owning daemon to run
the same lifecycle teardown as /close: evict the in-memory active session,
persist the closed state, and clean up the worker, backend, and subscriptions.
The local fallback is used only when the owning daemon is confirmed offline. If
an online daemon rejects the request or IPC fails, the command fails without a
local hard kill.
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:
