# MLX LM vs PrivateGPT

> PrivateGPT scores 53.2 (D) to MLX LM's 50.7 (D) for local inference. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/mlx-lm-vs-privategpt
- Markdown: https://www.anchorterminal.com/compare/mlx-lm-vs-privategpt.md (~5,150 tokens)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-07

PrivateGPT scores 53.2 (D) on agent readiness against MLX LM's 50.7 (D), and leads in 4 of 7 scored categories. MLX LM leads on maintenance & community and transparency & trust. Both do local inference.

- MLX LM: grade D, 50.7/100, rank #1052 of 1510. Markdown https://www.anchorterminal.com/tools/mlx-lm.md · JSON https://www.anchorterminal.com/api/v1/tools/mlx-lm.json
- PrivateGPT: grade D, 53.2/100, rank #960 of 1510. Markdown https://www.anchorterminal.com/tools/privategpt.md · JSON https://www.anchorterminal.com/api/v1/tools/privategpt.json
- Best local AI models and assistants: https://www.anchorterminal.com/best/local-ai/index.md
- All 280 local ai comparisons: https://www.anchorterminal.com/compare/local-ai/index.md

## Which one, for what

### MLX LM (D)

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

Ahead on:
- Maintenance & community, 81 against 41
- Transparency & trust, 69 against 64

Also in its favour:
- Free to start without a card

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

### PrivateGPT (D)

Good for: A local backend for apps and agents that want an Anthropic-style API with document retrieval, citations and tools over local models.

Ahead on:
- Reliability, 70 against 56
- Schema & documentation, 83 against 37
- Agent ergonomics, 64 against 54

Watch for: Authentication is off by default, the server binds 0.0.0.0 and CORS allows every origin


## Why the edge

### Schema & documentation: PrivateGPT +46

- 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.
- PrivateGPT (83): An OpenAPI file of 38 paths in the repository (fern/openapi/openapi.json, version 1.0.1), also served by each instance at /openapi.json, with the messages API modelled on Anthropic's (25). docs.privategpt.dev serves llms.txt, a Markdown copy of every page and a docs MCP server (10). The docs explain each endpoint group, startup and model discovery, and a compatibility table says which parts of the Claude API are supported, partial or missing, such as prompt caching and OAuth (15 of 20). Pydantic models with literal type discriminators and required fields, while settings and tool context are wide objects (12 of 15). curl examples for each guide and a `/v1/messages/validate` route, with error shapes not documented as a list (9 of 15). `/v1` paths and a dated changelog, though releases trail main by more than four months (12 of 15). 25 + 10 + 15 + 12 + 9 + 12 = 83.

### Maintenance & community: MLX LM +40

- 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.
- PrivateGPT (41): The last release is 1.0.1, dated 16 June 2026 in the changelog and tagged 18 June, 141 days before the check (10 of 30). No release or dated changelog entry in the 90 days since 8 August (0 of 20). Maintainers commit most days and outside pull requests merged in October, but 23 pull requests are open and the stale bot closes issues, including two security reports, with no maintainer reply (13 of 25). Homebrew tap, wheel index and Docker images ship with releases, and Anthropic SDKs work against it. No product MCP server of its own, though it connects to remote MCP servers (10 of 15). Dependabot, uv.lock, actions pinned by commit since 19 October and dependency CVE upgrades in June, July and August (8 of 10). 10 + 0 + 13 + 10 + 8 = 41.

### Reliability: PrivateGPT +14

- MLX LM (56): Read with the local-software lines, since the package and its server run on the owner's machine. `pyproject.toml` states Python 3.11 or later with macOS and Linux classifiers, each version tag is published to PyPI by trusted publishing from `release.yml`, and conda-forge carries it per the 8 October check (20). The Build and Test workflow runs a lint check and the unit tests (21 test files) on every pull request and push to main, on self-hosted macOS runners since 30 October. Run results on GitHub could not be read on 4 November, so the line takes 15, the value for public CI that runs the tests with an unreadable result (15 of 25). 151 open issues and 74 open pull requests, with no reply or one comment on the newest bug reports, among them server bugs #1946 and #1909, per the 8 October check, not re-read (15 of 25). Version tags with GitHub release notes and no changelog file. The notes could not be read on 4 November, and none of the ten read on 8 October called out a breaking change (6 of 15). Version 0.32.2, pre-1.0, and the server docs still say it is not recommended for production (0). 20 + 15 + 15 + 6 + 0 = 56.
- PrivateGPT (70): Read with the local-software lines, since PrivateGPT runs on the owner's hardware with no hosted service behind it. Homebrew tap, `uv tool install` from Zylon's own wheel index (not PyPI) and Docker Hub images `zylonai/private-gpt` 1.0.1 of 18 June 2026. Python 3.11 only, stated in pyproject.toml, and it needs a separate OpenAI-compatible model server (17 of 20). tests.yml runs format, lint, typecheck and the tests affected by each push on main, with the full suite of 217 test files on release pull requests. We couldn't see run results because the GitHub API refused us, and issue #2441 of 1 November reports the Claude spec update workflow failing (15 of 25). GitHub shows 3 open issues of about 1,250, because a stale bot closes quiet issues, two security reports among them, with no maintainer reply (12 of 25). release-please keeps a changelog with breaking changes marked, but no release has been cut since 1.0.1 while main carries 51 commits since 8 August, among them a breaking observability change of 23 October (11 of 15). Version 1.0.1 (15). 17 + 15 + 12 + 11 + 15 = 70.

### Agent ergonomics: PrivateGPT +10

- MLX LM (54): Read for an API. `max_tokens` defaults to 512, `stop` and `logprobs` shape the output and `usage` reports token counts, but there is no field selection and no structured output mode (15 of 25). `GET /v1/models` lists the MLX models in the Hugging Face cache and can be narrowed to one repository by path. No paging and no token-counting route (10 of 20). Errors are `{"error": "<text>"}` with 400 and a specific message for a bad field, 411 for a missing Content-Length, and 404 for any failure while loading a model or building the prompt. There are no codes and none of it is documented (8 of 20). Generation is stateless and safe to retry, `seed` is accepted, a prompt cache holds ten entries by default and `/health` answers 503 when the generation thread has stopped. No retry guidance (12 of 20). Only `messages` is required and the defaults are conservative. OpenAI clients can call the chat route, and the Python API (`load`, `generate`, `stream_generate`) ships in the same package. No client library in a second language in this repository (9 of 15).
- PrivateGPT (64): Read for an HTTP API an agent calls on a local instance. Token counting, `top_k` style retrieval settings, citation output and response byte caps let a caller size context (18 of 25). Artifact listing by namespace and retrieval filters, with no documented cursor pagination (12 of 20). FastAPI validation errors name the field and the validate route checks a request before running it, but there is no error catalogue (12 of 20). Async messages and ingestion return task ids with status, cancel and delete routes. No idempotency keys were found (10 of 20). Anthropic SDKs and Claude Code work by pointing `ANTHROPIC_BASE_URL` at the server, but a model server and an embedding server have to be configured first (12 of 15). 18 + 12 + 12 + 10 + 12 = 64.

### Transparency & trust: MLX LM +5

- MLX LM (69): The editorial half. MIT, copyright Apple Inc., all of it public (30). No privacy statement covers the software and nothing states what it sends. In the source the outbound calls are model downloads from Hugging Face (or ModelScope when `MLXLM_USE_MODELSCOPE` is set), image URLs named in a chat request (since v0.32.1), uploads only on command, and a calibration text fetched from a GitHub gist by the quantisation tools (12 of 30). Runtime messages say `python -m mlx_lm.<command>` is deprecated, with no date and no written policy (5 of 20). No telemetry, analytics or update check found in the source at the 30 October head, so nothing to opt out of, though the README does not say so (18 of 20). 30 + 12 + 5 + 18 = 65.
- PrivateGPT (64): Apache-2.0 (30). The OpenAPI description says no data leaves the execution environment, but the docs list cloud gateways as model providers and web search goes to outside services when enabled, and no privacy statement covers the software. Zylon's privacy policy covers its website (15 of 30). The 1.0 rewrite was marked as a breaking change in the changelog, and there is no deprecation policy (6 of 20). No telemetry to Zylon found in the source. OpenTelemetry tracing is off by default and its exporters write local files or to the owner's collector, documented on the observability page (16 of 20). 30 + 15 + 6 + 16 = 67.

## Score by category

| Category | Weight | MLX LM | PrivateGPT | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% (20 this run) | 56 | 70 | PrivateGPT +14 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% (16.2 this run) | 37 | 83 | PrivateGPT +46 |
| Agent ergonomics | 13% (16.2 this run) | 54 | 64 | PrivateGPT +10 |
| Security & auth | 14% (17.5 this run) | 29 | 32 | PrivateGPT +3 |
| Payments & pricing | 10% (12.5 this run) | 60 | 60 | even |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% (8.8 this run) | 81 | 41 | MLX LM +40 |
| Transparency & trust | 7% (8.8 this run) | 69 | 64 | MLX LM +5 |
| Negative events | ≤15 | -1 | -7 | |
| **Total** | | **50.7 · D** | **53.2 · D** | |

## Facts side by side

| Fact | MLX LM | PrivateGPT |
| --- | --- | --- |
| Kind | HTTP API | HTTP API |
| Vendor | Apple Inc. | Zylon (PriBAI Technology Spain S.L.) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-10-16 | 2026-06-18 |
| Terms last updated | no document linked | no date given |
| Privacy policy last updated | no document linked | no document linked |
| Customer content may train models | not read yet | not found in the text |
| Terms restrict automated access | not read yet | not found in the text |
| Terms restrict benchmarking | not read yet | not found in the text |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | not found in the text |
| Popularity | 7.3k stars | 58k stars |

## How the scores have moved

### MLX LM

- -1.8 on 4 November 2026: security, product, correction
- +0.3 on 27 October 2026: checklist

### PrivateGPT

No score change since it was listed.

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

**PrivateGPT.** PrivateGPT 1.0 is an Apache-2.0 server that gives local models an Anthropic-style messages API with retrieval, citations, tools and MCP, documented by an OpenAPI file and llms.txt. A default start has authentication off, listens on every interface and reads local paths given as URIs, and a public report of that was closed without a reply.

## 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

### PrivateGPT

1. Turn on `server.auth` and bind to 127.0.0.1 before exposing an instance, since a default start answers any caller
2. Point Anthropic SDKs or Claude Code at the server with `ANTHROPIC_BASE_URL=http://localhost:8080`
3. Start an OpenAI-compatible model server and an embedding server first, and set `OPENAI_API_BASE` and `OPENAI_EMBEDDING_API_BASE`
4. Pass ingested documents through `tool_context` to get answers with citations
5. Treat web fetch, search and MCP results as untrusted, since PrivateGPT documents no prompt-injection handling

## Questions

### Which is better for AI agents, MLX LM or PrivateGPT?

PrivateGPT scores 53.2 (D) on agent readiness against MLX LM's 50.7 (D), and leads in 4 of 7 scored categories. MLX LM leads on maintenance & community and transparency & trust.

### Do MLX LM and PrivateGPT need an API key?

Neither needs a key.

### Can an agent call MLX LM and PrivateGPT without installing anything?

No hosted endpoint is listed for MLX LM. No hosted endpoint is listed for PrivateGPT.

### Are MLX LM and PrivateGPT open source?

Yes. MLX LM is open source (MIT). PrivateGPT is open source (Apache-2.0).


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/mlx-lm-vs-privategpt.json, and with the fewest tokens: https://www.anchorterminal.com/compare/mlx-lm-vs-privategpt.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "mlx-lm", "b": "privategpt"}`. From a terminal: `anchor compare mlx-lm privategpt`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/mlx-lm.json and https://www.anchorterminal.com/api/v1/tools/privategpt.json

## Other comparisons with MLX LM or PrivateGPT

- [AnythingLLM vs MLX LM](https://www.anchorterminal.com/compare/anythingllm-vs-mlx-lm.md)
- [AnythingLLM vs PrivateGPT](https://www.anchorterminal.com/compare/anythingllm-vs-privategpt.md)
- [Berth vs MLX LM](https://www.anchorterminal.com/compare/berth-vs-mlx-lm.md)
- [Berth vs PrivateGPT](https://www.anchorterminal.com/compare/berth-vs-privategpt.md)
- [BitRun vs MLX LM](https://www.anchorterminal.com/compare/bitrun-vs-mlx-lm.md)
- [BitRun vs PrivateGPT](https://www.anchorterminal.com/compare/bitrun-vs-privategpt.md)
- [Docker Model Runner vs MLX LM](https://www.anchorterminal.com/compare/docker-model-runner-vs-mlx-lm.md)
- [Docker Model Runner vs PrivateGPT](https://www.anchorterminal.com/compare/docker-model-runner-vs-privategpt.md)
- [Foundry Local vs MLX LM](https://www.anchorterminal.com/compare/foundry-local-vs-mlx-lm.md)
- [Foundry Local vs PrivateGPT](https://www.anchorterminal.com/compare/foundry-local-vs-privategpt.md)
- [Core vs MLX LM](https://www.anchorterminal.com/compare/ghost-core-vs-mlx-lm.md)
- [Core vs PrivateGPT](https://www.anchorterminal.com/compare/ghost-core-vs-privategpt.md)
- [GPT4All vs MLX LM](https://www.anchorterminal.com/compare/gpt4all-vs-mlx-lm.md)
- [GPT4All vs PrivateGPT](https://www.anchorterminal.com/compare/gpt4all-vs-privategpt.md)
- [HyperQwen vs MLX LM](https://www.anchorterminal.com/compare/hyperqwen-vs-mlx-lm.md)
- [HyperQwen vs PrivateGPT](https://www.anchorterminal.com/compare/hyperqwen-vs-privategpt.md)
- [Jan vs MLX LM](https://www.anchorterminal.com/compare/jan-vs-mlx-lm.md)
- [Jan vs PrivateGPT](https://www.anchorterminal.com/compare/jan-vs-privategpt.md)
- [Khoj vs MLX LM](https://www.anchorterminal.com/compare/khoj-vs-mlx-lm.md)
- [KoboldCpp vs MLX LM](https://www.anchorterminal.com/compare/koboldcpp-vs-mlx-lm.md)
- [KoboldCpp vs PrivateGPT](https://www.anchorterminal.com/compare/koboldcpp-vs-privategpt.md)
- [Lemonade vs MLX LM](https://www.anchorterminal.com/compare/lemonade-vs-mlx-lm.md)
- [Lemonade vs PrivateGPT](https://www.anchorterminal.com/compare/lemonade-vs-privategpt.md)
- [llama.cpp vs MLX LM](https://www.anchorterminal.com/compare/llama-cpp-vs-mlx-lm.md)
- [llama.cpp vs PrivateGPT](https://www.anchorterminal.com/compare/llama-cpp-vs-privategpt.md)
- [LM Studio vs MLX LM](https://www.anchorterminal.com/compare/lm-studio-vs-mlx-lm.md)
- [LM Studio vs PrivateGPT](https://www.anchorterminal.com/compare/lm-studio-vs-privategpt.md)
- [LocalAI vs MLX LM](https://www.anchorterminal.com/compare/localai-vs-mlx-lm.md)
- [LocalAI vs PrivateGPT](https://www.anchorterminal.com/compare/localai-vs-privategpt.md)
- [MLX LM vs Ollama](https://www.anchorterminal.com/compare/mlx-lm-vs-ollama.md)
- [MLX LM vs Open WebUI](https://www.anchorterminal.com/compare/mlx-lm-vs-open-webui.md)
- [MLX LM vs screenpipe](https://www.anchorterminal.com/compare/mlx-lm-vs-screenpipe.md)
- [MLX LM vs TextGen](https://www.anchorterminal.com/compare/mlx-lm-vs-text-generation-webui.md)
- [MLX LM vs vLLM](https://www.anchorterminal.com/compare/mlx-lm-vs-vllm.md)
- [Ollama vs PrivateGPT](https://www.anchorterminal.com/compare/ollama-vs-privategpt.md)
- [Open WebUI vs PrivateGPT](https://www.anchorterminal.com/compare/open-webui-vs-privategpt.md)
- [PrivateGPT vs screenpipe](https://www.anchorterminal.com/compare/privategpt-vs-screenpipe.md)
- [PrivateGPT vs TextGen](https://www.anchorterminal.com/compare/privategpt-vs-text-generation-webui.md)
- [PrivateGPT vs vLLM](https://www.anchorterminal.com/compare/privategpt-vs-vllm.md)
- [Khoj vs PrivateGPT](https://www.anchorterminal.com/compare/khoj-vs-privategpt.md)
- [LocalGhost vs PrivateGPT](https://www.anchorterminal.com/compare/localghost-vs-privategpt.md)
- [MLX LM vs Underdog](https://www.anchorterminal.com/compare/mlx-lm-vs-underdog.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
