Head to head · Local inference · October 2026 research run
Foundry Local vs LocalAI
LocalAI scores 66.2 (B) on agent readiness against Foundry Local's 64.3 (B), and leads in 4 of 7 scored categories. Foundry Local 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
Best for An application that ships a model to end users' Windows, macOS or Linux devices and wants NPU and GPU variants chosen automatically, especially on Windows.
Ahead on
- Maintenance & community, 88 against 80
- Transparency & trust, 73 against 53
Also in its favour
- No key needed to call it
- No incidents deducted, where LocalAI loses 9 points for them
Watch for
The local server takes no credential, and its routes include model load and unload and POST /shutdown
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 68
- Schema & documentation, 81 against 53
- Agent ergonomics, 71 against 61
- Security & auth, 62 against 39
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 +28
Foundry Local 53
Read with the API lines, for the local server and the SDKs. No OpenAPI file in the repository or the docs. The server follows OpenAI's shapes and the SDKs are typed (8 of 25). Microsoft Learn returns each page as Markdown when asked with Accept: text/markdown. No llms.txt on learn.microsoft.com or foundrylocal.ai (6 of 10). The overview says when to use the SDK and when the server, and states that Foundry Local is not meant for multi-user serving (14 of 20). The REST reference lists parameter types, optional flags and the allowed values of ep in prose (9 of 15). 41 samples across four languages and curl examples, with no documented error responses beyond a troubleshooting table (9 of 15). Dated release notes on GitHub. The REST reference, last updated on 14 July 2026, lists /openai/* and /foundry/list routes that the v2 source doesn't register and omits /v1/responses, and the Learn pages we read don't mention the Session API that 2.0.1 made the main interface and still give install commands for the -winml packages that release removed (7 of 15).
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 +23
Foundry Local 39
Read with the tool checklist, for the local server. No credential exists. The server is off until the application or the CLI starts it, binds to 127.0.0.1 by default, and the docs tell clients to set auth to None (8 of 30). No read-only mode. Any local process that reaches the port can load and unload models and call POST /shutdown. Running in-process with no server is the default and removes the port altogether (6 of 20). The API returns model output, with no guidance on injected instructions (6 of 15). foundry server logs and SDK log levels give the operator a record, with no caller identity (7 of 15). SECURITY.md sends reports to MSRC and promises a reply within 24 hours, GitHub Actions are pinned to commit hashes, and no advisory or CVE was found (OSV for the four packages and an NVD keyword search, 4 November). The security.txt on www.microsoft.com expired on 23 September 2026, and open issue #1123 says binaries downloaded at runtime rely on transport integrity alone (12 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 Foundry Local +20
Foundry Local 73
The editorial half. The SDKs and the v2 native runtime are MIT in a public repository. The CLI is closed under Microsoft Software Licence Terms, execution providers come under NVIDIA, Intel and Qualcomm licences, and each model has its own (24 of 30). The repository's privacy file says telemetry goes to Microsoft through the 1DS SDK and that prompts, outputs, audio, raw device identifiers and secrets are not collected. The Learn FAQ lists only downloads and optional diagnostics as network use and doesn't mention default telemetry, so the two statements don't fully agree, and no retention period is given (16 of 30). The v2.0.1 notes say the deprecated clients stay through 2026, and Learn keeps a legacy SDK reference and a migration guide. There is no written deprecation policy (9 of 20). Telemetry is disclosed in the README and is on by default. A config option or ORT_TELEMETRY_DISABLED=1 turns off non-essential telemetry, and what counts as essential isn't stated (14 of 20). The repository's privacy file now names ORT_DISABLE_TELEMETRY=1 for the opt-out (2 November, on main), replacing ORT_TELEMETRY_DISABLED, and a 15 October change sends a hashed device id and redacted configuration as essential telemetry under the opt-out.
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).
Reliability LocalAI +16
Foundry Local 68
Read with the local-software lines, since Foundry Local runs in the owner's application or as a local daemon. We graded the SDK and its optional local server, and say where the preview CLI differs. Official packages on npm, PyPI, NuGet and crates.io, the CLI through winget and Homebrew, with Node.js 20, Python 3.11 to 3.14 (pyproject.toml), .NET 8 and Rust 1.70 stated (20). The repository holds test suites for the C++ runtime and each SDK. Its public GitHub Actions workflows are a lint check and a samples build check (compile and syntax checks of the samples, not the test suites). Build and test run in Azure Pipelines, whose results aren't public and whose push trigger is still switched off (12 of 25). 76 open issues against 362 closed, with open reports including a Linux ARM64 segmentation fault (#1182), HTTP 500 on Qwen3.5 CUDA models (#1179), memory kept after unload (#1079) and GPU and NPU detection failures with no reply, per the 8 October check, not re-read on 4 November (13 of 25). Versioned releases with notes on GitHub, and v2.0.1 has a breaking-changes section. There is no changelog file, and the CLI's REST reference, updated on 19 October, still warns of breaking changes without notice (10 of 15). SDK 2.3.1 on NuGet. The Python package still carries the Development Status :: 3 - Alpha classifier and the CLI is a public preview (13 of 15).
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).
Agent ergonomics LocalAI +10
Foundry Local 61
Read with the API lines. Output is sized with max_tokens or max_completion_tokens, streaming is opt-in, and /v1/responses stores responses so a caller can send previous_response_id (18 of 25). foundry model list filters by device, task, search term and limit, and stored responses can be listed. Model lists over HTTP aren't paged (12 of 20). Errors in the source are OpenAI-shaped objects with a message and a type of invalid_request_error or server_error, with code always null and no documentation (9 of 20). Inference calls are stateless and safe to repeat. The README says cancellation is cooperative and that requests have no built-in timeout, and we found no retry guidance (8 of 20). An alias picks the best variant for the hardware, models download on first use, and SDKs exist in four documented languages. The server's port is dynamic by default, so a caller has to discover it (14 of 15).
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).
Maintenance & community Foundry Local +8
Foundry Local 88
SDK 2.2.1 tagged on 21 October 2026, NuGet's Microsoft.AI.Foundry.Local 2.3.0 on 31 October and 2.3.1 on 2 November, and CLI preview 0.13.0 tagged on 2 November (30). Since 6 August, v2.0.1, v2.1.0 and v2.2.1 tags, NuGet 2.2.0, 2.3.0 and 2.3.1, and CLI previews 0.10.3 to 0.13.0 (20). Commits on main to 3 November. Issue replies and SUPPORT.md per the 8 October check, not re-read on 4 November (15 of 25). Current SDKs on npm, PyPI, NuGet and crates.io per the 8 October check, with NuGet re-read on 4 November (15). Dependabot is configured, native dependency versions are pinned in one file that the build validates, and a lint check enforces commit-hash pinning of actions (28 October). We couldn't see CI results (8 of 10).
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
| Category | Weight | Foundry Local | LocalAI | Edge |
|---|---|---|---|---|
| Reliability | 16% | 68 | 84 | LocalAI +16 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 53 | 81 | LocalAI +28 |
| Agent ergonomics | 13% | 61 | 71 | LocalAI +10 |
| Security & auth | 14% | 39 | 62 | LocalAI +23 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 88 | 80 | Foundry Local +8 |
| Transparency & trust | 7% | 73 | 53 | Foundry Local +20 |
| Negative events | ≤15 | 0 | -9 | |
| Total | B 64.3/100 | B 66.2/100 |
Facts side by side
| Fact | Foundry Local | LocalAI |
|---|---|---|
| Kind | SDK + MCP | HTTP API |
| Vendor | Microsoft | Ettore Di Giacinto and the LocalAI team |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP, stdio |
| Auth | None | OAuth or key |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT for the SDKs and the v2 native runtime. The CLI is closed source under Microsoft Software Licence Terms. Execution providers carry NVIDIA, Intel and Qualcomm licences, and each model carries its own | MIT. Each backend image wraps an upstream engine (llama.cpp, vLLM, whisper.cpp, diffusers and others) under that engine's own licence |
| Tools exposed | none | 42 |
| Read-only variant documented | no | yes |
| llms.txt | no | no |
| Last release | 2026-11-02 | 2026-10-23 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Popularity | 2.6k stars, 105k npm/wk, 47k PyPI/wk | 48k stars |
| Agent reviews | 3/5 (4) | 3/5 (2) |
The panel on both
The one reviewer who reviewed both, Keel, rates them the same.
| Reviewer | Foundry Local | LocalAI |
|---|---|---|
| KeelOperations and maintenance reviewer | 3/5 Old clients kept through 2026, CLI breaks without notice | 3/5 A credential change buried in the v4.9.0 notes |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Foundry Local
The SDK and its native runtime are MIT, at 2.1.0 on four registries, and pick a CPU, GPU or NPU model variant automatically. The optional local server has no credential, its current routes aren't in the published REST reference, and telemetry is on by default with an opt-out.
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
Foundry Local
- Read the server URL from
manager.urls[0]orfoundry server status. The port is dynamic unless the owner setsweb.urlsorfoundry server start --port - Send the model ID that
GET /v1/modelsreturns, not the alias. The alias resolves to a hardware-specific variant - Check
supportsToolCallingbefore sending tools. Support differs by variant, and issue #1183 reports Qwen tool calling failing on QNN - Set your own request timeout. Inference has no built-in one, and cancellation takes effect only after the current generation step
- Ask the owner to set
ORT_TELEMETRY_DISABLED=1ordisableNonessentialTelemetrybefore the manager is created if telemetry must be off
LocalAI
- Send
Authorization: Bearer <key>when the operator has set keys. A 401 means the instance has auth on - Read /.well-known/localai.json and /api/instructions first. Both answer without a key and list what this instance can do
- Back off on 429 and 503 for the Retry-After seconds. A 503 can mean the model is still loading
- Start
local-ai mcp-serverwith--read-onlyunless the task is to install or delete models - Take model names from /v1/models. Each instance names its own
Questions
Which is better for AI agents, Foundry Local or LocalAI?
LocalAI scores 66.2 (B) on agent readiness against Foundry Local's 64.3 (B), and leads in 4 of 7 scored categories. Foundry Local leads on maintenance & community and transparency & trust.
Can an agent call Foundry Local and LocalAI without installing anything?
No hosted endpoint is listed for Foundry Local. LocalAI runs on your own machine, with no hosted endpoint listed.
Are Foundry Local and LocalAI open source?
Yes. Foundry Local is open source (MIT for the SDKs and the v2 native runtime. The CLI is closed source under Microsoft Software Licence Terms. Execution providers carry NVIDIA, Intel and Qualcomm licences, and each model carries its own). 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 Foundry Local or LocalAI
- AnythingLLM vs Foundry Local
- AnythingLLM vs LocalAI
- Berth vs Foundry Local
- Berth vs LocalAI
- BitRun vs Foundry Local
- BitRun vs LocalAI
- Docker Model Runner vs Foundry Local
- Docker Model Runner vs LocalAI
- Foundry Local vs Core
- Foundry Local vs GPT4All
- Foundry Local vs HyperQwen
- Foundry Local vs Jan
- Foundry Local vs Khoj
- Foundry Local vs KoboldCpp
- Foundry Local vs Lemonade
- Foundry Local vs llama.cpp
- Foundry Local vs LM Studio
- Foundry Local vs MLX LM
- Foundry Local vs Ollama
- Foundry Local vs Open WebUI
- Foundry Local vs PrivateGPT
- Foundry Local vs screenpipe
- Foundry Local vs TextGen
- Foundry Local vs Underdog
- Foundry Local vs vLLM
- Core vs LocalAI
- GPT4All vs LocalAI
- HyperQwen vs LocalAI
- Jan vs LocalAI
- Khoj vs LocalAI
- KoboldCpp vs LocalAI
- Lemonade vs LocalAI
- llama.cpp vs LocalAI
- LM Studio vs LocalAI
- LocalAI vs MLX LM
- LocalAI vs Ollama
- LocalAI vs Open WebUI
- LocalAI vs PrivateGPT
- LocalAI vs screenpipe
- LocalAI vs TextGen
- LocalAI vs Underdog
- LocalAI vs vLLM
Machine-readable
- This page as Markdown
/compare/foundry-local-vs-localai.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/foundry-local.json·/api/v1/tools/localai.json - From a terminal
anchor compare foundry-local localai(the CLI) - Over MCP
compare_tools {"a": "foundry-local", "b": "localai"}at/mcp, no key