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.
See connection configuration for address selection and session resume behavior.
The server owns all long-running work: sessions, projects, runtime orchestration, background shells, tool execution, tasks, workflows, and storage.
Why? Because 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”The easiest way to use Kent locally without manually running the server is via the system service:
kent service statuskent service installkent service restartkent service stopkent service startkent service uninstallInstall the service once, then restart it after updates.
Provider environment
Section titled “Provider environment”See API keys and background services for provider credentials and the server’s .env file.
HTTP proxies
Section titled “HTTP proxies”For server requests, set HTTP_PROXY, HTTPS_PROXY, and NO_PROXY in the server’s environment or its persistence-root .env file:
HTTP_PROXY=http://proxy.example.com:8080HTTPS_PROXY=http://proxy.example.com:8080NO_PROXY=internal.example.com,10.0.0.0/8Alternatively, configure the global config.toml:
[proxy]http = "http://proxy.example.com:8080"https = "http://proxy.example.com:8080"no_proxy = "internal.example.com,10.0.0.0/8"The server resolves each value independently: process environment, persistence-root .env, then global configuration; workspace configuration does not apply.
CLI/TUI connections use their own proxy configuration: process environment, .kent/config.local.toml in the current directory, .kent/config.toml in that directory, then global configuration.
Restart each affected process after changing its proxy configuration.
Set HTTPS_PROXY explicitly for HTTPS connections; it does not inherit HTTP_PROXY.
Localhost and loopback connections bypass proxies; use NO_PROXY for additional hosts, domains, IP addresses, or CIDR ranges, or * to bypass all proxies.
Kent’s proxy configuration does not propagate to the shell commands the agent runs.
Backends
Section titled “Backends”| OS | Service |
|---|---|
| macOS | LaunchAgent |
| Linux / WSL2 | systemd --user |
| Windows | Windows Service |
- On Windows, uninstalling the service stops the server.
- Linux headless machines may need lingering enabled so the server survives logout
loginctl enable-linger "$USER".