llamafile
Mozilla.ai's single-file executables that bundle an open LLM with llama.cpp and run on most OSes with no install.
Quick answer
llamafile is a mozilla.ai's single-file executables that bundle an open LLM with llama.cpp and run on most OSes with no install, listed under Local model runtimes. A typical small-business use: hand a colleague one file that runs a private chatbot on their laptop with no setup. The project publishes no official RAM figure, so we do not estimate a monthly server cost. License: Apache-2.0, which allows internal business use.
Last updated · facts verified against official docs on · sources
Activity data comes from GitHub and was last refreshed Nov 23, 2026.
What is llamafile?
llamafile combines llama.cpp with Cosmopolitan Libc so a model and its runtime ship as one executable that runs on Linux, macOS, Windows and the BSDs, on x86-64 and ARM64 CPUs. Run it and you get a local chat in the terminal plus an OpenAI-compatible HTTP server with a web UI on port 8080; the standalone binary can also load any GGUF model. It ships GPU support for Apple Metal, NVIDIA CUDA, AMD ROCm and Vulkan, and includes whisperfile for speech-to-text.
Where it fits in a 10–200 person business
- Hand a colleague one file that runs a private chatbot on their laptop with no setup
- Serve a small open model on an office machine through an OpenAI-compatible API
- Run quantized models offline on CPU-only or older hardware
These use cases are our editorial suggestions, not claims made by the project.
Can a business use llamafile? (license)
| License | Apache-2.0 |
|---|---|
| Type | Permissive: MIT / Apache-2.0: use, modify and sell with few obligations. |
| Internal business use | Allowed under the license text |
| What to watch | Permissive. Internal and commercial use allowed; keep the license notice. Mozilla.ai's changes to llama.cpp and whisper.cpp are MIT. Each bundled model has its own license. |
This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.
Data & compliance: does llamafile phone home?
| Telemetry (usage data sent to the vendor) | Not documented |
|---|---|
| Other calls home by default (updates, marketplaces, default cloud services) | Not documented The default server sandbox (pledge) blocks outbound network connections after startup on Linux and OpenBSD; on other systems sandboxing is unavailable. |
| Single sign-on (OIDC / SAML / LDAP) | Not documented The only documented access control is an API key (--api-key or --api-key-file). |
| Audit log | Not documented |
| Role-based access control (RBAC) | Not documented |
| Data residency / GDPR notes from the project | Not documented |
Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.
What hardware does llamafile need?
The project does not publish a minimum CPU/RAM figure, so we leave the official value blank rather than guess.
GPU: Optional. Without a supported GPU it runs on the CPU. GPU backends are Apple Metal (macOS ARM64, on by default), NVIDIA CUDA (compute capability 7.5+ for the bundled library), AMD ROCm and Vulkan; pass -ngl 999 to offload on NVIDIA, AMD and Vulkan.
No RAM or disk figure is published; memory use depends on the model you run. x86-64 CPUs must have AVX and ARM64 CPUs must be ARMv8a or newer. Windows cannot run executables over 4 GB, so larger models need the separate llamafile binary with external GGUF weights.
How much does it cost to host llamafile per month?
The project publishes no RAM figure we could verify, so we do not estimate a cost.
How to deploy llamafile
Method: Single binary
curl -LO https://huggingface.co/mozilla-ai/llamafile_0.10/resolve/main/Qwen3.5-0.8B-Q8_0.llamafile
chmod +x Qwen3.5-0.8B-Q8_0.llamafile
./Qwen3.5-0.8B-Q8_0.llamafile
# server + web UI at http://localhost:8080; use --server --host 0.0.0.0 to serve other machines From the official instructions: github.com/mozilla-ai/llamafile#quick-start. Always check the source for the current version before you run it.
Known gotchas when self-hosting llamafile
- The server has no API key unless you set --api-key or --api-key-file. It listens on localhost by default; if you bind it to another interface, the docs say to configure a key and not to rely on CORS instead of authentication. source
- Versions 0.10.0 and later use a new build system and may lack features of the 0.9 series; some older examples in the docs are untested on 0.10. Pin the release you test. source
- The optional built-in tools (--tools) can read local files with the permissions of the llamafile process. Enable only the tools you need and not in untrusted environments. source
- The 0.10 series has not been tested on every GPU and platform; the docs call the AMD and Windows paths best-effort, and multi-GPU may be broken on AMD Radeon. source
Alternatives in Local model runtimes
- Ollama The simplest way to download and run open-weight LLMs locally behind an API. Compare llamafile vs Ollama
- llama.cpp Lightweight C/C++ engine that runs quantized open models on CPU or GPU, with an OpenAI-compatible server. Compare llama.cpp vs llamafile
- vLLM High-throughput LLM inference server for GPUs with an OpenAI-compatible API. Compare llamafile vs vLLM
- LocalAI OpenAI-compatible API for LLMs, vision, voice and images on any hardware. Compare llamafile vs LocalAI
- TextGen (text-generation-webui) Local LLM app (formerly text-generation-webui) with a browser UI, OpenAI/Anthropic-compatible API and LoRA training. Compare llamafile vs TextGen (text-generation-webui)
- SGLang Fast serving engine for LLMs and multimodal models on GPU servers, with an OpenAI-style API. Compare llamafile vs SGLang
- KTransformers CPU and GPU inference kernels with a model-serving CLI and SGLang integration. Compare KTransformers vs llamafile
- TensorRT LLM NVIDIA GPU inference toolkit with an OpenAI-compatible serving command. Compare llamafile vs TensorRT LLM
- Xinference Model-serving platform for LLM, embedding, rerank, speech and image models behind one OpenAI-compatible API. Compare llamafile vs Xinference
- llama-swap Hot-swap proxy that runs many local AI servers behind one OpenAI- and Anthropic-compatible API. Compare llama-swap vs llamafile
- Lemonade Local OpenAI-compatible server for chat, speech and image models on CPU, GPU or AMD NPU. Compare Lemonade vs llamafile
- GPUStack GPU cluster manager that deploys vLLM, SGLang and other engines behind an OpenAI-compatible API. Compare GPUStack vs llamafile
- Text Embeddings Inference Hugging Face's production server for open embedding, re-ranking and classification models. Compare llamafile vs Text Embeddings Inference
- Harbor (local LLM stack) One CLI to start a pre-wired local AI stack, such as Open WebUI with llama.cpp, Ollama or vLLM, plus 50+ services. Compare Harbor (local LLM stack) vs llamafile
- RamaLama Run and serve AI models as OCI containers with Podman or Docker, using an image matched to your GPU. Compare llamafile vs RamaLama
- Infinity High-throughput REST server for embeddings, reranking and classification models. Compare Infinity vs llamafile
llamafile FAQ
How much RAM does llamafile need?
llamafile does not publish an official RAM figure, so we do not state one. No RAM or disk figure is published; memory use depends on the model you run. x86-64 CPUs must have AVX and ARM64 CPUs must be ARMv8a or newer. Windows cannot run executables over 4 GB, so larger models need the separate llamafile binary with external GGUF weights.
Does llamafile need a GPU?
Optional. Without a supported GPU it runs on the CPU. GPU backends are Apple Metal (macOS ARM64, on by default), NVIDIA CUDA (compute capability 7.5+ for the bundled library), AMD ROCm and Vulkan; pass -ngl 999 to offload on NVIDIA, AMD and Vulkan.
How much does it cost to self-host llamafile?
The software is free to download. The project publishes no official RAM figure, so we do not estimate a monthly server cost.
Is llamafile free for commercial use?
llamafile is licensed under Apache-2.0 (Permissive). Internal business use is allowed under the license text. Permissive. Internal and commercial use allowed; keep the license notice. Mozilla.ai's changes to llama.cpp and whisper.cpp are MIT. Each bundled model has its own license. This is a summary, not legal advice.
What are common problems when self-hosting llamafile?
The server has no API key unless you set --api-key or --api-key-file. It listens on localhost by default; if you bind it to another interface, the docs say to configure a key and not to rely on CORS instead of authentication. Versions 0.10.0 and later use a new build system and may lack features of the 0.9 series; some older examples in the docs are untested on 0.10. Pin the release you test. The optional built-in tools (--tools) can read local files with the permissions of the llamafile process. Enable only the tools you need and not in untrusted environments. The 0.10 series has not been tested on every GPU and platform; the docs call the AMD and Windows paths best-effort, and multi-GPU may be broken on AMD Radeon.
Is llamafile still maintained?
Yes, it is actively developed. Last commit: Nov 5, 2026. Latest release: 0.10.6 (Sep 15, 2026). Checked Nov 23, 2026.
How do I install llamafile?
The official method is Single binary. The exact commands are in the "How to deploy" section above and in the official instructions: https://github.com/mozilla-ai/llamafile#quick-start
What are self-hosted alternatives to llamafile?
Other apps in Local model runtimes: Ollama, llama.cpp, vLLM, LocalAI, TextGen (text-generation-webui), SGLang, KTransformers, TensorRT LLM, Xinference, llama-swap, Lemonade, GPUStack, Text Embeddings Inference, Harbor (local LLM stack), RamaLama, Infinity.
Sources
- GitHub repository: github.com/mozilla-ai/llamafile
- Official documentation: docs.mozilla.ai/llamafile
- License text: github.com/mozilla-ai/llamafile/blob/main/LICENSE
- Hardware requirements, Gotcha 4: docs.mozilla.ai/llamafile/reference/support
- Deploy instructions: github.com/mozilla-ai/llamafile#quick-start
- Gotcha 1: docs.mozilla.ai/llamafile/using-llamafile/api
- Gotcha 2: github.com/mozilla-ai/llamafile#v010
- Gotcha 3: docs.mozilla.ai/llamafile/using-llamafile/running_llamafile
- Hetzner Cloud pricing (cost estimate): www.hetzner.com/cloud/regular-performance
- GitHub stars, commits and releases: GitHub REST API, fetched
Facts on this page were checked against the project's own repository and docs on 2026-11-11. Spotted something out of date? Tell us.