Requirements
Qualified platforms, external tools, resource controls, and configuration paths for the public Lema binaries.
Public binary platforms
The prebuilt release 0.3.2 includes the CLI and matching VM for these platforms. These are the tested release baselines; older operating systems are not qualified by this release.
| Platform | Tested baseline | Authoring profile |
|---|---|---|
| Apple Silicon macOS | macOS 26.5.1 | Native macos Seatbelt profile |
| Linux x86_64 | Debian 13.7, system glibc 2.41; binaries require glibc 2.39 or newer | systemd-scope with a working systemd user manager |
Windows, Intel Macs and Linux ARM are not supported public binary targets. A VM must meet the Linux architecture and runtime requirements. The Linux container profile exists for configured operator environments, but is not an additional qualified first-install platform in this release. Passing an archive’s CPU/libc check does not by itself qualify a container’s sandbox controls.
Canonical checked object identities are portable. Native workers, module caches and application releases remain specific to their target. Download metadata records the selected release’s exact requirements, hashes and library-pack pin.
Ubuntu 24.04.5 with glibc 2.39 was exercised with an existing AppArmor policy permitting user namespaces for /usr/bin/bwrap. Installing packages alone has not qualified an unmodified Ubuntu host: an administrator must provide the required per-program namespace policy, and lema setup must pass under it. Ubuntu documents this mechanism in its user-namespace restrictions. The Debian baseline above needed no additional namespace policy.
Installation and HTTPS tools
Rust, Cargo, a C linker, a source checkout and private repository access are not needed to use the binaries. The direct installer needs a POSIX shell, HTTPS-capable curl, tar, gzip, sha256sum or shasum, and standard Unix file utilities.
On Linux, the Homebrew route also requires an x86_64 CPU with SSSE3 support, as listed in Homebrew’s supported hosts. This is Homebrew’s prerequisite; it does not change the direct Lema archive’s CPU baseline. Installing Homebrew itself has separate Linux host and tool prerequisites.
The HTTPS starter also needs OpenSSL 1.1.1 or newer with working Ed25519 key generation, plus curl 7.54 or newer using a TLS 1.3-capable OpenSSL 1.1.1+ or GnuTLS 3.6.5+ backend. Lema checks the selected tools. On macOS, Homebrew’s openssl@3 and curl satisfy the tool choice; Lema discovers their opt paths and prints the exact request command. The Lema formula declares both dependencies. The system’s LibreSSL/curl may not provide the required features.
Linux requires root-owned /usr/bin/bwrap from the OS package manager, without group or other write permission. The Homebrew formula does not install a user-owned bubblewrap substitute. Follow machine setup for the package commands.
Sandboxed checking
Authoring and proof checking use the pinned Lean 4.34.1 distribution, downloaded and verified by lema setup. Setup also installs the platform’s standard-library pack. User code is checked locally; compatible standard-library modules may be adopted as checked (Lema release). A different axiom policy or incompatible pack requires local checking.
| Host control | Linux systemd workstation | Apple Silicon macOS |
|---|---|---|
| Isolation | Bubblewrap and a systemd user scope; cgroup v2 cpu, memory and pids controllers must be delegated. | /usr/bin/sandbox-exec Seatbelt confinement with process-group cleanup. |
| Memory | At least 6 GiB MemAvailable, plus in-flight reserves; 4 GiB cgroup limit per checking call. | At least 6 GiB free-plus-inactive memory; physical memory and thread usage are sampled. Sampled bounds can briefly overshoot. |
| CPU/process bounds | Systemd/cgroup supervision and call deadlines. | Kernel CPU/process limits and a watchdog; swap and a hard thread cap are not enforced. |
| Disk | At least 4 GiB free on the filesystems hosting runtime output and the shared lock, plus in-flight reserves. | The same free-space floor; store commits also require a working F_FULLFSYNC durability barrier. |
| Host files | Root-owned executables, dynamic loader and resolved dependency libraries are recorded and checked unchanged for the call. Reviewed-pin drift is reported rather than automatically refused. | Platform sandbox and filesystem checks remain enforced; Homebrew binaries are staged into protected private execution paths. |
Linux checking additionally needs user namespaces and readable /proc/pressure/memory and /proc/pressure/cpu. The runtime check must pass under the selected profile before authoring. KVM is separate, Linux-only, and unnecessary for the default VM or HTTPS echo starter.
The memory floor means available memory at each checking call, after the OS, project server and other processes take their share. Allocating 6 GiB of total RAM to a VM does not meet that requirement. Leave disk space for the downloaded toolchain and library pack in addition to the runtime’s free-space floor.
Paths and permissions
The direct installation defaults to $XDG_DATA_HOME/lema, or $HOME/.local/share/lema. Runtime state defaults to $LEMA_HOME, normally ~/.lema. Spaces and non-ASCII text are supported; quote paths in shell commands. Installation and runtime paths must be valid UTF-8 without control characters and must meet the runtime’s ownership and write-permission checks. Existing unsafe ancestors are refused, not changed automatically.
Unix socket paths have a limit of 107 usable bytes on Linux and 103 on macOS. Lema automatically selects a shorter owner-only socket path for long project directories, under $XDG_RUNTIME_DIR/lema or $LEMA_HOME/run. If those paths are also too long, it uses a protected lema-UID directory in the OS temporary directory, such as /tmp/lema-UID (canonically /private/tmp/lema-UID on macOS).
Environment variables
| Variable | Meaning |
|---|---|
LEMA_HOME | Base directory for Lema runtime state and credentials; defaults to ~/.lema. |
LEMA_RUNTIME | Runtime configuration path, overridden by --runtime CONFIG; otherwise $LEMA_HOME/runtime.json. |
LEMA_STORE | Store path, overridden by --store; normally the project’s .lema/store. |
LEMA_SOCKET | Codebase-server socket, overridden by --socket; normally the project’s .lema/lema.sock or its automatic short-path fallback. |
LEMA_ACTOR_TOKEN | Actor bearer token for authenticated store operations, overridden by --token. |
XDG_DATA_HOME | Base used by the direct binary installer; the Lema installation is its lema child. |
XDG_RUNTIME_DIR | Base for the automatic short socket directory when set. |
VM-only deployment and contributor builds
A supported host running an existing lema.vm-app/v1 release does not need Lean or Rust. Its deployment contains the application artifact, matching VM worker and capability configuration. A runtime with no distribution field is for deployment and cannot pass authoring setup; choose an authoring runtime to create or change Lema code.
Contributor builds have separate Rust and linker requirements. The default Rust workspace tests do not qualify native runtime behavior. Native suites require the named profile on the corresponding host; a Mac cannot qualify Linux KVM execution.
Lema v0.3.2 · Updated 29 October 2026 · Version and compatibility