llamafile

Mozilla.ai's single-file executables that bundle an open LLM with llama.cpp and run on most OSes with no install.

Active Local model runtimes Apache-2.0

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

GitHub stars26.7k
Forks1.7k
Latest release0.10.6Sep 15, 2026
Last commitNov 5, 2026
Est. server cost—

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)

LicenseApache-2.0
TypePermissive: MIT / Apache-2.0: use, modify and sell with few obligations.
Internal business useAllowed under the license text
What to watchPermissive. 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.

Source: docs.mozilla.ai/llamafile/reference/security

Single sign-on (OIDC / SAML / LDAP) Not documented

The only documented access control is an API key (--api-key or --api-key-file).

Source: docs.mozilla.ai/llamafile/using-llamafile/api

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.

Source: docs.mozilla.ai/llamafile/reference/support

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

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

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.