Running as a Service
Install Astonish as an always-on background service
Running Astonish as a background service is the standard way to operate it. The daemon is the foundation that powers all Astonish interfaces — it serves the Studio web UI, listens on communication channels (Telegram, Email), runs scheduled tasks, and manages fleet sessions.
Install and Start the Service
Section titled “Install and Start the Service”astonish daemon installastonish daemon startThis creates a launchd service on macOS or a systemd service on Linux, then starts it immediately. The service is configured to start automatically on boot.
Management Commands
Section titled “Management Commands”astonish daemon start # Start the serviceastonish daemon stop # Stop the serviceastonish daemon restart # Restart the serviceastonish daemon status # Check if the service is runningastonish daemon uninstall # Remove the service entirelyViewing Logs
Section titled “Viewing Logs”astonish daemon logs # Print recent logsastonish daemon logs -f # Follow logs in real timeastonish daemon logs -n 100 # Show the last 100 linesStudio Access
Section titled “Studio Access”When the daemon is running, Studio is available at http://localhost:9393 by default. To use a different port:
astonish daemon install --port 8080astonish daemon startAuthentication
Section titled “Authentication”Studio has built-in authentication enabled by default when running as a daemon. This protects access to your sessions, credentials, and tools. If you are running on a trusted local network and prefer to skip auth, it can be disabled in the configuration file.
What the Daemon Powers
Section titled “What the Daemon Powers”- Studio — The web UI at
http://localhost:9393for chat, flow design, fleet management, and settings. - CLI Chat —
astonish chatconnects to the daemon for session management and tool execution. - Scheduling — Define recurring tasks with
astonish scheduler. The daemon executes them on time. - Channels — Connect Telegram and Email with
astonish channels. The daemon listens for incoming messages and responds. - Fleet sessions — Run multi-agent teams that coordinate on complex tasks.
Running in Foreground
Section titled “Running in Foreground”For debugging, you can run the daemon process in the foreground instead of as a system service:
astonish daemon runThis runs the same daemon code but keeps it attached to your terminal, making it easier to see output and interrupt with Ctrl+C.