A llamafile is a single-file executable that contains a language model and the runtime that runs it. The llamafile project combines llama.cpp with Cosmopolitan Libc into one framework that collapses all the complexity of running a model down to a single file that runs locally on most operating systems and CPU architectures, with no installation. You download one file, make it executable, and run it.
Download the smallest ready-made llamafile
The llamafile README on GitHub gives this quick start, using the Qwen3.5 0.8B model:
curl -LO https://huggingface.co/mozilla-ai/llamafile_0.10/resolve/main/Qwen3.5-0.8B-Q8_0.llamafile
The README says this model was chosen because it is the smallest one built as a llamafile, so it is the most likely to work out of the box for you. If you have powerful hardware or a GPU, the docs point you to larger and more expressive models, which should give more accurate responses.
Make it executable and run it
On macOS, Linux, or BSD, grant permission to execute the file:
chmod +x Qwen3.5-0.8B-Q8_0.llamafile
./Qwen3.5-0.8B-Q8_0.llamafile
Running a llamafile with no mode flag starts combined mode, which is the default for the last generation of llamafiles: both a server running at http://localhost:8080 and a chat in the terminal start at the same time. You can then chat in the terminal, or open http://localhost:8080 in your browser and use the web chat there. On Windows, rename the file to add the .exe extension before running it.
Try it: four checks from download to first reply
| Check | What you should see | If you do not see it |
|---|---|---|
| File downloaded | Qwen3.5-0.8B-Q8_0.llamafile in your folder |
Run the curl -LO command again and check the download finished |
| Executable permission | chmod +x runs with no error |
On Windows, rename the file so it ends in .exe instead |
| Server and chat start | A chat prompt in the terminal and a server at http://localhost:8080 |
Check the terminal output for an error, then run the file again |
| First reply | An answer to a question you type in the terminal chat or the browser | Open http://localhost:8080 in your browser and try the web chat instead |
Expected result. We checked the llamafile README on GitHub, which gives the download, chmod, and run commands for the Qwen3.5 0.8B llamafile and the Windows .exe rename, and the Mozilla llamafile docs page on running a llamafile, which describes combined mode with the server at http://localhost:8080 and a chat in the terminal. We did not download or run a llamafile on this machine.
Limits
This guide covers one ready-made llamafile only. Building your own llamafile from a model file, and the separate whisperfile speech-to-text tool, are different jobs with their own docs pages. On Windows, only executables under 4 GB can run, so a llamafile above 4 GB will not work there; the README says to download the llamafile binary and run it with external GGUF weights instead. A larger model needs more powerful hardware or a GPU. We did not test any of this ourselves.
Sources
- llamafile README on GitHub — single-file executable, no installation, quick-start download, chmod, and run commands for Qwen3.5 0.8B, Windows .exe rename and 4 GB limit
- Mozilla llamafile docs — Running a llamafile — combined mode starts a server at http://localhost:8080 and a terminal chat together, –chat and –cli modes
