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. To start the server, run kent serve.
The server owns all 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.
- Uses only about 25 MB of RAM while idle.
Background Service
Section titled “Background Service”To use Kent on your local machine more easily, consider installing a system service that will run kent serve for you at login:
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 remembered, so pass the same root on status/start/stop/restart/uninstall to target that instance.
Backends
Section titled “Backends”| OS | Service |
|---|---|
| macOS | LaunchAgent |
| Linux / WSL2 | systemd --user |
| Windows | Windows Service |
- On windows,
uninstall --keep-runningis not supported; the server is bound to the service and stops with it. - 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 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.