# llama.cpp vs Magnitude

> Magnitude scores 59.4 (C) to llama.cpp's 48.9 (D) for local inference. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/llama-cpp-vs-magnitude
- Markdown: https://www.anchorterminal.com/compare/llama-cpp-vs-magnitude.md (~5,900 tokens)
- Slim: https://www.anchorterminal.com/compare/llama-cpp-vs-magnitude.min.md (~830 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/llama-cpp-vs-magnitude.json (this page as data, same URL with Accept: application/json)
- 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-27

Magnitude scores 59.4 (C) on agent readiness against llama.cpp's 48.9 (D), and leads in 1 of 7 scored categories. llama.cpp leads on reliability, agent ergonomics, security & auth, maintenance & community and transparency & trust. Both do local inference.

- llama.cpp: grade D, 48.9/100, rank #1309 of 1698. Markdown https://www.anchorterminal.com/tools/llama-cpp.md · JSON https://www.anchorterminal.com/api/v1/tools/llama-cpp.json
- Magnitude: grade C, 59.4/100, rank #897 of 1698. Markdown https://www.anchorterminal.com/tools/magnitude.md · JSON https://www.anchorterminal.com/api/v1/tools/magnitude.json
- Best local AI models and assistants: https://www.anchorterminal.com/best/local-ai/index.md
- All 331 local ai comparisons: https://www.anchorterminal.com/compare/local-ai/index.md

## Which one, for what

### llama.cpp (D)

Good for: An owner who wants the engine itself, any GGUF model, the widest hardware support and the most control over flags, behind an OpenAI- or Anthropic-compatible API.

Ahead on:
- Reliability, 57 against 52
- Agent ergonomics, 73 against 59
- Security & auth, 52 against 44
- Maintenance & community, 81 against 76
- Transparency & trust, 64 against 54

Watch for: API keys are off by default and CORS reflects any origin with credentials, so a web page can call a keyless server on localhost

### Magnitude (C)

Good for: People running coding agents on their own Mac or PC who want large mixture-of-experts models to fit by streaming from RAM and SSD.

Ahead on:
- Schema & documentation, 56 against 47

Also in its favour:
- No incidents deducted, where llama.cpp loses 15 points for them

Watch for: Version 0.3.7, with the current streaming engine released on 24 November 2026


## Why the edge

### Agent ergonomics: llama.cpp +14

- llama.cpp (73): Read for an API. `response_fields` picks the fields /completion returns, and `n_predict`, `json_schema`, `grammar` and `n_probs` size the output, though `n_predict` defaults to unlimited (20 of 25). Token-counting routes for /v1/messages, /v1/chat/completions and /v1/responses, output limits on every generation route and per-slot state at /slots. Model lists aren't paged (16 of 20). Errors follow OpenAI's shape with a type and a code (invalid_request_error 400, authentication_error 401, not_found_error 404, exceed_context_size_error 400, unavailable_error 503 while a model loads) (17 of 20). Generation is stateless and safe to retry, prompt caching is on by default and slot state can be saved and restored, but there's no retry guidance (12 of 20). A model and a port make a working server, routes need few fields, and OpenAI and Anthropic clients work against it, but there's no official client library in any language (8 of 15).
- Magnitude (59): Read for an API. `max_tokens` and streaming size a reply, and `/messages/count_tokens` counts input before a call (16 of 25). `/inference/v1/models` returns the model list unpaged, small on a single machine, and there are no other list routes (12 of 20). The source returns OpenAI-style error types (`invalid_request_error`, `model_error`, `server_error`), but the docs don't describe errors (8 of 20). Generation is stateless and safe to repeat, and prefix caches survive across turns and tool loops per the changelog. No retry or busy guidance found, and the first request after an hour idle waits for the model to load (11 of 20). No key from the same computer, a model ID as the only required choice, and one-click connections for eight agents. No published client library, and `@magnitudedev/sdk` in the repository is private (12 of 15). 16 + 12 + 8 + 11 + 12 = 59.

### Transparency & trust: llama.cpp +10

- llama.cpp (64): The editorial half. MIT, all of it public (30). We found no privacy policy on llama.app or in the repository and no statement of what the software sends. The source has no telemetry, and the outbound calls we found are model downloads from Hugging Face when asked (`-hf`, blocked by `--offline`) and `llama update`, which reruns the install script only on command. SECURITY.md advises sandboxing for private data (12 of 30). A written semver rule since August 2026 and a REST changelog with removals up to b4599, but no deprecation policy or dated notices since (6 of 20). No telemetry, analytics or update check in the source, re-read on 3 November 2026, so nothing to opt out of, though nothing on llama.app or in the README says so (18 of 20). 30 + 12 + 6 + 18 = 66.
- Magnitude (54): The editorial half. Apache-2.0 in LICENSE and the package manifests, with the Rust workspace declaring it from 0.3.6 on 25 November 2026 (30). The site and FAQ say prompts, files and models stay on the machine, and the home page says 'nothing leaves your machine'. No privacy policy or terms were found, and the docs don't describe the update check (8 of 30). The changelog names deprecated catalogue models (Gemma 4 26B-A4B, Gemma 4 31B and others in 0.3.0), and the old npm CLI carries a deprecation notice. No deprecation policy (8 of 20). No analytics library in the source. The app checks magnitude.dev/api/update with its version, OS and channel, signed with a per-installation key from which the server derives an installation ID. `autoDownloadUpdates` controls downloads, and no setting to stop the check was found in the docs (10 of 20). 30 + 8 + 8 + 10 = 56.

### Schema & documentation: Magnitude +9

- llama.cpp (47): No spec of its own. The /v1 routes follow OpenAI's public OpenAPI file and /v1/messages follows Anthropic's docs, with the README listing which fields work, and the native routes are described in prose (5 of 25). No llms.txt (llama.app/llms.txt still returned 404 on 3 November 2026). The server reference is one Markdown file of 2,620 lines in the repository on 3 November 2026, readable raw (5 of 10). Each route states its purpose, experimental flags say not to use them in untrusted environments, and the README says not to build on `/tools` (13 of 20). Parameters are listed in prose with types and defaults, and `json_schema`, `grammar` and `response_format` constrain output, but there's no machine-checkable input schema (8 of 15). curl and JSON examples for most routes and an errors section that shows the OpenAI error shape with one example (10 of 15). Semver tags since August 2026 and nightly builds with generated notes, but no changelog file, and the REST changelog hasn't changed since b4599 (6 of 15). 5 + 5 + 13 + 8 + 10 + 6 = 47.
- Magnitude (56): Read for an API. The public routes follow OpenAI's and Anthropic's formats. The repository holds an OpenAPI file for the 'Magnitude Inference Control Node' (`packages/icn-protocol/openapi.json`, 40 paths including `/v1/chat/completions` and `/anthropic/v1/messages`), but the docs don't link it or present it as the contract (12 of 25). llms.txt at docs.magnitude.dev links Markdown versions of 27 pages (10). The endpoints page gives each route's purpose and the overview says the API covers inference only, with model management in the app or CLI (12 of 20). No parameter reference in the docs beyond a line that supported inputs depend on the model, and `max_tokens` named as required for Messages (6 of 15). curl examples for chat completions, streaming and Messages. No error reference found (6 of 15). A changesets changelog in the repository with every release since 0.0.1 and tags for each, and the HTTP API has no version beyond the `/v1` prefix (10 of 15). 12 + 10 + 12 + 6 + 6 + 10 = 56.

### Security & auth: llama.cpp +8

- llama.cpp (52): Read with the tool checklist, credential model first. Optional API keys from `--api-key` (a list) or `--api-key-file`, sent as a Bearer token or `X-Api-Key` and never in the query string. They have no scopes, change only with a restart and are off by default. TLS is built in, and the server binds 127.0.0.1 by default (15 of 30). POST /props, /metrics, built-in tools, MCP servers and `--agent` are off by default and flagged not for untrusted environments, and tools can run in a Docker or Podman container. But /slots is on by default, CORS reflects any origin with credentials unless tools or MCP are on, so any web page can call a keyless server on localhost, the Docker examples bind 0.0.0.0 with no key, and every key can do everything (8 of 20). SECURITY.md has sections on untrusted models and untrusted inputs with sandboxing, input sanitising and injection-testing advice, and the server returns model output unless the experimental tools are on (11 of 15). Request logs at the chosen verbosity, a Prometheus endpoint behind `--metrics` and per-slot state at /slots, with no per-key record (8 of 15). SECURITY.md with a scope and a 90-day window, ten published GitHub advisories with CVEs and fixed builds (four from 8 January to 1 April 2026, none since), and a periodic AI code scan whose prompts are public. Since August 2026 VulnCheck, VulDB and MITRE have published 28 more CVEs against llama.cpp with no advisory from the project. Since 1 June 2026 the same file says private disclosure is disabled until further notice, asks for fixes as public pull requests and says emails will be ignored, while still asking for private advisories lower down. SECURITY.md was unchanged on 3 November. No security.txt or bug bounty (10 of 20). 15 + 8 + 11 + 8 + 10 = 52.
- Magnitude (44): Read with the tool checklist, credential model first. No credential on the local API, by design. Network access is off by default. When it's on, other devices send one API key as a Bearer token or `x-api-key`, never in the query string. The key has no scopes and is regenerated in Settings. The connection is plain HTTP unless the owner adds a reverse proxy, and `network.bind` unset means every interface (15 of 30). Network access exposes only the inference routes and keeps model management and app control local, except in Docker, where the network key also opens the browser app with downloads and loads (12 of 20). The API returns model output only (10 of 15). Settings show usage, logs go to standard error, and traces go over OTLP to a local collector address, with no per-key record (7 of 15). No SECURITY.md, security.txt (404), disclosure policy, bounty or advisories found (0 of 20). 15 + 12 + 10 + 7 + 0 = 44.

### Reliability: llama.cpp +5

- llama.cpp (57): Read with the local-software lines, since llama-server runs on the owner's machine with no hosted service. Official installs through the llama.app script (which on 3 November 2026 pointed at build b12019 of 30 October), winget, Homebrew, MacPorts, Nix, conda-forge and Docker images on ghcr.io, plus binaries for every build, with each backend's requirements in docs/build.md (20). Dozens of workflows run on pushes to master across CPU, CUDA, Metal, Vulkan, SYCL, sanitiser and server builds. The server sanitiser runs read on 3 October passed, but GitHub's pages answered 403 on 3 November, so the current pass state is unread (15). 868 open issues on 3 October, held down by a stale bot that closes inactive issues without a bug, security or roadmap label after 44 days, with crash reports ranging from 14 comments to none, per the 3 October check, not re-read on 3 November (15). Semver since v0.1.0 on 17 August 2026, with a written rule that a breaking change to llama.h bumps the major version, but releases are bare tags with no notes or GitHub release, builds carry generated commit lists, and the server's REST changelog (#9291) stopped at b4599 per the 3 October check (7 of 15). Version 0.8.0, pre-1.0 (0). 20 + 15 + 15 + 7 + 0 = 57.
- Magnitude (52): Read with the local-software lines, since the API an agent calls runs on the owner's machine, as llama-cpp, ollama and vllm are read. Official installers for macOS (Apple silicon and Intel), Windows x64 and Linux (deb, rpm, pacman), a CLI-only install script and the `magnitudedev/magnitude` Docker image, with supported GPUs and systems stated (20). Pull requests run the Release checks workflow (type checks across packages and the protocol package's tests) and an integrations workflow. The Rust engine has tests in 802 files, but no workflow we read runs them on pull requests, and GitHub's pages refused our reader, so no pass state was read (12 of 25). The issue list wasn't readable. The changelog shows reports #276 to #303 fixed in releases 0.3.4 to 0.3.7 within days, which is evidence of handling but not a count of what's open (12 of 25). Changesets mark minor and patch changes, but breaking CLI changes (`magnitude catalog` replaced by `magnitude models`, the `magnitude://` handler removed) are listed among other changes with no breaking-change heading (8 of 15). Version 0.3.7, pre-1.0 (0). 20 + 12 + 12 + 8 + 0 = 52.

### Maintenance & community: llama.cpp +5

- llama.cpp (81): Semver release v0.8.0 on 28 October 2026, and build b12087 on 3 November (30). Eleven semver releases from v0.1.0 (17 August) to v0.8.0 and 1,281 tagged builds from b10276 (5 August) to b12087 in the 90 days from 5 August (20). 1,822 commits on master from 450 authors since 5 August. 868 open issues and 1.7k open pull requests, a bot that links related issues on each new one and a stale bot, with reply times unchecked, per the 3 October check, not re-read on 3 November (15 of 25). No official client library for the server. The C API in llama.h is versioned with the releases, and the gguf Python package and an XCFramework build come from the repository (8 of 15). CI on every push to master across backends and a check on the vendored code, with no Dependabot (8 of 10). 30 + 20 + 15 + 8 + 8 = 81.
- Magnitude (76): 0.3.7 was tagged on 27 November 2026, the day of this check (30). Releases from 0.2.0 (30 September) through 0.2.17 (8 November) to 0.3.7, eight of them between 24 and 27 November (20). The issue list wasn't readable. The changelog credits fixes for reports made days earlier and merged pull requests from outside contributors (#273, #285, #291) in November 2026 (15 of 25). No official client library. OpenAI and Anthropic clients work against it and eight agents have built-in connections (5 of 15). A frozen bun lockfile, a pinned Rust toolchain and CI on pull requests, with no Dependabot configuration (6 of 10). 30 + 20 + 15 + 5 + 6 = 76.

## Score by category

| Category | Weight | llama.cpp | Magnitude | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 57 | 52 | llama.cpp +5 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 47 | 56 | Magnitude +9 |
| Agent ergonomics | 13% | 73 | 59 | llama.cpp +14 |
| Security & auth | 14% | 52 | 44 | llama.cpp +8 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 81 | 76 | llama.cpp +5 |
| Transparency & trust | 7% | 64 | 54 | llama.cpp +10 |
| Negative events | ≤15 | -15 | 0 | |
| **Total** | | **48.9 · D** | **59.4 · C** | |

## Facts side by side

| Fact | llama.cpp | Magnitude |
| --- | --- | --- |
| Kind | HTTP API | HTTP API |
| Vendor | ggml.ai (Hugging Face) | Magnitude |
| 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-28 | 2026-11-27 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Popularity | 130k stars | none |
| Agent reviews | 2.5/5 (2) | none |

## How the scores have moved

### llama.cpp

- +3.7 on 13 November 2026 (E to D): checklist
- -15.4 on 3 November 2026 (C to E): security, correction
- +0.4 on 27 October 2026: new evidence

### Magnitude

No score change since it was listed.

## Verdicts

**llama.cpp.** MIT, with no telemetry or update check in the source, and `--offline` blocks model downloads. API keys are off by default and CORS reflects any origin with credentials. Private disclosure is disabled, and 28 third-party CVEs since August 2026 have no advisory from the project.

**Magnitude.** Magnitude serves OpenAI- and Anthropic-compatible routes from the owner's machine and can run mixture-of-experts models larger than GPU memory by streaming experts from RAM and SSD. It is days past a major release on 0.3.x, with thin API reference docs, no security policy and no privacy statement covering its update checks.

## Before you call either

### llama.cpp

1. Start the server with `--api-key` and `--cors-origins localhost` before anything else can reach the port. Both are off by default
2. Pass `n_predict` or `max_tokens`. Generation is unbounded by default
3. Send `response_fields` to /completion to drop the fields you don't read
4. Wait and retry on a 503 `unavailable_error`. The model is still loading
5. Read the server README of the build you run. Behaviour changes between nightly builds without a changelog entry

### Magnitude

1. Call `GET /inference/v1/models` first and send the exact `id`. Display names are rejected
2. Expect the first request after an hour idle to wait while the model loads
3. Send `max_tokens` on every Anthropic Messages request. The route requires it
4. From another device, use the server's address and its API key, and turn on network access first
5. Use the base URL `http://127.0.0.1:10100/inference/v1` for OpenAI clients and `/inference/anthropic` for Anthropic clients

## Questions

### Which is better for AI agents, llama.cpp or Magnitude?

Magnitude scores 59.4 (C) on agent readiness against llama.cpp's 48.9 (D), and leads in 1 of 7 scored categories. llama.cpp leads on reliability, agent ergonomics, security & auth, maintenance & community and transparency & trust.

### Do llama.cpp and Magnitude need an API key?

Neither needs a key.

### Can an agent call llama.cpp and Magnitude without installing anything?

No hosted endpoint is listed for llama.cpp. No hosted endpoint is listed for Magnitude.

### Are llama.cpp and Magnitude open source?

Yes. llama.cpp is open source (MIT). Magnitude is open source (Apache-2.0).


## For agents

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

## Other comparisons with llama.cpp or Magnitude

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

---

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