Kent Server
Kent runs all its work through a local server process. Frontends are clients: TUI, desktop app, headless runs, and other local integrations all need the server to be running. The background server uses about 25 MB of RAM while idle.
The server owns long-running work: sessions, projects, runtime orchestration, background shells, tool execution, tasks, workflows, and storage.
While annoying at times, this:
- Gives ability to fully isolate work on another machine, VM, or container. See Sandboxing for remote/container setup.
- Drastically reduces resource consumption
- Allows agents to work asynchronously during workflows.
- Allows spawning agents on schedule and periodically.
Background Service
Section titled “Background Service”kent service installs and manages a supervised background kent serve process.
The service starts at login and keeps the local server always available.
kent service installCommands
Section titled “Commands”kent service statuskent service installkent service restartkent service stopkent service startkent service uninstallAll service commands accept --persistence-root (and honor KENT_PERSISTENCE_ROOT). The root you install with is baked into the generated registration as kent serve --persistence-root <root>, so the supervised service uses the same config+data root rather than re-resolving ~/.kent under whatever user the supervisor runs as. Use the same root on status/start/stop/restart/uninstall to target that instance.
Backends
Section titled “Backends”| OS | Supervisor |
|---|---|
| macOS | LaunchAgent |
| Linux / WSL2 | systemd --user |
| Windows | Scheduled Task at logon, with Startup folder fallback |
Linux headless machines may need lingering enabled so the server survives logout:
loginctl enable-linger "$USER"Port Conflicts
Section titled “Port Conflicts”Service install/start commands refuse to change the service when Kent’s configured server endpoint is already owned by a manual kent serve process or by a non-Kent listener.
If the service is installed but unloaded, restart can stop a healthy Kent listener on the configured endpoint and attach that endpoint back to the background service.
If you started kent serve manually, stop that process before installing or starting the background service.
Running another server on a different configured port is fine. Kent only checks the endpoint resolved from server_host and server_port.