Loryth Runtime (loryth-runtime)¶
loryth-runtime manages on-demand per-user sandbox containers for Loryth AI chat sessions, including scoped storage credentials and persistent workspace backups.
Responsibilities¶
- On-Demand Sandboxes: Launches and monitors isolated user containers from the allowlisted
loryth-sandboximage via a restricted Docker socket proxy. - Scoped MinIO Sync: Issues temporary MinIO credentials restricted to the user's storage prefix, restores workspace files before accepting turns, and backs up changes after turns complete.
- Optional gVisor Isolation: Supports running sandboxes under
runscviaRUNTIME_SANDBOX_RUNTIME=runsc.
Configuration Highlights¶
RUNTIME_SANDBOX_IMAGE/RUNTIME_IMAGE_ALLOWLIST: Pinned sandbox image tag (update together).RUNTIME_SANDBOX_RUNTIME: Optional container runtime (runscfor gVisor).- Health endpoint:
/health