# llamafile

> Distribute and run LLMs with a single file

Source: https://talira.ai/catalog/llamafile-xse34k15
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, API
- Categories: [ai / inference / servers](https://talira.ai/categories/ai/inference/servers)
- Platforms: linux, macos, windows, freebsd[^4]
- Licence: Apache-2.0 AND MIT[^1][^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- API: yes[^3]
- Backed by: [Mozilla.ai](https://talira.ai/orgs/mozilla-ai.md), [Mozilla](https://talira.ai/orgs/mozilla.md)

llamafile packages an open LLM and its runtime into one executable file that runs locally on Linux, macOS, Windows and the BSDs with no installation. It combines [llama.cpp](https://talira.ai/catalog/llama-cpp-g0rydd64.md) with Cosmopolitan Libc, so the same file works across operating systems and CPU architectures, and it can also run any GGUF model as a separate weights file. In server mode it serves a web chat UI and OpenAI-compatible and Anthropic-compatible APIs, and it includes whisperfile for single-file speech-to-text on whisper.cpp. Started as a Mozilla Builders project, it is now maintained by Mozilla.ai.

## Links

- Website: https://www.mozilla.ai/open-tools/llamafile
- GitHub: https://github.com/mozilla-ai/llamafile
- Docs: https://docs.mozilla.ai/llamafile

## Problems it solves

- run an open LLM on my laptop without installing Python, CUDA or anything else
- share a local AI model with someone as a single file they can just run
- one executable that runs the same model on Windows, Mac and Linux
- a local OpenAI-compatible API server for an open model
- run a local LLM on an old Linux machine or a BSD box
- transcribe audio offline with a single downloadable file
- ship an offline AI feature that works on most operating systems
- try a small open model in one command with no setup

## Features

- model and runtime in one executable file
- runs on Linux, macOS, Windows, FreeBSD, NetBSD and OpenBSD
- runs external GGUF weights
- web chat UI
- OpenAI-compatible and Anthropic-compatible HTTP APIs
- API key authentication
- GPU support
- whisperfile for speech-to-text and translation
- pre-built llamafiles on Hugging Face

## Limitations

- Can't run llamafiles larger than 4 GB on Windows: run the llamafile binary with separate GGUF weights instead[^1]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.38 out of 1.
Signals: backing 0.30, extensibility 0.40.

- backed by Mozilla.ai and Mozilla

Warnings:

- GitHub activity not fetched yet

## Related

- Based on [llama.cpp](https://talira.ai/catalog/llama-cpp-g0rydd64.md)

## Alternatives

- [LocalAI](https://talira.ai/catalog/localai-5j77s2mj.md): Your own AI, on your own hardware
- [Ollama](https://talira.ai/catalog/ollama-gr2tx5nn.md): Start building with open models, locally or in the cloud
- [LM Studio](https://talira.ai/catalog/lm-studio-2xt6qtwf.md): Experiment with LLMs on your computer: chat interface and programmable API
- [llama.cpp](https://talira.ai/catalog/llama-cpp-g0rydd64.md): LLM inference in C/C++
- [KoboldCpp](https://talira.ai/catalog/koboldcpp-a39h31en.md): Run GGUF AI models locally with a KoboldAI UI. One file, zero install.
- [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md): A high-throughput and memory-efficient inference and serving engine for LLMs

## Sources

[^1]: https://github.com/mozilla-ai/llamafile/blob/main/README.md (checked 23 Nov 2026)
[^2]: https://github.com/mozilla-ai/llamafile/blob/main/LICENSE (checked 23 Nov 2026)
[^3]: https://docs.mozilla.ai/llamafile/using-llamafile/api (checked 23 Nov 2026)
[^4]: https://docs.mozilla.ai/llamafile/reference/support (checked 23 Nov 2026)
