Overview
By default,fidelios run runs in the foreground of your terminal — closing the terminal or pressing Ctrl+C stops the server.
The fidelios service commands register FideliOS with your operating system’s process manager:
- macOS — launchd (
~/Library/LaunchAgents/) - Linux — systemd user session (
~/.config/systemd/user/)
- Starts automatically at login
- Restarts automatically on crash
- Runs independently of any terminal window
fidelios service install
Registers FideliOS with the OS process manager and starts it immediately.
Release vs Dev mode
| Mode | Runs | Auto-Restart When Idle toggle | When to use |
|---|---|---|---|
release | /opt/homebrew/bin/fidelios run from $HOME — the published CLI | No-op | Normal operation — using FideliOS as a tool |
dev | node <repo>/scripts/dev-runner.mjs watch from the repo root | Honored — agents in Company FideliOS can edit source without crashing their own runs | Debugging FideliOS itself with agents in Company FideliOS |
~/.fidelios/instances/default/service-mode.json so subsequent
fidelios service status calls show what’s running.
- macOS
- Linux
Writes a launchd plist to:Then loads it with
launchctl load and immediately force-starts it with
launchctl kickstart. RunAtLoad=true + KeepAlive=true in the plist mean
the service starts automatically at login and is restarted by launchd on any
exit (clean or crash). The plist also seeds PATH with the common adapter
locations (~/.claude/local/bin, ~/.codex/bin, /opt/homebrew/bin, …) so
agent heartbeats can resolve claude, codex, gh, git, and friends.Expected output:Onboard shortcut:fidelios onboardoffers to runservice installat the end of the wizard. Answeryto skip this manual step.
fidelios service uninstall
Stops and removes the background service.
- macOS
- Linux
Runs
launchctl unload on the plist and removes it from ~/Library/LaunchAgents/.~/.fidelios/ is not affected. Reinstall at any time with fidelios service install.
fidelios service status
Reports whether the service is installed, running, and accepting connections.
| Check | What it means |
|---|---|
| Service file | Whether the plist or unit file is present on disk |
| Service | running (PID …) / loaded but not running / not loaded |
| Port 3100 | Whether the server is currently accepting connections |
Recommended workflow
fidelios run again.
Viewing logs
The service writes stdout and stderr to the FideliOS log file:Stopping everything (fidelios stop)
If you see stale processes — leftover embedded PostgreSQL, stuck plugin workers,
or a port still bound after Ctrl+C — use:
~/.fidelios/instances/*/db/postmaster.pid so the next fidelios run can start
cleanly.
Flags:
| Flag | Purpose |
|---|---|
--service | Also launchctl unload / systemctl --user stop the background service |
--dry-run / -n | Print what would be killed without killing anything |
Platform support
| Platform | Process manager | Supported |
|---|---|---|
| macOS | launchd | Yes |
| Linux | systemd (user session) | Yes |
| Windows | — | Not supported |