The supervisor
Launch is an event, not a lifecycle.
Manually starting llama-server works until two clients want the GPU, a child crashes, a model idles for an hour, or nobody remembers which flags produced the listening port. llamactl is a Tokio/Axum control plane over a model registry, loader, scheduler, hardware snapshot, security policy, and process supervisor.
Process ownership is explicit
ProcessSupervisor keeps child handles in a model-id keyed map with PID, port, launch time, and idle policy. Launch allocates a free loopback port and records the child; stop removes and terminates the owned process. The scheduler periodically asks the supervisor to reap children that exited on their own and those past their idle timeout.
The 0.2.0-alpha inference endpoint now routes requests to managed backends, waits for readiness and refreshes model activity. Idle unloading follows tracked inference activity; clients that call a backend directly bypass that accounting.
Local callers still have different authority
Requests carry a client identity header and optional bearer token. Registered identities must present a matching token; the policy persists SHA-256 token digests, with optional plaintext credential custody in the native OS secret store. The authenticated identity exposes exact-string permissions such as model read, load, unload, and admin, and each route enforces its own requirement. Unknown callers receive only the configured default permission set.
The control API and spawned backends default to the machine's loopback interface. That removes remote exposure, but it does not collapse the trust boundary between an admin UI, a coding agent, and any random local script.
State and recovery
Shared mutable subsystems sit behind Tokio mutexes in AppState. Hardware sampling uses sysinfo for CPU and RAM; NVIDIA and Vulkan probes provide accelerator observations for hardware-aware runtime and launch selection. Health, status, and doctor routes expose the control plane’s view of the machine and owned children.
The 0.2.0-alpha release remains early-testing software. Its core includes: process handles instead of PID folklore, reaping after exits, permissioned control, and tests covering API auth and supervisor behaviour. Managed inference, hardware-aware launch settings, runtime/model acquisition and authenticated TTS are now implemented. Broad GPU compatibility and supported binary distribution remain open.