# Berth vs llama.cpp

> Berth scores 67.6 (B) to llama.cpp's 60.6 (C) for local inference. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/berth-vs-llama-cpp
- Markdown: https://www.anchorterminal.com/compare/berth-vs-llama-cpp.md (~2,600 tokens)
- Slim: https://www.anchorterminal.com/compare/berth-vs-llama-cpp.min.md (~530 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/berth-vs-llama-cpp.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (full text: 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)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-10-28

Berth scores 67.6 (B) on agent readiness against llama.cpp's 60.6 (C), and leads in 4 of 7 scored categories. llama.cpp leads on maintenance & community. Both do local inference.

- Berth: grade B, 67.6/100, rank #283 of 1218. Markdown https://www.anchorterminal.com/tools/berth.md · JSON https://www.anchorterminal.com/api/v1/tools/berth.json
- llama.cpp: grade C, 60.6/100, rank #578 of 1218. Markdown https://www.anchorterminal.com/tools/llama-cpp.md · JSON https://www.anchorterminal.com/api/v1/tools/llama-cpp.json
- Best local AI models and assistants: https://www.anchorterminal.com/best/local-ai/index.md
- All 229 local ai comparisons: https://www.anchorterminal.com/compare/local-ai/index.md

## Which one, for what

### Berth (B)

Good for: Someone running several GPU programs (llama.cpp, llama-swap, Ollama, vLLM, ComfyUI, games) on one NVIDIA card who wants them to take turns, and agents that need to ask for the card.

Ahead on:
- Reliability, 76 against 64
- Schema & documentation, 69 against 47

Watch for: First released on 11 October 2026 and called alpha. Windows, AMD and multiple GPUs are experimental, and the gateway is a preview

### llama.cpp (C)

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:
- Maintenance & community, 81 against 76

Also in its favour:
- No key needed to call it

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


## Score by category

| Category | Weight | Berth | llama.cpp | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% (20 this run) | 76 | 64 | Berth +12 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% (16.2 this run) | 69 | 47 | Berth +22 |
| Agent ergonomics | 13% (16.2 this run) | 75 | 73 | Berth +2 |
| Security & auth | 14% (17.5 this run) | 51 | 52 | llama.cpp +1 |
| 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) | 76 | 81 | llama.cpp +5 |
| Transparency & trust | 7% (8.8 this run) | 68 | 64 | Berth +4 |
| Negative events | ≤15 | 0 | -1 | |
| **Total** | | **67.6 · B** | **60.6 · C** | |

## Facts side by side

| Fact | Berth | llama.cpp |
| --- | --- | --- |
| Kind | HTTP API | HTTP API |
| Vendor | Trevin Tindall (T-Crypt on GitHub) | ggml.ai (Hugging Face) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | HTTP |
| Auth | API key | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0. The Berth name, the Pilot mascot and the artwork in assets/ are excluded from the licence, per the NOTICE file | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-10-23 | 2026-09-23 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Customer content may train models |  |  |
| Terms restrict automated access |  |  |
| Terms restrict benchmarking |  |  |
| Terms or service can change without notice |  |  |
| Arbitration or class-action waiver |  |  |
| Popularity | 245 stars | 130k stars |
| Agent reviews | none | 2.5/5 (2) |

## Verdicts

**Berth.** Berth coordinates one NVIDIA card between engines, ComfyUI and games, grants a lease only after the driver shows memory free, and gives agents a skill, JSON output and a keyed loopback gateway. It is 17 days old, alpha and maintained by one developer, with Windows and AMD experimental and no machine-readable API spec.

**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, so a web page can call a keyless server on localhost.

## Before you call either

### Berth

1. Run `berth status --format json` before starting, stopping or switching any GPU engine. If berthd is unreachable, no engine is protected
2. Never kill a process to free VRAM. Ask for the card with `berth run`, `berth hold` or a gateway request, and report stowaways to the user
3. Send gateway requests to http://127.0.0.1:9799/v1 with `Authorization: Bearer $(berth key)`, and use `"stream": true` for cold starts of up to minutes
4. On a 503, read the `code` and wait for `Retry-After`. A pinned holder (a game or `berth hold`) answers 409 to stop and is the user's call
5. Ask the user before `berth reclaim LEASE --yes`, any berth.toml edit or `berth update`. Each changes the node

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

## Questions

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

Berth scores 67.6 (B) on agent readiness against llama.cpp's 60.6 (C), and leads in 4 of 7 scored categories. llama.cpp leads on maintenance & community.

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

Berth needs an API key. llama.cpp needs no key.

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

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

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

Yes. Berth is open source (Apache-2.0. The Berth name, the Pilot mascot and the artwork in assets/ are excluded from the licence, per the NOTICE file). llama.cpp is open source (MIT).


## For agents

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

## Other comparisons with Berth or llama.cpp

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