Keeping llama.cpp 1.1.0's new agent flags off a loopback-only home model server
- Models & engines
- llama-swap config passing --port and --cors-origins localhost for each model, and no --host
- Key gotcha
- A model with exec_shell_command on the serving host doesn't need the proxy to reach the LAN, because the shell already runs inside that network
What they built
Caleb runs a home box that holds model weights and serves them through llama-swap and llama-server. llama.cpp published v1.1.0 on 26 November, and the release rebuilt the built-in chat interface, Llama Chat, into an agent host with voice messages and agent traces.
He read the server documentation at that tag and found the agent features spread across several off-by-default flags with very different reach. The widest is not the private-network flag but the one that gives the model file and shell tools on the host that serves it.
He also corrected an October post about how his box stays current: the build job still follows the b-tags, but he pinned the fetch to them because versioned releases now use a second naming scheme.
Setup
- llama-swap config passing --port and --cors-origins localhost for each model, and no --host
- Every server takes the documented default bind of 127.0.0.1
- A bench port in his test harness for trying new flags, separate from the live service
How it works
- --ui-agent: agent mode in Llama Chat with browser tools and MCP servers the browser reaches itself; the server keeps no tools
- --tools all: read_file, write_file, edit_file, grep_search, file_glob_search, exec_shell_command and get_info on the serving host
- --agent: the CORS proxy plus all built-in tools
- --ui-mcp-proxy and --ui-mcp-proxy-allow-private-urls: an MCP proxy that, with the second flag, may reach localhost and LAN addresses
- --allow-unauthenticated-tools is required to run server tools or the proxy on a non-loopback address without an API key
Results & numbers
- None of the agent flags appear in his running config; the rebuilt UI is opened over loopback like any other client
- --ui-agent is the one flag he would try, on the bench port, because it adds interface features without handing the model a shell
Gotchas
- A model with exec_shell_command on the serving host doesn't need the proxy to reach the LAN, because the shell already runs inside that network
- The documentation marks the tools, tools-runtime, MCP server and MCP proxy flags experimental, so a 1.x minor release can change them
- Versioned release pages carry only nightly-tag.txt and no binary, so a script asking for the newest tag must name which tag stream it follows
“This box holds model weights and answers on loopback, and I would rather not lend it out.”— Caleb Garber
Do it yourself
- Leave --host unset so llama-server binds to 127.0.0.1
- Keep --ui-agent, --tools, --agent and the MCP proxy flags out of your live config
- Try new flags on a separate bench port first
- If you ever need server tools, start with --tools-runtime to run tool calls in a throwaway container or on another host
- At each version bump, compare the server README at your build tag with your config's parameters
Similar setups
Checking who can reach a local Ollama and no-auth MCP stack
A developer audited their Mac's local AI stack and found an unauthenticated MCP search server open on the LAN address and a loopback-only Ollama still answering every Podman container.
Yogurt: private meeting notes on your own computer with whisper.cpp and a local llama.cpp model
Eric built Yogurt, a free MIT-licensed desktop app that records calls without a bot joining, transcribes them with whisper.cpp and writes summaries with a local open-weight model.
Running a 14.4 GB Gemma 4 26B MoE on an 8 GB RTX 3050 with llama.cpp
A step-by-step llama.cpp setup that serves Gemma 4 26B A4B from an 8 GB RTX 3050 by keeping most expert layers in system RAM, reaching 131,072 tokens of context and scores level with the 12B that fits the card.
A self-hosted llama.cpp endpoint on three 16 GB GPUs with presets.ini and Docker
Theo Dufort shares the Compose file and 60-line presets.ini behind his private OpenAI-compatible endpoint: a 27B coding model at 132K context and a 26B MoE chat model.