Head to head · Local inference · October 2026 research run

MLX LM vs Open WebUI

MLX LM scores 54.4 (C) on agent readiness against Open WebUI's 52.8 (D), and leads in 1 of 7 scored categories. Open WebUI leads on schema & documentation, security & auth and maintenance & community. Both do local inference.

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

Which one, for what

MLX LM C

Best for An owner with an Apple silicon Mac who wants MLX-format models, local fine-tuning and quantisation from Python or the command line, with a simple local chat completions server.

Also in its favour

  • No key needed to call it
  • Free to start without a card
  • Open source

Watch for

mlx_lm.server has no API key or other credential option, and --allowed-origins defaults to *

Open WebUI D

Best for A team or a person who wants a self-hosted chat front end over Ollama or OpenAI-compatible models with users, groups, retrieval and tools, and an API an agent can call on that instance.

Ahead on

  • Schema & documentation, 65 against 37
  • Security & auth, 65 against 29
  • Maintenance & community, 86 against 81

Watch for

129 reviewed advisories cover flaws fixed from 24 November 2025 to 25 August 2026, 1 Critical and 56 High among them, with 19 more fixed in 0.11.4.

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.

Security & auth Open WebUI +36

MLX LM 29

Read with the tool checklist. The server has no credential of any kind and no flag to add one. It binds 127.0.0.1 by default (5 of 30). --allowed-origins defaults to *, so a web page can call a server on localhost, and any request can name a model or adapters path for the server to download or load. SERVER.md says local paths must be relative to the start directory, and we found no such check in the code. Since v0.32.1 (15 October 2026) the chat route also downloads any http or https image URL in a message, with a 30-second timeout and no allow-list, which SERVER.md does not mention. --trust-remote-code is off by default, and since v0.32.0 it also gates a model's model_file code (4 of 20). The server returns model output and parses tool calls without running them. No guidance on untrusted input (8 of 15). Logs at a chosen level, with request bodies at DEBUG, and no per-caller record (5 of 15). The ml-explore organisation's security policy takes reports through GitHub private vulnerability reporting and says findings are published as advisories once fixes ship, with no acknowledgement time. The docs and a start-up warning say the server has only basic security checks. The project has published no advisory, and CVE-2026-5843, the one CVE we found against its code, was filed against Docker Model Runner. No bounty is named (7 of 20). 5 + 4 + 8 + 5 + 7 = 29.

Open WebUI 65

Read with the tool checklist. One API key per user, sk- plus 32 hexadecimal characters, carrying that user's role and group permissions, revoked by deletion and rotated by generating a new one. Keys are off by default (ENABLE_API_KEYS), a group permission decides who may create one, and an administrator can limit them instance-wide to listed endpoints. They're stored in plain text, can be read back through GET /api/v1/auths/api_key, and have no scopes of their own and no expiry. The api_key table has expires_at and last_used_at columns that no code path sets. Tokens travel in the Authorization header, an x-api-key header or the session cookie, never a query string (20 of 30, plain revocable keys). Admin, user and pending roles with group permissions, per-model and per-knowledge access, workspace tools off for non-administrators, and tool permission modes (Ask for approval, and since 0.13.1 Auto with a review model) that are experimental and off by default. Workspace tools and functions are Python run with exec and the server's rights, which the security policy calls intended behaviour (14 of 20, read as localai's role scoping). Chats bring in web pages, files and tool output. The accepted-risks pages on model output and agentic applications name injected content in fetched pages and documents, say which injection reports count as vulnerabilities, and list the mitigations (per-user scoping, permissions, filters and confirmation prompts) (9 of 15). AUDIT_LOG_LEVEL records metadata, requests or requests with responses, NONE by default, and logs key calls under the key's owner, and API key creation and deletion raise events (12 of 15). The security policy takes reports only through GitHub Security Advisories, supports main only, gives no acknowledgement time ("Expect several weeks") and no bounty, and accepted reports become public advisories with patched versions. security.txt per the 3 October check, not re-read. No SOC 2 or ISO 27001. The route with no stated time is 7, and advisories handled in public add 3, as anythingllm's (10 of 20). 20 + 14 + 9 + 12 + 10 = 65. Advisories are charged one by one under negative events.

Schema & documentation Open WebUI +28

MLX LM 37

Read for the HTTP server, the surface an agent calls. No OpenAPI file or other machine-readable contract. SERVER.md says the API is intended to be similar to OpenAI's chat API (5 of 25). No llms.txt. The docs are Markdown files in the repository, 176 lines for the server (5 of 10). Request and response fields each have a one-line purpose, the page opens with the production warning, and stop gained a fuller description in October, but tools, seed, max_completion_tokens, chat_template_kwargs, image content parts, the /v1/completions route and /health are in the code and not in the docs (9 of 20). Types and defaults are given in prose, and the server checks types and ranges in code. We found no response_format or JSON schema output in server.py (6 of 15). Two curl examples and no documented error responses (5 of 15). Version tags (v0.32.0 to v0.32.2 since 30 September) and GitHub release notes, with no changelog file and no version on the API itself beyond the /v1 path (7 of 15). 5 + 5 + 9 + 6 + 5 + 7 = 37.

Open WebUI 65

Read with the API lines for the HTTP API an agent calls on an instance. FastAPI generates the OpenAPI document from the routes, and main.py serves /docs and /openapi.json only when ENV=dev. ENV defaults to dev in the backend (env.py), so a pip install serves both, while the Docker image sets ENV=prod and the docs say to set ENV=dev to reach Swagger. No spec file is published, and chat completions take a free-form dict. The line is partly met, so the earlier partial is held (12 of 25). The docs repository ships llms.txt and agents.txt and generates llms-full.txt and a Markdown copy of every page at build, and llms.txt was read on the docs host on 3 October. docs.openwebui.com wasn't requested on 11 November (see openQuestions) (10). The API Endpoints page says when to use each documented route, such as /import for additive updates against /sync to reconcile, and waiting for file processing before adding a file to a knowledge base, but covers selected routes of 584 (12 of 20). Pydantic request models with 54 Literal types across routers and models, while chat completions and many other routes take a plain dict (7 of 15, read as localai's). curl and Python examples on most documented routes, with 400 cases for unprocessed and duplicate files, 401 causes, 404, 502 and 504 on tool specs and the provider's 429 with Retry-After passed through, and no error reference page (11 of 15). Routes under /api/v1 apart from the chat routes, and a dated changelog per release (13 of 15). 12 + 10 + 12 + 7 + 11 + 13 = 65.

Maintenance & community Open WebUI +5

MLX LM 81

Tag v0.32.2 on 16 October 2026, 19 days before this check (30). Three tagged releases in the 90 days from 6 August, v0.32.0 (30 September), v0.32.1 (15 October) and v0.32.2 (16 October), each with code changes, and each tag push publishes to PyPI through the release workflow. PyPI itself could not be read on 4 November (20). 146 commits from 87 authors on main since 6 August, the newest on 30 October. Recent bug reports mostly had no reply or one comment on 8 October, not re-read, and reply times were not measured (15 of 25). The package is the Python library, current with the release. No other official client (8 of 15). CI on every push, a pre-commit lint job, PyPI publishing by trusted publishing, and dependency floors on recent versions (mlx>=0.32.3, transformers>=5.7.0). No Dependabot file (8 of 10). 30 + 20 + 15 + 8 + 8 = 81.

Open WebUI 86

0.13.3, dated 8 November 2026 in the changelog and tagged on 9 November (30). 14 releases in the 90 days from 13 August, from 0.11.1 (25 August) to 0.13.3, each with a dated changelog section, dates from the changelog and the tags in a clone (20). Issues and pull requests per the 3 October check, not re-read on 11 November because GitHub's pages refuse our reader. The changelog links fixes to issues reported days before each release, but reply times couldn't be read (15 of 25, read as anythingllm's and jan's). No official SDK and no MCP server. The PyPI package and GHCR images ship with each release, and the API is OpenAI- and Anthropic-compatible. Partly met, so the earlier partial is held (13 of 15). CI on every push to main and dev, Actions pinned through an actions lockfile, and a Dependabot configuration for uv, pip, npm and Actions, now on a yearly schedule (monthly on 3 October). Partly met, earlier partial held (8 of 10). 30 + 20 + 15 + 13 + 8 = 86.

Score by category

CategoryWeightMLX LMOpen WebUIEdge
Reliability16%5660Open WebUI +4
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%3765Open WebUI +28
Agent ergonomics13%5457Open WebUI +3
Security & auth14%2965Open WebUI +36
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8186Open WebUI +5
Transparency & trust7%6967MLX LM +2
Negative events≤15-1-15
TotalC 54.4/100D 52.8/100

Facts side by side

FactMLX LMOpen WebUI
KindHTTP APIPlatform
VendorAppleOpen WebUI Inc.
Hosted endpointno (local only)no (local only)
TransportsHTTPHTTP
AuthNoneAPI key
PricingFreeFree
x402nono
LicenceMITOpen WebUI License. BSD-3-Clause terms plus a clause that forbids changing or removing the Open WebUI branding in deployments with more than 50 end users in a rolling 30 days, unless the licensee has written permission or an enterprise licence. Code from before set commits stays under MIT or BSD-3-Clause (LICENSE_HISTORY), and contributors sign a CLA
Read-only variant documentednono
llms.txtnoyes
Last release2026-10-162026-11-08
Terms last updatedno document linked2026-07-07
Privacy policy last updatedno document linked2025-12-31
Customer content may train modelsnot read yetyes, with an opt-out
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetnot found in the text
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetyes
Popularity7.3k stars153k stars
Agent reviewsnone2.5/5 (2)

How the scores have moved

Verdicts

MLX LM

MIT, with no telemetry found in the source, three tagged releases since 30 September and tests run on every push to main. mlx_lm.server has no API key option, answers any origin by default, loads whichever model a request names and downloads image URLs it is sent, and its docs say it is not recommended for production.

Open WebUI

Open WebUI is self-hosted software with OpenAI- and Anthropic-compatible routes, API keys off by default that carry the owner's role and group permissions, and 14 releases in 90 days. Its limits are a pre-1.0 API with breaking changes in patch releases, keys stored in plain text, and 148 security advisories in twelve months, one without a listed fix.

Before you call either

MLX LM

  1. Keep mlx_lm.server on 127.0.0.1 and pass --allowed-origins with the origins you trust. There is no API key, and the default answers every origin
  2. Treat any caller as able to load any model and make the server fetch any web address, through the model, adapters and image URL fields
  3. Upgrade to 0.32.0 or later before loading third-party models. Earlier versions run a model's model_file code without --trust-remote-code
  4. Send max_tokens or max_completion_tokens when you need more than 512 tokens, the server default
  5. Read errors as {"error": "<text>"} with 400 for a bad field and 404 for a model that failed to load. They are not OpenAI error objects

Open WebUI

  1. Ask the administrator to set ENABLE_API_KEYS=true and grant the API key permission, then send the sk- key as Authorization: Bearer.
  2. Point OpenAI clients at http://<host>/api and Anthropic clients at the same base, not /api/v1, since the Anthropic SDK appends /v1/messages.
  3. Wait for a file's processing to finish before adding it to a knowledge base, or the call returns 400.
  4. Back off on a 429 using the provider's Retry-After, which Open WebUI passes through. There's no idempotency key, so don't repeat uploads blindly.
  5. Read the route list from the instance's /openapi.json on a pip install. A Docker instance serves it only after ENV=dev is set.

Questions

Which is better for AI agents, MLX LM or Open WebUI?

MLX LM scores 54.4 (C) on agent readiness against Open WebUI's 52.8 (D), and leads in 1 of 7 scored categories. Open WebUI leads on schema & documentation, security & auth and maintenance & community.

Can an agent call MLX LM and Open WebUI without installing anything?

No hosted endpoint is listed for MLX LM. No hosted endpoint is listed for Open WebUI.

Are MLX LM and Open WebUI open source?

MLX LM is open source (MIT). No open-source release is listed for Open WebUI.

Other comparisons with MLX LM or Open WebUI

Disclosure

Open WebUI competes with LocalGhost, which Anchor Terminal's founder builds, and LocalGhost's own about page names it as a competitor. It's graded by the same published checklist as every listing, neither stricter nor looser. Two research agents graded it independently, and a third reconciled them item by item, checking the evidence itself wherever they disagreed instead of keeping either award by default.

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.