Environment Variables and File Locations

Environment variables (set in ~/.botmux/.env)

VariableDefaultDescription
BOTS_CONFIG(unset)Path to bots.json (overrides the default location)
WEB_HOST0.0.0.0HTTP service bind address
WEB_EXTERNAL_HOST(auto-detect LAN IP)External hostname/IP used in terminal links (for public/intranet-domain access, see Web Terminal)
WEB_EXTERNAL_PORT(local proxy port)External port used in terminal links, overriding the local proxy port (8800 + botIndex) so a relay host can listen on a different port number; in a multi-bot setup it's the base port, with the actual port being WEB_EXTERNAL_PORT + botIndex (see Web Terminal)
SESSION_DATA_DIR~/.botmux/dataSession and queue storage directory
BACKEND_TYPE(auto-detect)pty forces a downgrade to pure pty mode
DEBUG(unset)Set to 1 to enable debug logging
VariableDefaultDescription
BOTMUX_DASHBOARD_HOST0.0.0.0Dashboard HTTP bind address
BOTMUX_DASHBOARD_PORT7891Dashboard HTTP port
BOTMUX_DASHBOARD_EXTERNAL_HOSTWEB_EXTERNAL_HOST or auto-detectHost used in URLs the CLI prints
BOTMUX_DAEMON_IPC_BASE_PORT7892Each daemon's IPC port = base + botIndex
BOTMUX_WORKFLOW_RUNS_DIR~/.botmux/workflow-runsWorkflow run storage directory

File locations

PathDescription
~/.botmux/bots.jsonBot configuration
~/.botmux/.envEnvironment variables
~/.botmux/data/Session data, message queues
~/.botmux/logs/Daemon logs
~/.botmux/bin/botmuxIn-session wrapper script (written automatically)
~/.botmux/lark-scopes.jsonFull permission-request JSON
~/.botmux/.dashboard-secretDashboard HMAC secret (0600)