Daemon Overview
The Stackie daemon (stackied) is a long-running background process that
manages all sandbox lifecycle operations. The CLI and dashboard communicate
with it over IPC, while AI agents connect through the built-in MCP server.
Startup Sequence
- Load settings from
~/.stackie/stackie.yaml - Initialize the database at
~/.stackie/stackie.db - Restore auth session from the OS credential store
- Clean up orphaned MCP sessions from the previous run
- Start the IPC listener
- Start the HTTP API server
- Start the MCP server
- Start background tasks (health checks, stats, updates)
Starting and Stopping
# Start the daemon
stackie daemon start
# Check if it is running
stackie daemon status
# Stop the daemon
stackie daemon stop
The daemon writes its PID to ~/.stackie/stackied.pid.