llama.cpp 1.0 Upgrade: Fix Server, Flag and C API Breaks

Plan your llama.cpp 1.0 upgrade before you run it: v1.0.0 (released November 13, 2026 with ggml 1.0.0) is the first release under a strict semantic versioning promise, and it ships real breaking changes. If you run llama-server on a non-loopback address with tools or MCP and no API key, it now refuses to start; private image URLs are blocked by default; and code that links libllama loses 35 deprecated functions, clip.h and --defrag-thold. This guide shows how to check what you run, upgrade on each platform, fix each break, and roll back.

Written November 16, 2026. All facts were checked that day against the llama.cpp v1.0.0 release notes, the linked pull requests and the Hugging Face announcement. Nothing here was run on our own machines; commands are standard package-manager and git usage, so read the output before you rely on it.

What changed in llama.cpp 1.0

The Hugging Face post frames 1.0.0 mostly as a policy change. From now on, both projects bump the major version for "a breaking change to the public C API in ./include", the minor version for backward-compatible features, backend updates and model support, and the patch version for fixes with no API change. Nightly build tags (b12433 and so on) still appear several times a day; v1.0.0 is the stable tag on top of them.

The release itself also removes old APIs and tightens the server. These are the parts that can break an existing setup:

AreaWhat changedWho notices
Server startupTools or MCP proxy on a non-loopback --host without an API key is refusedHome-lab and LAN servers
Outbound URLsMedia URLs and the Web UI CORS proxy can no longer reach private addressesAnyone loading images from a NAS or local MCP
C API35 deprecated functions, llama_set_warmup, defrag_thold removed; one renameApps and bindings that link libllama
Multimodalclip.h removed, merged into mtmdVision or audio integrations
llama.cpp 1.0 breaking changes summary: server startup refusal, private URL blocking, removed C API functions and the removed defrag-thold flag
The four areas of llama.cpp 1.0 that can break an existing setup

New things you get in the same release include an OpenAI-compatible /v1/audio/speech endpoint, a host-memory MoE expert cache (moe_cache_size, moe_cache_cpu_share in llama_context_params), FP8 KV cache support and new models such as Kimi-K3.1-Pro. Those are additive and do not need any action.

Check which llama.cpp version you run

Start by recording what you have, so you know what to roll back to.

Install methodCommand
Any installllama-server --version
Homebrew (macOS, Linux)brew list --versions llama.cpp
winget (Windows)winget list llama.cpp
conda-forgeconda list llama.cpp
Source checkoutgit -C ~/src/llama.cpp describe --tags

For Docker, write down the image digest you run today; you will need it to roll back:

docker image inspect ghcr.io/ggml-org/llama.cpp:server --format '{{index .RepoDigests 0}}'

How to read the result:

  • Homebrew shows 1.0.0, or git describe starts with v1.0.0: you are already on 1.0. Go straight to the fixes below if something stopped working.
  • A plain build number (for example b12100) from before November 13, 2026, or a Homebrew/conda version below 1.0.0: you are on the old behavior. Upgrade only after the checks in this guide.
  • A nightly b12359 or later: the v1.0.0 release page links nightly b12359, so builds from that point on should already contain the 1.0 changes. Treat them as 1.0.

Then search your launch scripts, systemd units, Compose files and router presets for the flags that changed:

grep -rnE -- '--defrag-thold|(^|[^a-z])-dt |defrag-thold|--tools|--ui-mcp-proxy|--webui-mcp-proxy|--host|--api-key|--cors-origins' \
  /etc/systemd/system/ ~/llama/ docker-compose.yml models-preset.* 2>/dev/null

If you build against the C API, search your code too:

grep -rnE 'llama_set_embd_state_src|llama_set_warmup|defrag_thold|clip\.h|llama-ext\.h' src/ include/

Any hit means you have work to do before you upgrade.

Upgrade llama.cpp to 1.0 on each platform

Install methodUpgrade commandRollback option
Homebrewbrew update && brew upgrade llama.cppKeep a copy of the old binary; brew pin to hold
wingetwinget upgrade llama.cppwinget install llama.cpp --version <OLD_VERSION>
conda-forgeconda update -c conda-forge llama.cppconda install -c conda-forge llama.cpp=<OLD_VERSION>
Dockerdocker pull ghcr.io/ggml-org/llama.cpp:serverRun the old image by digest
Sourcegit checkout v1.0.0 and rebuildgit checkout <OLD_TAG> and rebuild

If you are not ready, hold the package first. On Homebrew, brew pin llama.cpp stops brew upgrade from touching it. On Docker, stop using the moving server tag in production and pin the digest you recorded:

services:
  llama:
    image: ghcr.io/ggml-org/llama.cpp:server@sha256:<YOUR_CURRENT_DIGEST>

The Docker docs list variant tags (server, server-cuda, server-cuda13, server-rocm, server-vulkan, server-intel, server-openvino and others) but do not document version-specific tags, so a digest is the reliable way to pin.

A source build of the stable tag looks like this:

cd ~/src/llama.cpp
git fetch --tags
git checkout v1.0.0
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j
./build/bin/llama-server --version

Add your backend option (for example -DGGML_CUDA=ON or -DGGML_VULKAN=ON) exactly as you did for the old build.

llama.cpp 1.0 upgrade flow from checking the version to testing and rolling back
A safe llama.cpp 1.0 upgrade path for llama-server and libllama users
View PlantUML source
@startuml
skinparam shadowing false
skinparam defaultFontSize 14
start
:Record version and image digest;
:Grep scripts for changed flags;
if (Host is not loopback\nand tools or MCP on?) then (yes)
  :Add --api-key;
endif
if (LAN image URLs?) then (yes)
  :Decide on --media-allow-private-urls;
endif
:Upgrade to v1.0.0;
if (Smoke test passes?) then (yes)
  :Keep 1.0;
else (no)
  :Roll back by digest or old binary;
endif
stop
@enduml

Fix llama-server 1.0 startup and tool errors

Tools or MCP on a LAN address now need an API key

PR #32113 changed this: "Enabling tools or MCP with --host (non-loopback) without API key is refused with an error." In practice, --tools all or --ui-mcp-proxy on 0.0.0.0 or a LAN IP with no key stops the server at startup. Loopback (127.0.0.1, ::1) still starts, and so does any setup with an API key.

llama-server 1.0 startup decision: loopback starts, API key starts, allow-unauthenticated-tools starts, non-loopback without key refuses
Whether llama-server 1.0 starts with tools or MCP enabled

The recommended fix is an API key:

llama-server -m /models/<YOUR_MODEL>.gguf \
  --host 0.0.0.0 --port 8080 \
  --api-key <YOUR_API_KEY> \
  --tools all

Clients then send Authorization: Bearer <YOUR_API_KEY>:

curl http://<SERVER_IP>:8080/v1/models \
  -H "Authorization: Bearer <YOUR_API_KEY>"

If every client sits on the same machine, the simpler fix is to bind to loopback (--host 127.0.0.1) and put a reverse proxy with authentication in front for remote access.

The escape hatch is --allow-unauthenticated-tools. It restores the old behavior, which means anyone who can reach the port can make the server run its tools. Use it only on an isolated network, and treat it as a temporary bridge, not a fix.

Router mode has one more catch from the same PR review: tools enabled only in a preset stay disabled on the router, and the reviewer found no way around that. Enable tools where the router itself is started, with a key.

–defrag-thold is gone

--defrag-thold (-dt) and the defrag_thold field were removed in PR #30565. A reviewer notes the flag "was already a no-op" on the server, so removing it changes nothing about memory use. The problem is startup: the router "refuses unknown keys in --models-preset", so a preset that still sets defrag-thold stops with option 'defrag-thold' not recognized. Delete the key from presets and the flag from every launch script your grep found.

CORS origins now check the port

--cors-origins now validates the port strictly. A browser app on another local port gets a 403 unless its exact origin, port included, is listed:

llama-server ... --cors-origins http://localhost:5173

Fix blocked image URLs and the MCP proxy

PR #32115 stops llama-server from fetching private addresses on behalf of a request. Before 1.0, both the CORS proxy and media URLs could reach any local address; the maintainers expected users to sandbox the server. Now:

  • Media URLs in chat requests (image_url pointing at localhost, a NAS or any LAN host) are refused unless you start the server with --media-allow-private-urls. In review, a public URL that redirected to 127.0.0.1 was refused as well.
  • The Web UI CORS proxy reaches public addresses only. A reviewer reported that --ui-mcp-proxy access to an MCP server on 127.0.0.1 stopped working, and the author said there is "no escape hatch". The suggested workaround is to enable CORS on the MCP server itself so the browser can call it directly.
  • HF_TOKEN is now sent only to huggingface.co hosts (PR #31730).
llama-server 1.0 private URL rules: LAN media URLs blocked unless --media-allow-private-urls, CORS proxy blocked for local MCP servers, public URLs allowed
Which outbound requests llama-server 1.0 still allows

If your pipeline sends images from a local file server, turn the flag on only where it is needed:

llama-server -m /models/<YOUR_VISION_MODEL>.gguf --mmproj /models/<YOUR_MMPROJ>.gguf \
  --host 127.0.0.1 --port 8080 \
  --media-allow-private-urls

The side effect is the one the PR was written to prevent: any client that can reach the server can make it fetch internal URLs. Pair the flag with --api-key or a loopback bind. The other option is to send images as base64 data in the request instead of a URL, which avoids server-side fetching entirely.

Migrate code that links libllama 1.0

This section matters only if you compile against llama.h or mtmd.h, directly or through a binding.

Old code1.0 replacementSource
llama_set_embd_state_src(...)llama_set_ctx_state_src(...), parameter src is now ctx_srcPR #30565
#include "llama-ext.h" for NextN / draft-model functionsThe 18 functions now live in llama.hPR #30565
llama_set_warmup(...)Removed, no replacement statedPR #30565
params.defrag_thold = ...Delete the linePR #30565
#include "clip.h"Use the mtmd.h / mtmd-helper.h APIPR #31865
libllama 1.0 C API migration: llama_set_embd_state_src renamed, clip.h removed in favor of mtmd, defrag_thold and llama_set_warmup removed, NextN functions moved to llama.h
llama.cpp 1.0 C API changes and their replacements

For the other deprecated functions, the release notes do not list replacements one by one. The maintainers point to the DEPRECATED notes in pre-1.0 headers, which name the function to use instead. Before you upgrade, compile your project once against the old llama.h with deprecation warnings visible:

cmake -B build -DCMAKE_C_FLAGS="-Wdeprecated-declarations" -DCMAKE_CXX_FLAGS="-Wdeprecated-declarations"
cmake --build build 2>&1 | grep -i deprecated

Each warning names the replacement. Fix them on the old version, confirm it still builds, then move to v1.0.0.

If you use a binding (Python, Go, Rust, Node), do not swap the shared library under it. Wait for the binding's own release that targets llama.cpp 1.0 and read its changelog. Multimodal projects should also note that model loading is stricter: 1.0 requires the projector and patch-embedding tensors and a 2×2 spatial merge at load (PRs #32129, #32130), so a malformed mmproj file that loaded before can now fail.

Troubleshooting after the upgrade

SymptomLikely causeFix
Server exits right after start with tools onNon-loopback host, no keyAdd --api-key or bind to 127.0.0.1
Router stops: option 'defrag-thold' not recognizedOld preset keyRemove defrag-thold from the preset
Image requests fail, public images workPrivate media URL blocked--media-allow-private-urls with a key, or send base64
Web UI cannot reach a local MCP serverCORS proxy is public-only nowEnable CORS on the MCP server
Browser app gets 403Port not in --cors-originsList the full origin with its port
Build error: clip.h not foundHeader removedPort the code to mtmd.h

To roll back, start the old binary you kept or the image you pinned by digest, then check llama-server --version again. On Homebrew there is no one-line downgrade, which is why keeping a copy of the old llama-server binary (or pinning before you upgrade) is worth the minute it takes.

llama.cpp 1.0 upgrade checklist: record version, grep flags, add API key, test LAN images and MCP, pin old version for rollback
Five checks before moving production to llama.cpp 1.0

Should you upgrade llama.cpp now?

Your setupDecision
Server on 0.0.0.0 or a LAN IP with tools or MCP and no API keyAdd a key now; the 1.0 defaults close a real exposure. Then upgrade.
Server fetching images from a NAS or localhostUpgrade this week, after testing --media-allow-private-urls
App or binding linked to libllamaUpgrade this week, after fixing deprecation warnings
Local CLI use (llama-cli, llama-server on 127.0.0.1, no tools)Little impact; upgrade whenever you like
Using llama.cpp only through another appNot affected directly; wait for that app's update

If you want local models without managing llama.cpp yourself, our guides to running local models in Copilot CLI with Ollama and Ollama text to speech on a Mac cover a more managed setup. If you run llama-server in Docker for weeks at a time, also set up Docker log rotation so its logs do not fill the disk.

FAQ

Is llama.cpp 1.0 a security release? No CVEs are listed for it. The server changes are hardening: the PR author wrote that "none of those are actually vulnerability". Still, a tool-enabled server on a LAN without a key lets anyone on that network run its tools, so fixing that is worth doing whether or not you upgrade.

Will my GGUF models still load in llama.cpp 1.0? The release notes list no general GGUF format change. The stricter checks apply to multimodal projector files (projector and patch-embedding tensors, 2×2 merge). If a vision model fails to load, re-download its mmproj file from the model's official repository.

Do nightly builds still exist after 1.0? Yes. Build tags such as b12430 to b12433 were published on November 16, 2026. Stable semantic versions sit on top of them; under the new policy, a future break in ./include means 2.0.0.

Does --allow-unauthenticated-tools have any downside? Yes. It brings back the old exposure: anyone who can reach the port can trigger tool calls. Prefer --api-key, or bind to loopback.

Where do I find the replacement for a removed function? In the DEPRECATED note next to that function in your current, pre-1.0 llama.h. Compile with deprecation warnings before upgrading and each warning names the replacement.

Upgrading is the easy half. The next step is to put llama-server behind a proper reverse proxy with authentication, so tools and media options stay safe as your setup grows.

References

Leave a Comment