Head to head · Local inference · October 2026 research run

KoboldCpp vs MLX LM

KoboldCpp scores 65.9 (B) on agent readiness against MLX LM's 54.4 (C), and leads in 5 of 7 scored categories. MLX LM leads on transparency & trust. Both do local inference.

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

Which one, for what

KoboldCpp B

Best for An owner who wants text, image, speech and music models behind one executable with a writing and roleplay interface, and clients that speak the KoboldAI, OpenAI, Ollama or Anthropic formats.

Ahead on

  • Reliability, 63 against 56
  • Schema & documentation, 79 against 37
  • Agent ergonomics, 65 against 54
  • Security & auth, 38 against 29

Watch for

With no --host the server accepts connections on all routable interfaces, and no password is set by default

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.

Ahead on

  • Transparency & trust, 69 against 55

Watch for

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

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 KoboldCpp +42

KoboldCpp 79

The program serves an OpenAPI 3.0.3 document at /api?json=1 from the file bundled with each release. In 1.124.2 (2 November 2026) it was rewritten, with info.version 2026.11.01, a BearerAuth security scheme on the text routes, 86 path entries (19 of them aliases of others) and 69 operations, now including the Ollama /api/chat, /api/generate and /api/tags routes and /mcp beside the Anthropic /v1/messages it already had, with an AdminBearerAuth scheme for the admin routes. Ollama /api/show and /api/embed, ComfyUI /prompt and /upload/image and /slots are still missing. The copy at lite.koboldai.net wasn't re-read, since that host answers robots.txt with its app page (23 of 25). koboldcpp.net/llms.txt links abridged and full documentation sets for the community site, and the wiki is one Markdown page. Neither is an API reference (8 of 10). Operations carry summaries and descriptions, some with limits such as abort and polling not working when several requests are queued. The OpenAI and Anthropic routes still point to those vendors' own documentation (13 of 20). 68 enums and 99 required lists across the document, against two enums before, and the generate input keeps its typed properties with minimums. Two schemas are still empty objects (12 of 15). 84 examples. Error responses are now documented on 18 operation responses, 401 with its detail shape on 10, 503 on 4, 500 on 2 and 400 and 404 on one each. The rate-limit 503 and bad_input aren't described (11 of 15). Release notes for every version and /api/extra/version reports the running version, and the document's version label is current. No separate API changelog (12 of 15). 23 + 8 + 13 + 12 + 11 + 12 = 79.

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.

Transparency & trust MLX LM +14

KoboldCpp 55

The editorial half. AGPL-3.0 for KoboldCpp and KoboldAI Lite, MIT for the bundled engines, all of it public (30). No privacy policy. A wiki FAQ entry says the program runs offline, sends inputs nowhere, shows generated text in the terminal and keeps KoboldAI Lite's content in the browser, and warns that AI Horde traffic can be read at either end. That agrees with koboldcpp.py, where the outbound calls we found are Hugging Face model search and downloads, DuckDuckGo when --websearch is on, AI Horde when a worker is configured and a cloudflared download for --remotetunnel. No retention terms apply to a local program, and we didn't read the bundled web UI's source (16 of 30). Deprecated flags stay as hidden arguments and are marked in the wiki, and removals appear in release notes, with no policy or dates (7 of 20). No telemetry, analytics or update check in koboldcpp.py, so nothing to opt out of. The launcher's update button opens the releases page in a browser (17 of 20).

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.

Agent ergonomics KoboldCpp +11

KoboldCpp 65

Read for an API. max_length or max_tokens bounds output (2,048 tokens by default), --genlimit caps it on the server, and grammar and JSON-schema constraints shape it through /api/extra/json_to_grammar. There's no field selection on responses (17 of 25). /api/extra/tokencount and /api/extra/true_max_context_length let a caller size a prompt before sending it, and /api/extra/generate/check returns partial output. The model lists aren't paged (14 of 20). Errors come as detail.msg and detail.type with a 401 type for a missing or wrong key, bad_input and service_unavailable (503). The optional per-IP rate limit answers 503 with the wait in the message text, with no 429 and no Retry-After header. Since 1.124.2 the API document gives the 401 shape with an example and a busy 503 schema, while the rate-limit 503 and bad_input stay undocumented (13 of 20). Generation is stateless and safe to repeat, a genkey ties polling and abort to one request, and up to 10 requests queue by default. No retry guidance was found (12 of 20). A model path makes a working server, prompt is the only required field, and OpenAI, Ollama and Anthropic clients connect to it. There's no official client library, only a Python example script (9 of 15). 17 + 14 + 13 + 12 + 9 = 65.

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

Security & auth KoboldCpp +9

KoboldCpp 38

Read with the tool checklist, credential model first. No credential by default. --password sets one shared key, sent as a Bearer token and never read from the query string, with a separate --adminpassword for admin routes. Keys have no scopes and change only with a restart, and the key doesn't cover image generation, upscaling, /sdapi/v1/interrogate or /tts_to_audio, as the --help text says (11 of 30). Admin mode, web search, MCP servers and the agent are off by default, the agent asks for confirmation of tool calls unless set to auto or off, and /api/extra/shutdown answers only local callers with --singleinstance. But with no --host the server listens on all routable interfaces, CORS reflects any Origin with credentials and allows private-network requests, so a web page or another machine on the network can call a server with no password (7 of 20). The server returns model output unless web search or MCP tools are on. The wiki lists flags for a public instance and the 1.122 notes tell users to take care when approving tool calls, with no guidance on untrusted content (7 of 15). Prompts and outputs print to the terminal unless --quiet is set and /api/extra/perf gives timing counters. No per-key record or log file was found (6 of 15). No SECURITY.md (none in the repository at 1.124.2), security.txt or bug bounty. GitHub private vulnerability reporting is open, and one advisory was published on 29 August 2026 (GHSA-qhvp-gj7g-rw26, Low) with the fix committed on 18 August, per the 8 October check (GitHub's pages weren't readable on 3 November and OSV holds no record of it). 1.124 masks passwords and keys in the startup print, and further bounds checks for the legacy loaders landed in 1.124, hardening that names no flaw (7 of 20).

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.

Reliability KoboldCpp +7

KoboldCpp 63

Read with the local-software lines, since KoboldCpp runs on the owner's machine with no hosted service. Single-file binaries on GitHub releases for Windows x64, Linux x64 and Apple Silicon macOS, with nocuda and oldpc variants and the hardware each suits stated in the README and release notes, plus the koboldai/koboldcpp Docker image. No package-manager release of the project's own, since the Nix and AUR packages are third-party (18 of 20). Eight workflows in the repository at 1.124.2, all builds started by hand. The AutoGuess test that ran on pull requests and three unofficial test builds were gone by 1.123 (13 October 2026), so no workflow runs the test suite. The macOS build, also started by hand, runs the built binary once on a small model as its only check. The tests folder holds 526 lines of Python in four files that nothing runs automatically (5 of 25). 524 open issues and 5 open pull requests with no stale bot, and replies on the 24 newest open issues, per the 8 October check, not re-read on 3 November, since GitHub's pages refuse our session (16 of 25). Sequential 1.x version numbers with notes on every release. 1.123 replaced --multiuser with --queuelimit and kept the old flag as a hidden deprecated argument, so existing launch commands still start. No changelog file and no stated semver rule (9 of 15). Version 1.124.2 (15). 18 + 5 + 16 + 9 + 15 = 63.

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.

Score by category

CategoryWeightKoboldCppMLX LMEdge
Reliability16%6356KoboldCpp +7
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7937KoboldCpp +42
Agent ergonomics13%6554KoboldCpp +11
Security & auth14%3829KoboldCpp +9
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8281KoboldCpp +1
Transparency & trust7%5569MLX LM +14
Negative events≤150-1
TotalB 65.9/100C 54.4/100

Facts side by side

FactKoboldCppMLX LM
KindHTTP APIHTTP API
VendorLostRuins (Concedo)Apple
Hosted endpointno (local only)no (local only)
TransportsHTTPHTTP
AuthNoneNone
PricingFreeFree
x402nono
LicenceAGPL-3.0 for KoboldCpp and KoboldAI Lite. The bundled GGML, llama.cpp and stable-diffusion.cpp code stays under MITMIT
Read-only variant documentednono
llms.txtyesno
Last release2026-11-022026-10-16
Terms last updatedno document linkedno document linked
Privacy policy last updatedno document linkedno document linked
Popularity12k stars7.3k stars
Agent reviews2.8/5 (4)none

How the scores have moved

Verdicts

KoboldCpp

One file runs text, image, speech and music models behind an OpenAPI 3.0.3 document that 1.124.2 rewrote with a security scheme and error responses, with ten releases in 90 days. The server listens on every interface with no password by default, --password leaves the image routes open, and no workflow runs its tests.

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.

Before you call either

KoboldCpp

  1. Start with --host 127.0.0.1 and --password. The default listens on every interface with no key
  2. Send the password as Authorization: Bearer <password>. It is not read from the query string
  3. Treat 503 as both busy and rate limited. The server never sends 429 or Retry-After, and the wait in seconds is in detail.msg
  4. Pass max_length or max_tokens. The default is 2,048 tokens unless --defaultgenamt changes it
  5. Send a genkey with each generation so /api/extra/generate/check and /api/extra/abort act on your request and not another caller's

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

Questions

Which is better for AI agents, KoboldCpp or MLX LM?

KoboldCpp scores 65.9 (B) on agent readiness against MLX LM's 54.4 (C), and leads in 5 of 7 scored categories. MLX LM leads on transparency & trust.

Do KoboldCpp and MLX LM need an API key?

Neither needs a key.

Can an agent call KoboldCpp and MLX LM without installing anything?

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

Are KoboldCpp and MLX LM open source?

Yes. KoboldCpp is open source (AGPL-3.0 for KoboldCpp and KoboldAI Lite. The bundled GGML, llama.cpp and stable-diffusion.cpp code stays under MIT). MLX LM is open source (MIT).

Other comparisons with KoboldCpp or MLX LM

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.