Run as a Managed Service
Run uxc daemon under a service manager when runtime auth environment must stay
stable across requests.
This matters especially for:
--secret-opresolution through daemon execution- long-running local integrations
- background subscriptions
Use foreground daemon entrypoint:
uxc daemon _serve
uxc daemon start is auto-spawn mode and is not the recommended
systemd/launchd entrypoint.
Linux (systemd)
Recommended flow:
- create a dedicated service user
- place runtime env in an env file
- run
uxc daemon _servefrom the unit - validate with
uxc daemon status
macOS (launchd)
Use a user LaunchAgent that runs:
/usr/local/bin/uxc daemon _serve
Security Notes
- prefer least-privilege service accounts
- inject secrets through the service manager environment
- restart the service after rotating long-lived tokens