praisonai daemon keeps provider clients and MCP connections hot in memory so repeated praisonai run calls skip cold-start entirely.
The user runs repeated praisonai run commands; the warm daemon forwards work to hot provider and MCP connections.
Quick Start
1
Start the daemon in the background
praisonai run calls in the same project directory automatically detect and attach to it.2
Run prompts — no extra flags needed
3
Check status and stop
How It Works
Configuration Options
praisonai daemon start
praisonai daemon status
praisonai daemon stop
No flags. Sends SIGTERM after a health-check ping to guard against PID reuse. Cleans up the lockfile.
When to Use Foreground vs Background
When run Stays In-Process
praisonai run skips the daemon and runs locally whenever you pass any of these flags:
In all these cases,
praisonai run behaves exactly as it did before the daemon feature. No flags are needed to opt out — it happens automatically.
Common Patterns
Iterating on prompts in a shell loop
Iterating on prompts in a shell loop
Auto-shutdown at night with --idle-timeout
Auto-shutdown at night with --idle-timeout
Scripting status checks
Scripting status checks
--json flag returns {running, host, port, pid, base_url} — safe for jq or any JSON parser.Using a specific model
Using a specific model
Security
Best Practices
Use --background for everyday workflows
Use --background for everyday workflows
Foreground mode is useful for debugging (you can see log output). For all other use cases,
--background is simpler: it returns immediately and the daemon persists across terminal sessions.Tune --idle-timeout carefully
Tune --idle-timeout carefully
The default 30-minute timeout is a good balance between warmth and resource usage. Setting
--idle-timeout 0 means the daemon never shuts down automatically — only use this if you understand it will consume memory indefinitely.One daemon per project
One daemon per project
The lockfile is stored under the project data directory, scoped to the current project. Running two daemons in the same project will print a warning and exit. Each project directory gets its own independent daemon.
Check status before starting
Check status before starting
Related
Run Command
The
praisonai run command — automatically attaches to a warm daemon when one is running.MCP Integration
MCP server connections benefit most from the warm runtime — they stay connected across
run calls.
