Skip to content
2026 Respawn OSS

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.

kent service installs and manages a supervised background kent serve process. The service starts at login and keeps the local server always available.

Terminal window
kent service install
Terminal window
kent service status
kent service install
kent service restart
kent service stop
kent service start
kent service uninstall

All 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.

OSSupervisor
macOSLaunchAgent
Linux / WSL2systemd --user
WindowsScheduled Task at logon, with Startup folder fallback

Linux headless machines may need lingering enabled so the server survives logout:

Terminal window
loginctl enable-linger "$USER"

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.