Always-on Setup
y0mcp agents run as system services that start on boot and auto-restart on crash.
Machine requirements
Section titled “Machine requirements”| Setup | Notes |
|---|---|
| Mac Studio / Mac Mini / Linux desktop | Works out of the box |
| Laptop (open) | Use caffeinate or disable sleep |
| Laptop (closed) | Use a VPS (e.g., Hetzner CAX11 ~€3/mo) |
macOS (launchd)
Section titled “macOS (launchd)”# Startlaunchctl load ~/Library/LaunchAgents/dev.y0mcp.my-project.plist
# Stoplaunchctl unload ~/Library/LaunchAgents/dev.y0mcp.my-project.plist
# Check statuslaunchctl list | grep y0mcp
# View logstail -f ~/.y0mcp/my-project.logKeep laptop awake
Section titled “Keep laptop awake”caffeinate -s &Linux (systemd)
Section titled “Linux (systemd)”# Startsystemctl --user enable --now y0mcp-my-project
# Stopsystemctl --user disable --now y0mcp-my-project
# Check statussystemctl --user status y0mcp-my-project
# View logsjournalctl --user -u y0mcp-my-project -fHeartbeat messages
Section titled “Heartbeat messages”Each agent sends Slack messages on lifecycle events:
- Start:
🟢 y0mcp agent started - Crash:
🔴 y0mcp agent crashed(with error) - Stop:
🔴 y0mcp agent stopped
Auto-restart behavior
Section titled “Auto-restart behavior”- macOS:
KeepAliverestarts on non-zero exit - Linux:
Restart=on-failurewith 30s delay - Throttle interval prevents rapid restart loops