llama.cpp server
llama.cpp is a program that runs models in the GGUF format; its llama-server speaks the OpenAI-compatible API. Nothing leaves your computer, and there is no key.
How to set it up
- Start the server with a model that can call tools, a context of at least 16 384 tokens, and tool calling on, for example:
llama-server -m model.gguf -c 16384 --jinjaIt answers athttp://127.0.0.1:8080by default. - In the app: Settings ▸ Assistant ▸ Your own server. Find local servers looks on port 8080 of this computer and lists the server it finds; pick it, or type
http://127.0.0.1:8080/v1into Server address. - Model: the server lists the model it runs; pick it.
- Test connection. The app reads the context size the server was started with (
-c) and says whether it is enough. - Save settings.
The context window
It is the -c (or --ctx-size) of llama-server. If the app says "That is too small", restart the server with a larger number. See The context window.
What can go wrong
- "The model server does not answer." The server is not running or uses another port.
- Tool calls fail or come back as text: the server was started without tool calling, or the model's chat template does not support tools.
The server must be started with --jinja: without it tool calling does not work. Settings ▸ Assistant ▸ How to set the window by hand gives the same line.