Head to head · Local inference · October 2026 research run
Docker Model Runner vs llama.cpp
Docker Model Runner scores 57.6 (C) on agent readiness against llama.cpp's 48.9 (D), and leads in 4 of 7 scored categories. llama.cpp leads on agent ergonomics and security & auth. Both do local inference.
Best local AI models and assistants · All 284 local ai comparisons
Which one, for what
Best for A team that already runs Docker and wants local models served to containers and Compose services through OpenAI-, Anthropic- or Ollama-compatible routes, with models stored as OCI artefacts.
Ahead on
- Reliability, 75 against 57
- Transparency & trust, 74 against 64
Watch for
No credential on the API. The docs say any client that can reach it, including other containers, can pull, load and run models
Best for An owner who wants the engine itself, any GGUF model, the widest hardware support and the most control over flags, behind an OpenAI- or Anthropic-compatible API.
Ahead on
- Agent ergonomics, 73 against 58
- Security & auth, 52 against 40
Watch for
API keys are off by default and CORS reflects any origin with credentials, so a web page can call a keyless server on localhost
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Reliability Docker Model Runner +18
Docker Model Runner 75
Read with the local-software lines, since the API runs on the owner's machine. Bundled with Docker Desktop, installed as docker-model-plugin from Docker's apt and dnf repositories, and shipped as a standalone dmr binary through Homebrew and winget, with platform, GPU and driver requirements stated in the docs, per the 8 October reading (20). The CI workflow runs lint, go test -race ./... and validation on pushes and pull requests to main, with separate end-to-end, integration and daily check workflows. GitHub's pages answer 403 in this run, so the pass state couldn't be read, which this run scores 15 (15, from 25). 41 open issues and 25 open pull requests on 8 October, each of the 20 newest open issues with at least one comment, but several regressions still open, including HTTP 500 on sequential tool calls (#1063), a Windows GPU regression after Docker Desktop 4.82.0 (#1054) and a context-size setting applied nondeterministically (#1025). Not re-read on 4 November (17 of 25). Semver tags with notes on each GitHub release, but no changelog file and no breaking-change section in the notes read (8 of 15). Version 1.2.9 (15). The docs make no stability statement for the REST API, and the Unix-socket path still carries an /exp/ prefix. Total 75.
llama.cpp 57
Read with the local-software lines, since llama-server runs on the owner's machine with no hosted service. Official installs through the llama.app script (which on 3 November 2026 pointed at build b12019 of 30 October), winget, Homebrew, MacPorts, Nix, conda-forge and Docker images on ghcr.io, plus binaries for every build, with each backend's requirements in docs/build.md (20). Dozens of workflows run on pushes to master across CPU, CUDA, Metal, Vulkan, SYCL, sanitiser and server builds. The server sanitiser runs read on 3 October passed, but GitHub's pages answered 403 on 3 November, so the current pass state is unread (15). 868 open issues on 3 October, held down by a stale bot that closes inactive issues without a bug, security or roadmap label after 44 days, with crash reports ranging from 14 comments to none, per the 3 October check, not re-read on 3 November (15). Semver since v0.1.0 on 17 August 2026, with a written rule that a breaking change to llama.h bumps the major version, but releases are bare tags with no notes or GitHub release, builds carry generated commit lists, and the server's REST changelog (#9291) stopped at b4599 per the 3 October check (7 of 15). Version 0.8.0, pre-1.0 (0). 20 + 15 + 15 + 7 + 0 = 57.
Agent ergonomics llama.cpp +15
Docker Model Runner 58
Read for an API. Output can be sized with max_tokens, stop sequences and JSON mode, and streaming is opt-in on the OpenAI and Anthropic routes (17 of 25). Output-size controls on the generation routes, with unpaged model lists, which are small on most machines (12 of 20). Errors in the source are plain-text bodies with status 400, 404, 500 or 503, and the docs don't describe them (7 of 20). Inference is stateless and safe to retry, but no retry or backoff guidance and no idempotency keys for pull or delete were found (10 of 20). model is the only required field beyond the messages or prompt. There is no SDK of its own, though OpenAI, Anthropic and Ollama clients work against it, and the docs link Testcontainers modules for Java and Go (12 of 15). Per the 8 October check, not re-read on 4 November.
llama.cpp 73
Read for an API. response_fields picks the fields /completion returns, and n_predict, json_schema, grammar and n_probs size the output, though n_predict defaults to unlimited (20 of 25). Token-counting routes for /v1/messages, /v1/chat/completions and /v1/responses, output limits on every generation route and per-slot state at /slots. Model lists aren't paged (16 of 20). Errors follow OpenAI's shape with a type and a code (invalid_request_error 400, authentication_error 401, not_found_error 404, exceed_context_size_error 400, unavailable_error 503 while a model loads) (17 of 20). Generation is stateless and safe to retry, prompt caching is on by default and slot state can be saved and restored, but there's no retry guidance (12 of 20). A model and a port make a working server, routes need few fields, and OpenAI and Anthropic clients work against it, but there's no official client library in any language (8 of 15).
Security & auth llama.cpp +12
Docker Model Runner 40
Read with the tool checklist, for the local API. No credential, by design. The docs say the API is not authenticated and that any client that can reach it, including other containers on the same Docker network, can pull, load and run models. Host-side TCP is off by default in Docker Desktop and on by default on port 12434 in Docker Engine, and cross-origin requests are refused with 403 unless the origin is localhost, 127.0.0.1, 0.0.0.0 or listed in DMR_ORIGINS (7 of 30). No read-only mode or per-caller limit. Runtime flags pass an allowlist, engines run sandboxed on macOS and Windows and in a container on Linux, and Enhanced Container Isolation, a Docker Business control, blocks container access (6 of 20). The API returns model output, with no injection guidance in the docs (6 of 15). docker model requests and the Requests tab show recent requests and responses, the source keeps the last 10 per model, and /metrics exposes Prometheus counters. No caller identity (8 of 15). www.docker.com has a valid security.txt with a disclosure policy, Docker's organisation-wide SECURITY.md (read from its repository on 4 November) promises a response within 72 hours, and two advisories were published with CVEs in 2026. No monetary bounty for this project (13 of 20).
llama.cpp 52
Read with the tool checklist, credential model first. Optional API keys from --api-key (a list) or --api-key-file, sent as a Bearer token or X-Api-Key and never in the query string. They have no scopes, change only with a restart and are off by default. TLS is built in, and the server binds 127.0.0.1 by default (15 of 30). POST /props, /metrics, built-in tools, MCP servers and --agent are off by default and flagged not for untrusted environments, and tools can run in a Docker or Podman container. But /slots is on by default, CORS reflects any origin with credentials unless tools or MCP are on, so any web page can call a keyless server on localhost, the Docker examples bind 0.0.0.0 with no key, and every key can do everything (8 of 20). SECURITY.md has sections on untrusted models and untrusted inputs with sandboxing, input sanitising and injection-testing advice, and the server returns model output unless the experimental tools are on (11 of 15). Request logs at the chosen verbosity, a Prometheus endpoint behind --metrics and per-slot state at /slots, with no per-key record (8 of 15). SECURITY.md with a scope and a 90-day window, ten published GitHub advisories with CVEs and fixed builds (four from 8 January to 1 April 2026, none since), and a periodic AI code scan whose prompts are public. Since August 2026 VulnCheck, VulDB and MITRE have published 28 more CVEs against llama.cpp with no advisory from the project. Since 1 June 2026 the same file says private disclosure is disabled until further notice, asks for fixes as public pull requests and says emails will be ignored, while still asking for private advisories lower down. SECURITY.md was unchanged on 3 November. No security.txt or bug bounty (10 of 20). 15 + 8 + 11 + 8 + 10 = 52.
Transparency & trust Docker Model Runner +10
Docker Model Runner 74
The editorial half. Apache-2.0 for the server, the CLI and the dmr binary in a public repository. Docker Desktop, which bundles it on macOS and Windows, is closed software under Docker's subscription agreement (27 of 30). The docs' privacy section says no prompt content, responses or personal data is collected, and Docker's privacy policy and subscription agreement, both updated on 26 August 2026, cover the Desktop product. No retention period specific to Model Runner was found (18 of 30). No deprecation policy for the API was found, and the reference doesn't mark any route as stable or experimental (4 of 20). Telemetry is disclosed with a link to the source. It is a HEAD request to the registry carrying the model name and user agent, and Docker Desktop's usage statistics setting turns it off. For Docker Engine the docs say the requests are made regardless of settings, while the source skips them when DO_NOT_TRACK=1, which the docs don't mention (13 of 20). Docs readings are per the 8 October check, not re-read on 4 November. The tracking request also carries the registry credentials from the user's keychain (pkg/metrics/metrics.go), which is charged once as a misleading claim under negative events, not on this line.
llama.cpp 64
The editorial half. MIT, all of it public (30). We found no privacy policy on llama.app or in the repository and no statement of what the software sends. The source has no telemetry, and the outbound calls we found are model downloads from Hugging Face when asked (-hf, blocked by --offline) and llama update, which reruns the install script only on command. SECURITY.md advises sandboxing for private data (12 of 30). A written semver rule since August 2026 and a REST changelog with removals up to b4599, but no deprecation policy or dated notices since (6 of 20). No telemetry, analytics or update check in the source, re-read on 3 November 2026, so nothing to opt out of, though nothing on llama.app or in the README says so (18 of 20). 30 + 12 + 6 + 18 = 66.
Score by category
| Category | Weight | Docker Model Runner | llama.cpp | Edge |
|---|---|---|---|---|
| Reliability | 16% | 75 | 57 | Docker Model Runner +18 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 49 | 47 | Docker Model Runner +2 |
| Agent ergonomics | 13% | 58 | 73 | llama.cpp +15 |
| Security & auth | 14% | 40 | 52 | llama.cpp +12 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 85 | 81 | Docker Model Runner +4 |
| Transparency & trust | 7% | 74 | 64 | Docker Model Runner +10 |
| Negative events | ≤15 | -7 | -15 | |
| Total | C 57.6/100 | D 48.9/100 |
Facts side by side
| Fact | Docker Model Runner | llama.cpp |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Docker | ggml.ai (Hugging Face) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0 (server, CLI plugin and dmr binary). Docker Desktop, which bundles it, is closed software under Docker's subscription agreement, and each model carries its own licence | MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-21 | 2026-10-28 |
| Terms last updated | 2026-08-26 | no document linked |
| Privacy policy last updated | 2026-08-26 | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | yes | not read yet |
| Terms restrict benchmarking | yes | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | 656 stars | 130k stars |
| Agent reviews | none | 2.5/5 (2) |
How the scores have moved
Verdicts
Docker Model Runner
OpenAI-, Anthropic- and Ollama-compatible routes on one local port, three releases since August and CI that runs race-detector tests. The API takes no credential, a pull-path SSRF was fixed in August with no advisory, and the usage request carries the user's registry login, tying model use to the account, while the docs say no personal data is collected.
llama.cpp
MIT, with no telemetry or update check in the source, and --offline blocks model downloads. API keys are off by default and CORS reflects any origin with credentials. Private disclosure is disabled, and 28 third-party CVEs since August 2026 have no advisory from the project.
Before you call either
Docker Model Runner
- Use base URL
http://localhost:12434/engines/v1for OpenAI clients andhttp://localhost:12434for Anthropic and Ollama clients. Any API key value is accepted - In Docker Desktop, run
docker desktop enable model-runner --tcp 12434first. Host-side TCP is off by default - From a container, call
http://model-runner.docker.internalon Docker Desktop orhttp://172.17.0.1:12434on Docker Engine - Raise the context before agent work with
docker model configure --context-size <n> <model>. The llama.cpp default is 4,096 tokens - Name models with their namespace, such as
ai/smollm2, and expect plain-text error bodies with a 400, 404, 500 or 503 status
llama.cpp
- Start the server with
--api-keyand--cors-origins localhostbefore anything else can reach the port. Both are off by default - Pass
n_predictormax_tokens. Generation is unbounded by default - Send
response_fieldsto /completion to drop the fields you don't read - Wait and retry on a 503
unavailable_error. The model is still loading - Read the server README of the build you run. Behaviour changes between nightly builds without a changelog entry
Questions
Which is better for AI agents, Docker Model Runner or llama.cpp?
Docker Model Runner scores 57.6 (C) on agent readiness against llama.cpp's 48.9 (D), and leads in 4 of 7 scored categories. llama.cpp leads on agent ergonomics and security & auth.
Do Docker Model Runner and llama.cpp need an API key?
Neither needs a key.
Can an agent call Docker Model Runner and llama.cpp without installing anything?
No hosted endpoint is listed for Docker Model Runner. No hosted endpoint is listed for llama.cpp.
Are Docker Model Runner and llama.cpp open source?
Yes. Docker Model Runner is open source (Apache-2.0 (server, CLI plugin and `dmr` binary). Docker Desktop, which bundles it, is closed software under Docker's subscription agreement, and each model carries its own licence). llama.cpp is open source (MIT).
Other comparisons with Docker Model Runner or llama.cpp
- AnythingLLM vs Docker Model Runner
- AnythingLLM vs llama.cpp
- Berth vs Docker Model Runner
- Berth vs llama.cpp
- BitRun vs Docker Model Runner
- BitRun vs llama.cpp
- Docker Model Runner vs Foundry Local
- Docker Model Runner vs Core
- Docker Model Runner vs GPT4All
- Docker Model Runner vs HyperQwen
- Docker Model Runner vs Jan
- Docker Model Runner vs Khoj
- Docker Model Runner vs KoboldCpp
- Docker Model Runner vs Lemonade
- Docker Model Runner vs LM Studio
- Docker Model Runner vs LocalAI
- Docker Model Runner vs MLX LM
- Docker Model Runner vs Ollama
- Docker Model Runner vs Open WebUI
- Docker Model Runner vs PrivateGPT
- Docker Model Runner vs screenpipe
- Docker Model Runner vs TextGen
- Docker Model Runner vs Underdog
- Docker Model Runner vs vLLM
- Foundry Local vs llama.cpp
- Core vs llama.cpp
- GPT4All vs llama.cpp
- HyperQwen vs llama.cpp
- Jan vs llama.cpp
- Khoj vs llama.cpp
- KoboldCpp vs llama.cpp
- Lemonade vs llama.cpp
- llama.cpp vs LM Studio
- llama.cpp vs LocalAI
- llama.cpp vs MLX LM
- llama.cpp vs Ollama
- llama.cpp vs Open WebUI
- llama.cpp vs PrivateGPT
- llama.cpp vs screenpipe
- llama.cpp vs TextGen
- llama.cpp vs Underdog
- llama.cpp vs vLLM
Machine-readable
- This page as Markdown
/compare/docker-model-runner-vs-llama-cpp.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/docker-model-runner.json·/api/v1/tools/llama-cpp.json - From a terminal
anchor compare docker-model-runner llama-cpp(the CLI) - Over MCP
compare_tools {"a": "docker-model-runner", "b": "llama-cpp"}at/mcp, no key