To run a model from the command line with llama.cpp, install it with the project’s install script, then run one small model with llama cli. llama.cpp describes itself as “LLM inference in C/C++” with the goal of running models with minimal setup on a wide range of hardware, locally and in the cloud. There is no app window and no account: the terminal is the whole interface.
Install and run one model
llama.cpp’s README gives the install command:
curl -LsSf https://llama.app/install.sh | sh
Then it gives the run command, using a small Qwen model from Hugging Face as the example:
llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF
The -hf flag names the model on Hugging Face, and llama cli starts a chat in the terminal. The README gives a matching server command for the same model, if you want an API instead of a chat:
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF
That starts an OpenAI-compatible API server for the model.
Try it: one prompt in the terminal
After the install, run the llama cli command above and type a practice prompt, such as Give me one sentence about a fictional lighthouse keeper named Mara. Read the reply in the terminal, then exit the chat.
| Step | Command | What you should see |
|---|---|---|
| 1. Install | curl -LsSf https://llama.app/install.sh | sh |
The install finishes |
| 2. Run | llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF |
The model downloads, then a chat starts |
| 3. Ask | Type the practice prompt | A reply in the terminal |
Expected result. We checked the llama.cpp README. We did not run llama cli on this machine.
Limits
The install script downloads software from the internet, so the install step needs the network; only the chat after the download is local. The example model is small — 0.8B parameters — so its replies will be simpler than those of a larger model. llama.cpp is a command-line tool, so there is no graphical chat window and no built-in document attachment; those features belong to apps such as LM Studio, which uses llama.cpp underneath. We did not run llama.cpp, so no reply text here is a recorded result.
