CLI
Command-line interface for managing the daemon process.
CLI
The primary daemon management interface is comma daemon. The legacy comma-agents-daemon binary remains available for direct daemon process control.
comma daemon start
comma daemon status
comma daemon stop
comma daemon restartUse comma daemon enable or comma daemon disable to manage user-level daemon autostart.
The compatibility binary supports start, stop, restart, and status.
start
Starts the daemon. By default, it detaches and runs in the background. Pass --foreground to run in the current terminal.
# Background mode (default)
comma-agents-daemon start
# Foreground mode
comma-agents-daemon start --foregroundFlags
| Option | Alias | Type | Default | Description |
|---|---|---|---|---|
--foreground | -f | boolean | false | Run in the foreground (don't daemonize) |
--port | -p | number | from config | Override the listening port |
--model-override | string | — | Override model for all agents (e.g. github-copilot/gpt-4o) | |
--verbose | -v | boolean | false | Enable debug-level logging |
# Start on a custom port
comma-agents-daemon start --port 9090
# Start in foreground with model override and verbose logging
comma-agents-daemon start --foreground --model-override github-copilot/gpt-4o --verboseIf the daemon is already running, start exits with an error message and exit code 1.
restart
Stops the daemon, then starts it again with the same flags as start.
comma daemon restart
comma-agents-daemon restart --verbosestop
Stops a running daemon by sending SIGTERM to the process recorded in the PID file. It polls for up to 5 seconds for the process to exit.
# Stop the daemon
comma-agents-daemon stopIf no PID file is found (or it's stale), the command exits cleanly with status code 0.
status
Reports whether the daemon is running, and if so, prints configuration details.
# Check daemon status
comma-agents-daemon status
comma daemon status --jsonSample output (running)
Daemon is running (PID: 12345)
Config: /home/user/.comma/daemon.json
PID file: /home/user/.comma/daemon.pid
Port: 7422
Host: 127.0.0.1Sample output (not running)
Daemon is not runningautostart
Autostart is managed through comma daemon enable and comma daemon disable.
| Platform | Mechanism |
|---|---|
| macOS | launchd user agent |
| Linux | systemd user service |
| Windows | user logon scheduled task |