Automatic startup
The daemon starts automatically when you run your firsthappy session. You typically don’t need to manage it manually.
Commands
Auto-start on boot
Enable the daemon to start automatically when your computer boots:install and uninstall also work:
Auto-update
When you update the Happy CLI (npm update -g happy-next-cli), the daemon detects the version mismatch on its next heartbeat and automatically restarts with the new version. No manual restart needed.
How it works
The daemon:- Runs as a detached background process
- Maintains a WebSocket connection to the Happy server for remote commands
- Exposes a local HTTP server (localhost only) for CLI-to-daemon communication
- Sends heartbeats every 60 seconds to check for updates and prune dead sessions
- Stores its state at
~/.happy/daemon.state.json