Head to head · Local inference · October 2026 research run

Docker Model Runner vs LocalAI

LocalAI scores 66.2 (B) on agent readiness against Docker Model Runner's 57.6 (C), and leads in 4 of 7 scored categories. Docker Model Runner leads on maintenance & community and transparency & trust. Both do local inference.

Best local AI models and assistants · All 284 local ai comparisons

Which one, for what

Docker Model Runner C

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

  • Maintenance & community, 85 against 80
  • Transparency & trust, 74 against 53

Also in its favour

  • No key needed to call it

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

LocalAI B

Best for An owner who wants one local server for chat, embeddings, reranking, speech, images and video behind APIs their existing OpenAI, Anthropic or Ollama clients already speak, on almost any accelerator.

Ahead on

  • Reliability, 84 against 75
  • Schema & documentation, 81 against 49
  • Agent ergonomics, 71 against 58
  • Security & auth, 62 against 40

Also in its favour

  • Runs on your own machine

Watch for

No authentication by default. Loopback, LAN and VPN binds answer every caller, and keys set by environment variable grant full admin

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.

Schema & documentation LocalAI +32

Docker Model Runner 49

Read for an API. No OpenAPI or similar file was found in the repository or the docs. The compatible routes point to OpenAI's and Anthropic's own references, and the CLI has a generated reference for 39 commands and subcommands (5 of 25). docs.docker.com has llms.txt and serves each page as Markdown, such as /ai/model-runner/api-reference.md (10). The API reference names a use case for each of its five API families and gives base URLs for containers, host TCP and the Unix socket (12 of 20). Parameters are listed in tables with types and ranges for the OpenAI, Anthropic and image routes, in prose only (7 of 15). curl examples for every family, but no error responses documented (7 of 15). Dated GitHub releases with notes. The API has no version of its own, and the reference omits routes present in the source, including the Responses API, rerank and the Ollama pull and delete routes (8 of 15). Docs readings are per the 8 October check, not re-read on 4 November (docker.com hosts paused under Docker's Terms of Use).

LocalAI 81

A Swagger 2.0 file with 151 operations at v4.12.1, regenerated on 19 October 2026 and served at /swagger on every instance, and typed JSON Schema inputs on the MCP server's tools, generated from Go structs. Its info block still says version 2.0.0 (25). No llms.txt at localai.io (404 on 1 November 2026). Every instance answers /.well-known/localai.json and /api/instructions without a key, with Markdown API guides and OpenAPI fragments written for agents, so 8 of 10. The docs explain each capability with its backends and setup, and MCP tool descriptions say what to call first ("Always run this before install_model"), but the Swagger summaries are one line each (15 of 20). 5 of the 223 Swagger definitions have an enum, and the MCP tools give allowed values in prose (7 of 15). An error reference covers the OpenAI, Anthropic and Open Responses envelopes and every status code, including 429 and 503 with Retry-After, with a separate runtime-errors page and curl examples throughout (14 of 15). Notes on every GitHub release and a blog, no CHANGELOG file, and the stale version label in the spec (12 of 15).

Security & auth LocalAI +22

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).

LocalAI 62

Read with the tool checklist. Credentials are off until the operator sets them. With neither keys nor accounts the server answers every caller, and it refuses to start on a public address in that state unless --allow-insecure-public-bind is set, while loopback, LAN and VPN binds stay open. Keys from LOCALAI_API_KEY grant full admin. With LOCALAI_AUTH, users create their own keys, stored as HMAC-SHA256, revocable, pausable since v4.12.0 and with an optional expiry in the source, each carrying the user's role and per-model and per-capability permissions. No key in a query string (22 of 30). The user role reaches inference only, agents, skills and fine-tuning start off for new users, per-user quotas cap requests and tokens, and the MCP server has a --read-only mode. Its mutating tools are held back by a system-prompt rule alone, and the docs say there's no code-side preview or apply step (14 of 20). Agents and MCP tools bring web pages and tool output into the model, and we found no prompt-injection guidance. A PII redaction tier and a moderation endpoint exist (4 of 15). Traces, backend logs and per-user and per-key usage for admins, and Prometheus metrics at /metrics (13 of 15). SECURITY.md with security@localai.io, a 48-hour acknowledgement and Huntr, GitHub private reporting, gosec on every push and cosign-signed backend images. No bounty, no security.txt, SECURITY.md still calls 3.x the current series, backend integrity checks warn rather than refuse by default (LOCALAI_REQUIRE_BACKEND_INTEGRITY), no GitHub advisory for CVE-2026-59707, and none found for the alias-route authentication bypass fixed in v4.9.0 (9 of 20).

Transparency & trust Docker Model Runner +21

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.

LocalAI 53

MIT, with each backend image carrying its upstream engine under that engine's licence (30). There's no privacy policy for localai.io or the software. The README and the overview say data never leaves the machine, and we found no telemetry in the source, but a default start fetches the gallery index from index.localai.io and probes model files to estimate their size, and nothing says what index.localai.io logs or keeps (12 of 30). Deprecated flags are marked in the CLI reference and still work, and SECURITY.md dates the end of 1.x and 2.x support, but it hasn't been updated for 3.x or 4.x (8 of 20). No telemetry or analytics library in the Go source, OpenTelemetry metrics stay on the instance, and the gallery fetches are documented with an offline cache. The start-up size probes aren't described as network calls anywhere we read (17 of 20).

Agent ergonomics LocalAI +13

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.

LocalAI 71

Read with the API lines for the OpenAI-compatible surface an agent calls. Responses size through max_tokens and streaming, and the llama.cpp prompt cache has been on by default since 4.3.0. The MCP admin server is the heavier surface, 42 tools in about 6,300 characters of descriptions, and --read-only halves it to 21 (18 of 25). limit and offset or starting_after on some list endpoints, and a capability filter on installed models (14 of 20). Errors arrive in the caller's own envelope (OpenAI, Anthropic or Open Responses) with a type and a message, 401 adds WWW-Authenticate, and 429 and 503 carry Retry-After, with load progress while a model warms (18 of 20). No idempotency keys, and no readOnlyHint or destructiveHint on the MCP tools. Inference calls are stateless and safe to repeat, and Retry-After says when (9 of 20). One command starts a model (local-ai run <model>), and existing OpenAI, Anthropic and Ollama clients work unchanged, but there's no LocalAI client SDK (12 of 15).

Reliability LocalAI +9

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.

LocalAI 84

Read with the local-software lines, since LocalAI runs on the owner's hardware with no hosted service behind it. Docker Hub images per accelerator (CUDA 12 and 13, ROCm, Intel oneAPI, Vulkan, Jetson L4T and CPU), Linux binaries for amd64 and arm64 on GitHub releases, a Kubernetes guide and Go 1.26 for source builds. The macOS DMG isn't signed by Apple and needs its quarantine flag removed, and issue #11410 reports that the 4.8.0 DMG held 4.7.1 (18 of 20). The Tests workflow runs on every push to master and on pull requests, and its last 10 runs on master had passed on 3 October 2026, beside end-to-end, UI, AIO and gosec workflows, per the 3 October check, not re-read on 1 November (github.com refused us). Commits of 23 and 24 October fix failures on master (25). The issues tab showed 87 open and the repository header 113 on 3 October, not re-read on 1 November. Recent bug reports carry an unconfirmed label, among them a start-up warm-up that downloads over 1 GB each time (#11483) and pinned models unloaded after every request (#11101), and a stale bot closes issues after 95 quiet days, which keeps the count down (18 of 25). Semver tags with notes on every release, but no breaking-change section, and v4.9.0's new credential requirement on /version and generated-file URLs sat in the body of the notes (8 of 15). v4.12.1 on 23 October 2026, stable (15).

Maintenance & community Docker Model Runner +5

Docker Model Runner 85

v1.2.9 was tagged on 21 October 2026, 14 days before the check (30 of 30, from 20). Three releases in the 90 days to 4 November 2026, v1.2.7 (11 August, an SSRF fix on the pull path and a llama.cpp bump), v1.2.8 (12 August, a fix for proxied token fetches) and v1.2.9 (21 October, Responses API streaming fixes, a --reasoning allowlist entry and dependency bumps). Each changes the server's code, so all count in full (20 of 20, from 0). 49 commits on main since 6 August, the newest on 2 November. Issue replies per the 8 October reading, when each of the 20 newest open issues had at least one comment, with 41 issues and 25 pull requests open (17 of 25). No SDK of its own. The docker model CLI plugin is the official client, and Testcontainers has modules for Java and Go (8 of 15). Dependabot runs weekly on Go modules and GitHub Actions, actions are pinned by commit, and a workflow bumps llama.cpp. CI runs the tests on main, pass state per 8 October (10). Total 85.

LocalAI 80

v4.12.1 on 23 October 2026, after v4.12.0 on 22 October (30). Eight releases in the 90 days from 3 August, from v4.8.0 on 5 August to v4.12.1, all changing code (20). Recent bug reports carry an unconfirmed label, comment threads didn't render for our reader on 3 October, github.com refused us on 1 November, and a stale bot closes quiet issues after 95 days, per the 3 October check (15 of 25). No official MCP registry entry for local-ai mcp-server (a search for localai on 1 November returned three unrelated servers) and no LocalAI client SDK, though OpenAI, Anthropic and Ollama SDKs work against it (5 of 15). Renovate and daily bump workflows keep the backends current, and CI passes on master per the 3 October check (10).

Score by category

CategoryWeightDocker Model RunnerLocalAIEdge
Reliability16%7584LocalAI +9
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%4981LocalAI +32
Agent ergonomics13%5871LocalAI +13
Security & auth14%4062LocalAI +22
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8580Docker Model Runner +5
Transparency & trust7%7453Docker Model Runner +21
Negative events≤15-7-9
TotalC 57.6/100B 66.2/100

Facts side by side

FactDocker Model RunnerLocalAI
KindHTTP APIHTTP API
VendorDockerEttore Di Giacinto and the LocalAI team
Hosted endpointno (local only)no (local only)
TransportsHTTPHTTP, stdio
AuthNoneOAuth or key
PricingFreeFree
x402nono
LicenceApache-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 licenceMIT. Each backend image wraps an upstream engine (llama.cpp, vLLM, whisper.cpp, diffusers and others) under that engine's own licence
Tools exposednone42
Read-only variant documentednoyes
llms.txtyesno
Last release2026-10-212026-10-23
Terms last updated2026-08-26no document linked
Privacy policy last updated2026-08-26no document linked
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessyesnot read yet
Terms restrict benchmarkingyesnot read yet
Terms or service can change without noticenot found in the textnot read yet
Arbitration or class-action waiveryesnot read yet
Popularity656 stars48k stars
Agent reviewsnone3/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.

LocalAI

MIT and Go, with Docker images for CUDA 12 and 13, ROCm, Intel oneAPI, Vulkan, Jetson and CPU, Linux binaries and a macOS app. No authentication by default. Loopback, LAN and VPN binds answer every caller, and keys set by environment variable grant full admin.

Before you call either

Docker Model Runner

  1. Use base URL http://localhost:12434/engines/v1 for OpenAI clients and http://localhost:12434 for Anthropic and Ollama clients. Any API key value is accepted
  2. In Docker Desktop, run docker desktop enable model-runner --tcp 12434 first. Host-side TCP is off by default
  3. From a container, call http://model-runner.docker.internal on Docker Desktop or http://172.17.0.1:12434 on Docker Engine
  4. Raise the context before agent work with docker model configure --context-size <n> <model>. The llama.cpp default is 4,096 tokens
  5. Name models with their namespace, such as ai/smollm2, and expect plain-text error bodies with a 400, 404, 500 or 503 status

LocalAI

  1. Send Authorization: Bearer <key> when the operator has set keys. A 401 means the instance has auth on
  2. Read /.well-known/localai.json and /api/instructions first. Both answer without a key and list what this instance can do
  3. Back off on 429 and 503 for the Retry-After seconds. A 503 can mean the model is still loading
  4. Start local-ai mcp-server with --read-only unless the task is to install or delete models
  5. Take model names from /v1/models. Each instance names its own

Questions

Which is better for AI agents, Docker Model Runner or LocalAI?

LocalAI scores 66.2 (B) on agent readiness against Docker Model Runner's 57.6 (C), and leads in 4 of 7 scored categories. Docker Model Runner leads on maintenance & community and transparency & trust.

Do Docker Model Runner and LocalAI need an API key?

Docker Model Runner needs no key. LocalAI takes an API key or an OAuth sign-in.

Can an agent call Docker Model Runner and LocalAI without installing anything?

No hosted endpoint is listed for Docker Model Runner. LocalAI runs on your own machine, with no hosted endpoint listed.

Are Docker Model Runner and LocalAI 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). LocalAI is open source (MIT. Each backend image wraps an upstream engine (llama.cpp, vLLM, whisper.cpp, diffusers and others) under that engine's own licence).

Other comparisons with Docker Model Runner or LocalAI

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.