The local-model engine, recipe catalog and internals reference for Omarchy. The Arch package omarchy-local-ai installs this tree to /usr/share/omarchy-local-ai and symlinks /usr/bin/omarchy-local-ai to its executable entry script. Omarchy's thin omarchy-models wrapper exposes it as omarchy models <command>.
The engine resolves recipes, downloads pinned weights, and manages rootless Podman model servers with an internal network, read-only root, dropped capabilities, allowlisted devices and authenticated loopback endpoints. The catalog ships with the engine; it is never fetched at runtime. See engine contract for the security boundary, lifecycle and state formats.
Python 3.11 or newer is required. On Omarchy, run:
./omarchy-local-ai list
./omarchy-local-ai use best text
./omarchy-local-ai validate .
./tests/engine-test.shRunning models also requires Podman, crun and the Omarchy hardware helpers. Tests use a temporary home and do not start containers. If installed, the real Podman Quadlet generator checks generated units in dry-run mode.
The engine reads the catalog beside agent_local.py, following the installed entry script's symlink. Set OMARCHY_LOCAL_AI_CATALOG to another catalog directory for development. State and model data live in ~/.local/state/omarchy/agent-local and ~/.local/share/omarchy/agent-local.
catalog.toml— the catalog schema.best.toml— ordered recommendations per hardware class: text recipes for the agents, and image models beside them.recipes/<id>.toml— kind (text or image), runtime, pinned Hugging Face artifacts, measured context variants, memory peaks and sampling defaults.runtimes/<id>.toml— image pinned by digest, the GPUs it works on (gpus), input mappings, health probe, post-start check (api) and allowlisted run options.reviews/— license and behavior reviews for third-party image digests.measurements/— speed and memory per chip, whichbest.tomlrecommends by.images/<runtime>/Containerfile— how Omacom builds a runtime's image, for runtimes whose image is built here. Checkout-only, liketools/.tools/benchandbench/context.txt— checkout-only benchmark script and long prompt.
- Add a recipe and any runtime/review it requires, or add a measured chip to an existing recipe. Every machine whose GPU the runtime lists in
gpusand that has the memory for a variant is offered the recipe;best.tomldecides which machines it is recommended to, and needs a measurement for each GPU class it recommends it on. A bigger machine of the same GPU inherits a smaller class's recommendations unless its own class lists something else. - Run
./omarchy-local-ai validate ., then./omarchy-local-ai use <id>on the target hardware. - Run
./tools/bench <id> --output measurements/<id>-<gpu>.tomland reference the measurement in the recipe. - Submit the recipe, review and measurement together. CI validates the catalog online and runs engine tests. Merging catalog changes grants software publication authority within the engine's security boundary.
A runtime whose image is built here has its Containerfile in images/<image>/: llamacpp, llamacpp-inkling2, gufo, sdcpp, sdcpp-cuda, acestep, acestep-cuda, stable-audio-3-vulkan, stable-audio-3-cuda, tensorfold, tensorfold-dsv41, tensorfold-glm53, tensorfold-nemotron-bolt, llamacpp-hy4, inkling2-exl3 and tensorfold-inkling2. The base image and upstream commits are pinned in the Containerfile, but packages come from the distribution at build time, so a rebuild gives a new digest even with nothing changed. To update one, for example to a newer llama.cpp:
- Change the pinned
COMMITand itsBUILDtag, or the base digest, inimages/llamacpp/Containerfile, in a pull request. CI builds every image a pull request changes, to check it. - Merging it publishes the image:
.github/workflows/images.ymlpushesghcr.io/omacom/omarchy-local-ai/llamacpp:<version>-<run>and puts the digest to pin in the run's summary. Run the workflow by hand, naming the image, to rebuild without a change, for the distribution's newer packages. - Pin
ghcr.io/omacom/omarchy-local-ai/llamacpp@<digest>asimageinruntimes/llamacpp.toml. - Review the new digest in
reviews/llamacpp-<first 12 hex of the digest>.toml, rerunning the checks the last review lists (license, read-only root, no network, key, stop on SIGTERM), and point the runtime'sreviewat it. Keep the old review: it records what was reviewed then. - Set the image up with
./omarchy-local-ai use <recipe>and rebench every recipe on that runtime with./tools/bench, since a measurement records the image it was measured on. - Run
./omarchy-local-ai validate .and./tests/engine-test.sh, and submit the runtime, review and measurements together.
The llamacpp, llamacpp-inkling2, sdcpp, acestep and stable-audio-3-vulkan builds also fail if the image lacks Mesa's AMD or Intel driver, and the sdcpp, acestep and stable-audio-3-vulkan ones if the server uses AVX-512, which Intel laptops and older AMD machines don't have.
To build one locally instead: podman build --format docker -t llamacpp images/llamacpp. The GB10 and N1x images build on arm64 runners and the others on x86, as in the workflow's table; a new folder needs a line there.
Validate and test, then tag the release vX.Y.Z; nothing in the repo is bumped. The omarchy-pkgs recipe builds the Arch package from that tag, installing the engine, catalog and docs together. Packaging is maintained in omarchy-pkgs; this repository is its source tree.
bench/ and tools/ do not need to ship in the Arch package. Measurement records still ship: recipe validation and the panel use them.
After package updates, omarchy-models refresh --quiet rewrites the panel's list and status caches. It does not download a catalog or change running models.