mngr Lima Provider
Lima VM provider backend plugin for mngr. Runs agents in Lima VMs (QEMU/VZ) with SSH access.
Prerequisites
- Lima (
limactlon PATH)
Usage
# Install the plugin
uv tool install imbue-mngr-lima
# Create a VM host
mngr create @.lima
# Create with a custom Lima YAML config
mngr create @.lima -b "--file path/to/config.yaml"
# Pass flags to limactl start
mngr create @.lima -- --cpus=8 --memory=16
host_dir layout
host_dir is the in-VM directory mngr stores agent data under (default /mngr). There are two layouts, chosen by is_host_data_volume_exposed and locked in per-host at create time (changing the config later does not migrate existing hosts):
- Exposed (default,
true). The host machine can readhost_dirdirectly, even while the VM is stopped. Offline reads (mngr event,mngr transcript) work against a stopped host. Right for most users. - Btrfs disk (
false).host_dirlives on a single btrfs disk that can be snapshotted as one unit, but the host machine has no direct read path, so offline reads stop working until the host is started. Intended for users who back uphost_dirvia btrfs snapshots.
# in ~/.mngr/config.toml (or via setting__extend in a create template)
[providers.lima]
is_host_data_volume_exposed = false
# Optional: override the default 100GiB logical disk size.
host_data_disk_size = "200GiB"
Sizing and resize
A host's CPUs and memory are the --cpus / --memory start args its VM was created with (-s --cpus=2 -s --memory=4 on mngr create, in GiB); --disk there is the VM's boot disk. In the btrfs disk layout the host's data lives on the separate data disk, sized by host_data_disk_size at create. Both are recorded per host, and mngr list reports them as host.resource (cpu.count, memory_gb, and disk_gb, which is the data disk when the host has one, else the boot disk) for running and stopped hosts alike.
To change a host's size afterwards:
mngr lima resize my-host --cpus 4 --memory 8 --disk 200
The CPU count and memory are written into the instance's lima config, and --disk grows the data disk with limactl disk resize (a disk never shrinks, and a host on the exposed layout has no data disk to resize). A stopped VM is reconfigured at once. A running VM cannot be edited, so the new size is only recorded and mngr start applies it, as it does on every start: the recorded size is the source of truth for the VM. The data filesystem grows to fill its disk on every boot, so a grown disk is usable as soon as the VM is back up.
What lives on which disk
The boot disk holds the guest OS and whatever provisioning installs into it, and cannot grow after creation; the data disk backs host_dir (or the whole home tree with volume_home_path) and can. Every VM's journal is capped at 512 MiB so it cannot fill the boot disk. Anything else that grows over a host's life (package caches, build caches) belongs on the data disk; a workspace template can put it there itself, since the agent runs as root there.
Running the agent as root (is_run_as_root)
By default the agent runs as the Lima default user (with passwordless sudo). With is_run_as_root=true the agent instead runs as root inside the VM, matching the docker / vps_docker providers: it can apt install and write anywhere with no sudo, and the VM is the isolation boundary. This lets a workspace use the same idempotent setup scripts everywhere -- run by a Dockerfile on the container providers, and directly after sync on Lima.
This mode requires the btrfs disk layout, so it must be paired with is_host_data_volume_exposed=false (the combination is otherwise rejected at config construction).
[providers.lima]
is_run_as_root = true
is_host_data_volume_exposed = false # required by is_run_as_root
The root client key is minted per VM under the VM's own dir, <profile>/providers/lima/<instance>/keys/hosts/<host id>/ (root_ssh_key / .pub), beside the VM's pre-injected sshd host key (ssh_host_ed25519_key / .pub) and its own known_hosts; the layout is published as LIMA_HOST_ACCESS_MANIFEST (constants.py) for consumers that carry a VM's access material to another machine. VMs created before per-host root keys existed authorize only the legacy provider-wide keys/root_ssh_key, which stays out of that material.
Metadata
Release files for imbue-mngr-lima 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imbue_mngr_lima-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for imbue_mngr_lima-0.2.1-py3-none-any.whl |
Release files / imbue_mngr_lima-0.2.1-py3-none-any.whl
| Download URL | imbue_mngr_lima-0.2.1-py3-none-any.whl |
|---|---|
| Size | 64.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6a14c960b5fcbf9d78209795121d010c83b2b64ef39b53283a60307387c40f1
|
|
BLAKE2b-256 checksum How to use checksums |
a48d2f704d03528b4bafbff0c963494ecb9f3c7406622ce73cdcd2ad1d932a94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for imbue-mngr-lima 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for imbue_mngr_lima-0.2.1-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.