LocalAI can run a model from more places than the model gallery: the local-ai run command accepts a source prefix, and oci:// means the model comes from an OCI container registry — the same packaging a container image uses.
Run the model from the registry
Run local-ai run oci://<registry>/<model> with the registry path of the model image. LocalAI pulls the model from the registry and serves it like any other model. The other prefixes work the same way: local-ai run <gallery-name> for a gallery model, local-ai run huggingface://<user>/<model> for a Hugging Face repo, and local-ai run ollama://<model> for an Ollama model.
local-ai run oci://<registry>/<model>
# also: local-ai run <gallery-name>
# local-ai run huggingface://<user>/<model>
# local-ai run ollama://<model>
A registry model is still a model download: it takes the same disk space and time as any other source, and a private registry needs credentials before the pull works. Check the registry path on the publisher’s page — a typo gives you a pull error, not a different model.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Registry path right | The oci:// path matches the publisher’s page | Copy it exactly |
| Pull succeeds | LocalAI pulls the model | Check credentials for a private registry |
| Model serves | The server serves the model | Check the model name in the UI |
| Chat works | A chat request returns a reply | Try a simple question first |
Expected result. We checked the LocalAI quickstart, which documents local-ai run with oci://, huggingface://, ollama:// and gallery names. We did not run a registry model on this machine.
Limits
This guide covers the oci:// source only. Private registries need credentials, and the pull takes time. We did not test any run ourselves.
