Ask AI about this guideAsk AI:
Comparison

Ollama vs LM Studio vs llama.cpp vs vLLM vs SGLang vs Jan: Which Local LLM Runner for Agents in 2026

Twelve ways to serve a local model to your agents, compared on concurrency, context defaults, APIs, hardware support, licenses, pricing, pros and cons: Ollama, LM Studio, llama.cpp, vLLM, SGLang and Jan in depth, plus LocalAI, MLX-LM, Open WebUI, exo, TensorRT-LLM and Lemonade. Data fetched December 3, 2026.

Logos of Ollama, LM Studio, llama.cpp, vLLM, SGLang, Jan, LocalAI, MLX-LM, Open WebUI, exo, TensorRT-LLM and Lemonade, the tools compared in this guide
Pick by how many requests hit the model at once, then by hardware, then by how much tuning you want to do.

Get the latest on AI, LLMs & developer tools

New MCP servers, model updates, and guides like this one — delivered weekly.

The Short Answer

Start with Ollama or LM Studio, move to vLLM or SGLang when several agents share one GPU, and drop to llama.cpp when you need control. Ollama is the quickest route from nothing to a working endpoint and the one most agent tools document. LM Studio is the more comfortable desktop app and ships four parallel prediction slots by default. llama.cpp is the MIT-licensed engine under much of the field and reaches the most hardware. vLLM and SGLang are GPU servers built for batching and prefix reuse. Jan is the open-source desktop option with MCP. Our ordering is editorial judgment from vendor docs, GitHub and two third-party write-ups, not our own benchmarking.

The mistake that sinks most local agent setups is not the runner but its defaults. Ollama's own docs say it starts with a 4k context window on GPUs under 24 GiB of VRAM while telling agent and coding-tool users to set at least 64,000 tokens, and it handles one request per model at a time unless you change a setting. Read the section for your runner before you blame the model. If you are still choosing hardware, see our Mac vs DGX Spark vs Strix Halo guide, and for a worked setup of a coding agent on a local model, our Antigravity and Ollama setup guide.

Ollama vs LM Studio vs llama.cpp: Which Should You Use?

A third-party video from the Devsplainers channel comparing the three most common starting points. We did not produce it and did not verify its claims.

Quick Picks

CategoryPickWhy
Fastest path from zero to a working local agent backendOllama logo OllamaOne installer, one pull command, an API on port 11434. Raise its 4k default context to 64k or more before pointing an agent at it.
Best desktop app with a model browser and a built-in serverLM Studio logo LM StudioFree for personal and work use, closed source, llama.cpp and MLX engines, 4 parallel predictions by default, and a headless mode for servers.
Most control and widest hardware reachllama.cpp logo llama.cppMIT-licensed C/C++ engine behind much of the ecosystem. Runs on CPUs, Apple silicon, NVIDIA, AMD and more. You tune every flag yourself.
Best for many agents sharing one NVIDIA or AMD GPU servervLLM logo vLLMPagedAttention, continuous batching, prefix caching and an OpenAI plus Anthropic API. Heavier to set up, built for throughput.
Best for agent loops that reuse long prefixes at scaleSGLang logo SGLangRadixAttention and prefix caching, described by its own README as optimized for agentic workloads. Needs a GPU server.
Best open-source desktop chat app with MCPJan logo JanApache 2.0 desktop app, OpenAI-compatible server on port 1337, MCP support, cloud providers optional.
Best all-in-one local API for text, images and speechLocalAI logo LocalAIMIT-licensed server speaking OpenAI and Anthropic formats across many modalities, with agents and MCP built in.
Best on a Mac if you live in PythonMLX-LM logo MLX-LMApple's MLX stack for generation, quantization and LoRA fine-tuning on Apple silicon.
Best web front end for any of the aboveOpen WebUI logo Open WebUIA chat interface, not an inference engine. Pairs with an OpenAI-compatible runner.
Best way to pool several Macsexo logo exoApache 2.0 cluster runner with RDMA over Thunderbolt 5 and four API styles.
Best for squeezing an NVIDIA fleetTensorRT-LLM logo TensorRT-LLMNVIDIA's own Apache 2.0 engine with frequent agentic-serving research posts. NVIDIA hardware only.
Best for AMD Ryzen AI, Radeon and Strix Halo PCsLemonade logo LemonadeLocal server with AMD engineer optimizations, NPU and GPU support, and OpenAI, Anthropic and Ollama APIs.

What an Agent Needs From a Runner

A local agent is a loop: send the model a growing transcript, read a tool call, run the tool, send the result back. Compared with a chat window, that loop changes what you need from the runner in five ways.

Context that is large enough. Tool schemas, file contents and previous steps fill the window fast. Ollama's context page recommends at least 64,000 tokens for agents, and a bigger window means a bigger KV cache in memory. Many failures that look like a weak model are a truncated prompt.

Concurrency. One agent sends one request at a time, but a coding agent with sub-agents, or three agents on one box, will queue behind each other. Whether the runner batches requests, and what that does to memory, is the biggest difference between the desktop tools and the GPU servers. Ollama multiplies context memory by the number of parallel requests; LM Studio and llama.cpp use slots; vLLM and SGLang batch continuously.

Prompt reuse. Agents resend the same system prompt and tool list on every turn. Runners that cache and reuse the computed prefix skip repeating that work. SGLang's RadixAttention and vLLM's prefix caching target this directly. We have not measured how much it saves on your workload, and the figure depends on how stable your prompts are.

API shape. Most agent frameworks speak the OpenAI Chat Completions format, and a growing number speak Anthropic Messages or the OpenAI Responses format. Every runner in the six-way comparison offers an OpenAI-style endpoint. Ollama, LM Studio and vLLM also document an Anthropic-style one. Tool calling quality depends on the model and the chat template as much as the runner.

Operations. An agent that runs overnight needs the server to start on boot, keep the model loaded, and not expose itself to the network by accident. LM Studio has a headless mode and Ollama has keep-alive and queue settings. Ollama binds to 127.0.0.1 by default, and the docs explain how to widen that, which is a security decision; our OpenClaw and Hermes security hardening guide covers exposure risks for self-hosted agents. Model choice is a separate question; our Qwen, DeepSeek, Kimi, GLM and MiniMax comparison and the sibling guide to the best local coding models by VRAM help with that.

Master Comparison Table

RunnerFormEngineLicensePlatformsPortGitHub stars (Dec 3, 2026)Latest release
Ollama logo OllamaCLI, app and serverllama.cpp-based plus its own engines (MLX on Macs for some models)MITmacOS, Windows, Linux11434188,671v0.40.19
LM Studio logo LM StudioDesktop app, CLI (lms), headless llmsterllama.cpp and MLXClosed-source app; lms CLI is MITmacOS (Apple silicon), Windows, Linux1234n/a (app); lms CLI 5,454n/c
llama.cpp logo llama.cppLibrary, CLI and serverggml / llama.cppMITEverything incl. Android and iOS builds8080136,837v1.1.0
vLLM logo vLLMPython serving enginePagedAttention, CUDA/HIP graphsApache 2.0Linux GPU servers; CPUs and plugins800097,930v0.34.0
SGLang logo SGLangPython serving frameworkRadixAttention, prefix cachingApache 2.0NVIDIA, AMD, TPU, Intel, Apple silicon, Ascendn/c39,229v0.5.23
Jan logo JanDesktop appBundled llama.cpp variantsApache 2.0macOS 13.6+, Windows 10+, Linux133746,312v0.8.8
LocalAI logo LocalAIAPI server, web UI, desktop appMultiple backendsMITLinux, macOS, Docker808050,635v5.1.1
MLX-LM logo MLX-LMPython packageApple MLXMITApple siliconn/c7,805v0.32.2
Open WebUI logo Open WebUIWeb chat front endNone (connects to runners)Custom Open WebUI LicensePython (uvx or pip)n/c159,922v0.13.5
exo logo exoCluster runner and appMLX plus distributedApache 2.0macOS app, macOS and Linux from sourcen/c48,661v1.0.71
TensorRT-LLM logo TensorRT-LLMNVIDIA serving libraryTensorRT-LLMApache 2.0NVIDIA GPUsn/c15,163v1.3.0
Lemonade logo LemonadeLocal AI serverMultiple backends, NPU and GPUApache 2.0Windows 11, Linux distros, macOS, Dockern/c6,308v2026.48.3

Stars, licenses and release tags come from the GitHub API and release pages, fetched December 3, 2026. Ports are the defaults named in each project's docs or in systemdesign.academy's Oct 3, 2026 guide; n/c means we did not confirm one. LM Studio's app is not on GitHub, so its row uses the lms CLI repository (n/c for release). Jan and TensorRT-LLM show no SPDX license in the GitHub API, so we read their LICENSE files; Open WebUI uses a custom license. Stars are a popularity signal, not a quality signal.

Pricing Table

RunnerPrice as of December 3, 2026NotesSource
Ollama logo OllamaLocal use: $0, no subscription. Cloud: Pay as you go $0 base (3 concurrent requests), Pro $20/mo or $200/yr, Max $100/mo, Team $500/mo, Enterprise custom.Cloud models bill per token against included credits (Pro $60/mo, Max $300/mo, Team $1,000/mo shared).ollama.com/pricing
LM Studio logo LM StudioFree $0; Bionic+ $20/mo; Pro $100/mo; teams via organizations.Free covers local models (llama.cpp and MLX), Bionic Agent and LM Link for 5 devices. Paid tiers add US-hosted open models with zero data retention, more LM Link devices (20 or 100) and, on Pro, 5x usage limits.lmstudio.ai/pricing
llama.cpp logo llama.cpp$0, MIT licenseNo hosted service. Cost is your hardware and your time.github.com/ggml-org/llama.cpp
vLLM logo vLLM$0, Apache 2.0No hosted service from the project. Cost is the GPU server.github.com/vllm-project/vllm
SGLang logo SGLang$0, Apache 2.0Hosted by the non-profit LMSYS. Enterprise and consulting inquiries go to [email protected].github.com/sgl-project/sglang
Jan logo Jan$0, free and open sourceOptional cloud providers (OpenAI, Anthropic, Mistral, Groq, MiniMax and others) are billed by those providers.jan.ai, github.com/janhq/jan
LocalAI logo LocalAI$0, MITSelf-hosted. No price list on the README.github.com/mudler/LocalAI
MLX-LM logo MLX-LM$0, MITPython package.github.com/ml-explore/mlx-lm
Open WebUI logo Open WebUI$0 for the open projectCustom license; read it before white-labeling or redistributing. Any enterprise plan was not checked.github.com/open-webui/open-webui
exo logo exo$0, Apache 2.0macOS app and source builds are free.github.com/exo-explore/exo
TensorRT-LLM logo TensorRT-LLM$0, Apache 2.0Library only. You pay for NVIDIA hardware.github.com/NVIDIA/TensorRT-LLM
Lemonade logo Lemonade$0, Apache 2.0Local server and embeddable binary.github.com/lemonade-sdk/lemonade

The cost that matters for local inference is hardware, electricity and your time. The paid plans above are cloud add-ons from Ollama and LM Studio and are not needed to run models on your own machine. Ollama's and LM Studio's tiers differ in what they sell (per-token cloud credits versus hosted open models and device links), so compare them by feature and not by price.

Feature Matrix

RunnerDesktop GUIOne-command model downloadConcurrent requests (batching)OpenAI-style APIAnthropic Messages APIApple siliconNVIDIA CUDAAMD GPU
Ollama logo OllamaYes (app)YesPartial (1 slot per model by default)YesYesYesYesYes
LM Studio logo LM StudioYesYesYes (4 by default, llama.cpp engine)YesYesYesn/cn/c
llama.cpp logo llama.cppNoYes (-hf flag)Yes (slots)Yesn/cYesYesYes
vLLM logo vLLMNoPartial (pulls from Hugging Face on serve)YesYesYesPartial (plugin)YesYes
SGLang logo SGLangNoPartialYesYesn/cPartial (Metal/MLX)YesYes (Instinct)
Jan logo JanYesYesn/cYesn/cYesYesYes (HIP/ROCm build)
LocalAI logo LocalAIYes (web and desktop)Yesn/cYesYesYesYesYes
MLX-LM logo MLX-LMNoYes (Hugging Face)n/cn/cn/cYesNoNo
exo logo exoYes (dashboard)Partial (custom Hugging Face models)n/cYesYesYesn/cn/c
TensorRT-LLM logo TensorRT-LLMNoPartialn/cn/cn/cNoYesNo
Lemonade logo LemonadeYes (built-in interfaces)Yes (Model Manager)n/cYesYesYesn/cYes

Yes means a vendor doc or README states it; Partial means it works with caveats or a plugin; n/c means we could not confirm it from the sources we read, and does not mean unsupported. Open WebUI is omitted because it is a front end, not an engine.

1. Ollama: the default starting point

Ollama logo

Ollama is a model manager and local server in one program. You install it, run ollama pull or ollama run with a model name, and it downloads the file, loads it into memory, serves it on http://localhost:11434 and unloads it again when idle. That loop is why most agent frameworks list Ollama first in their setup docs: the base URL is predictable and the model names are short. Its README lists llama.cpp as a supported backend, and a third-party log check by systemdesign.academy (Oct 3, 2026) found Ollama starting llama.cpp's server for every GGUF model it tested. The same source says Ollama also has a newer engine on Apple's MLX for some models on Apple silicon, announced as a preview on Mar 30, 2026.

For agents the details that matter are in the docs. Ollama's context-length page says defaults depend on VRAM: 4k below 24 GiB, 32k from 24 to 48 GiB and 256k at 48 GiB or more, and it says agents and coding tools should be set to at least 64,000 tokens. Set OLLAMA_CONTEXT_LENGTH=64000 (or use the app slider) and check ollama ps to confirm the model is not partly running on the CPU. On concurrency, the FAQ says OLLAMA_NUM_PARALLEL defaults to 1 on most backends (MLX on Metal picks a conservative value from available memory), OLLAMA_MAX_LOADED_MODELS defaults to 3 times the number of GPUs, and parallel requests multiply the context allocation: a 2K context with 4 parallel requests becomes 8K. There is also OLLAMA_MAX_QUEUE and OLLAMA_KEEP_ALIVE for how long a model stays loaded.

The API surface is broad. Ollama's docs describe an OpenAI-compatible endpoint at /v1/chat/completions, stateless Responses requests, embeddings, tool calling, and Anthropic Messages compatibility, so clients built for OpenAI or Anthropic formats can point at it. It also sells optional cloud models, which blurs the line between local and hosted: the same CLI can run a model on your GPU or on Ollama's servers. If you want a strictly local setup, check which model tag you pulled.

Ollama website share image
Ollama's own share image from ollama.com. Source: ollama.com.

Nemotron 3.5 Bolt E4B 4GB from @NvidiaAI is now available on Ollama. This new small open model is built for local assistants, interactive characters and robots that can carry on a conversation and use tools to get things done.

— @ollama October 23, 2026

Open models are moving into real enterprise workloads. Our cofounder and CEO @jmorgan's conversations with CIOs and eng leaders at these companies have changed: from where should I run my model to where is my data going? Read the piece in @FortuneMagazine:

— @ollama November 19, 2026
LicenseMIT (GitHub)
GitHub stars188,671 as of December 3, 2026; latest release v0.40.19
Default port11434, bound to 127.0.0.1 unless OLLAMA_HOST is changed
APIsNative API, OpenAI Chat Completions, stateless Responses, Anthropic Messages, embeddings
PlatformsmacOS, Windows, Linux (Intel Macs run on CPU only, per systemdesign.academy)
Hardware listsNVIDIA and AMD Radeon GPUs per Ollama's GPU docs; Apple silicon

Key features

  • One-command model download, load, unload and update
  • Model library with short tags, plus import of GGUF and safetensors files
  • OpenAI, Anthropic and native APIs on one port
  • Environment variables for parallelism, queue length, loaded models, keep-alive and context length
  • Desktop app with a context-length slider
  • Optional cloud models with a pay-per-token plan

Pros. Shortest path from install to a working endpoint; MIT-licensed and the most starred runner in this guide; Most agent and coding tools document an Ollama setup; Handles model loading and eviction for you; Active release cadence: the repository was pushed to on the day we checked.

Cons. Low default context on smaller GPUs (4k under 24 GiB), which silently breaks agent loops; One request per model at a time unless you raise OLLAMA_NUM_PARALLEL, and raising it multiplies memory; Fewer low-level knobs than running llama.cpp directly; Cloud and local share one tool, so privacy depends on which tag you run; Not designed for high-concurrency serving the way vLLM and SGLang are.

Benefits. If you want a local model behind your coding agent today, Ollama gets you there with the fewest decisions. The cost is that you must set context and parallelism yourself before an agent loop behaves.

Pricing. Running models locally costs nothing and needs no subscription. Cloud plans checked on ollama.com/pricing: Pay as you go $0 base with per-token billing and 3 concurrent requests; Pro $20 a month ($200 a year, or $16.67 a month billed annually) with $60 of monthly usage credits; Max $100 a month with $300 of credits and 10 concurrent requests; Team $500 a month with $1,000 of shared credits; Enterprise custom.

Where it stands out. A developer laptop or single-GPU desktop serving one coding agent through an OpenAI-compatible URL.

Skip it if. Many agents or users share the GPU at the same moment and you need batching throughput, or you want to control every llama.cpp flag.

2. LM Studio: the desktop app with a real server inside

LM Studio logo

LM Studio is a closed-source desktop application for finding, downloading and chatting with local models, with a local server built in. The app uses llama.cpp and MLX engines, runs on Apple silicon Macs, Windows and Linux, and exposes its server on port 1234 in the examples we read. Its command-line tool lms is a separate MIT-licensed repository, and a headless mode called llmster runs LM Studio as a background service with no window, starting on machine login and loading models on demand, with idle TTL and auto-evict settings for memory. The docs include a startup-task recipe for Linux.

For agent work the notable feature is concurrency. LM Studio's parallel-requests page says that when loading a model you can set Max Concurrent Predictions, that this uses continuous batching, that it is supported for the llama.cpp engine with MLX listed as coming soon, and that the default is 4. In the DevFeed write-up of a SitePoint benchmark on one RTX 3090, LM Studio and llama.cpp used four slots at four simultaneous requests while Ollama's one-slot default queued them. The same article concluded concurrency settings mattered more than server choice at that load, which is the main reason this section recommends checking defaults before switching tools.

The API list is wide: LM Studio's docs name Responses, Chat Completions, Completions and Embeddings endpoints, tool use, an Anthropic compatibility endpoint and MCP through the API. In Oct and Nov 2026 the company also pushed a hosted tier called Bionic with US-hosted open models under zero data retention, and LM Link for connecting devices, including Agent Remote Control, announced Nov 16, 2026. Those cloud features are separate from local inference. If you only want a private local runner you can ignore them, but you should know that the free tier now sits next to a paid cloud product.

Introducing Agent Remote Control. You can now run your agents remotely on any device. End-to-end encrypted. Powered by LM Link.

— @lmstudio November 16, 2026
LicenseApp is closed source; the lms CLI is MIT (GitHub)
GitHub starslms CLI repository: 5,454 as of December 3, 2026 (the app itself is not on GitHub)
Default port1234 in LM Studio's examples
APIsResponses, Chat Completions, Completions, Embeddings, Anthropic compatibility, MCP via API
PlatformsApple silicon Macs, Windows, Linux (no Intel Mac support, per systemdesign.academy)
ConcurrencyMax Concurrent Predictions, default 4, llama.cpp engine, continuous batching

Key features

  • Model browser and download manager with load-parameter controls
  • llama.cpp and MLX engines in one app
  • Headless llmster mode with login startup, idle TTL and auto-evict
  • Parallel requests through continuous batching
  • Multiple API styles including Responses and Anthropic compatibility
  • LM Link for reaching your models from other devices

Pros. Best model discovery and load-settings UI of the group; Free for local use (the Free tier on its pricing page), which systemdesign.academy says includes use at work; Parallel predictions on by default (4) for the llama.cpp engine; Runs headless on servers without opening the GUI; Both llama.cpp and MLX engines on a Mac.

Cons. The main app is closed source, so you cannot audit it like the others; Apple silicon only on Mac; MLX parallel requests were listed as coming soon in the docs we read; Paid cloud tiers sit beside the free local product, which can confuse privacy expectations; Not built for large multi-GPU serving.

Benefits. If you want to try many models quickly, tune load settings visually and still hand your agent an OpenAI or Anthropic style URL, LM Studio is the most comfortable of the six. The headless mode means the same setup can move to a server.

Pricing. Checked on lmstudio.ai/pricing: Free $0 (local models on llama.cpp and MLX, Bionic Agent, LM Link for up to 5 devices, limited web search); Bionic+ $20 a month (US-hosted open models, LM Link for up to 20 devices, web search and page extraction); Pro $100 a month (5x usage limits, LM Link for up to 100 devices, early access); organizations for centralized billing. All paid tiers are cloud features; local inference stays free.

Where it stands out. A Mac or Windows workstation where you want to browse models, tune loading and expose a server to your coding agent.

Skip it if. You want a fully open-source stack, or you serve many users from a multi-GPU box.

3. llama.cpp: the engine under much of the ecosystem

llama.cpp logo

llama.cpp is a C and C++ inference project built on the ggml library. Its README states the goal as enabling LLM and multimodal inference with minimal setup and state-of-the-art performance on a wide range of hardware, locally and in the cloud. It is MIT licensed. A Hugging Face post titled llama.cpp v1.0.0: A stronger foundation for the local AI ecosystem marked the 1.0 release, and the README now installs through a script from llama.app, Docker, prebuilt release binaries or a source build. Once installed, the README quick start is two commands: one to chat with a Hugging Face model and one to launch an OpenAI-compatible API server.

Because Ollama and others can sit on top of it, learning llama.cpp directly pays off. You choose the quantization file, the context size, how many layers go to the GPU, how many parallel slots the server keeps, and which backend to build (CUDA, Metal, Vulkan, ROCm and others). The README links docs for multi-GPU use, Android, an Apple XCFramework, GBNF grammars for constrained output, text-to-speech models, and performance troubleshooting. In the DevFeed-reported benchmark on one RTX 3090, llama.cpp ran four slots and handled four simultaneous requests without queueing, and at 32 requests vLLM delivered 2.5 times its throughput when llama.cpp was given 32 slots.

The tradeoff is that nothing is done for you. You pick the GGUF file, you size the context so the KV cache fits, and you manage updates. The reward is the widest hardware reach in this guide, including CPUs, Apple silicon and phones, and the earliest access to new model support, since much of the ecosystem inherits it. If you want a service that starts on boot and serves multiple models, you will likely wrap it with a process manager or use a tool that does.

llama.cpp GitHub repository banner
The llama.cpp repository banner served by GitHub. Source: github.com/ggml-org/llama.cpp.
LicenseMIT (GitHub)
GitHub stars136,837 as of December 3, 2026; latest release v1.1.0
Default port8080 for llama-server, per systemdesign.academy (Oct 3, 2026)
APIsOpenAI-compatible server; GBNF grammars for constrained output
Installllama.app script, Docker, prebuilt binaries, or build from source
PlatformsLinux, macOS, Windows, Android and iOS (via docs), plus CPU-only builds

Key features

  • Built on ggml with CUDA, Metal, Vulkan, ROCm and CPU backends
  • GGUF models with many quantization levels, downloaded straight from Hugging Face
  • OpenAI-compatible server with parallel slots
  • Multimodal and text-to-speech support in the same project
  • GBNF grammars for structured output
  • Docs for multi-GPU use and performance troubleshooting

Pros. Widest hardware reach in this guide, including CPU-only and phones; MIT license and a very large contributor base; Every setting is exposed, so you can tune for your machine; New model architectures usually land here first; Small footprint with no Python environment required.

Cons. No built-in model manager or desktop app; You must size context, slots and GPU layers yourself; Flags and commands change between releases (the README now uses newer launch commands than older guides); Less throughput at high concurrency than vLLM in the one benchmark we cite; Production concerns such as auth, metrics and autoscaling are yours to add.

Benefits. llama.cpp is the choice when you need an unusual machine to work, want to embed inference in your own software, or want to know exactly what runs. Agents benefit from its grammar support and from having a server you can pin to specific flags.

Pricing. Free and MIT licensed. No hosted service or paid plan exists from the project; your cost is hardware and setup time.

Where it stands out. An embedded or edge deployment, a CPU-only box, or an AMD or Intel machine where a vendor backend (Vulkan, ROCm, SYCL) matters.

Skip it if. You want automatic model downloads and unloads, or a point-and-click UI.

4. vLLM: the throughput server for shared GPUs

vLLM logo

vLLM began in the Sky Computing Lab at UC Berkeley and, per its README, is now maintained by a community from many dozens of academic institutions and companies with over 2,000 contributors. It is an Apache 2.0 Python library and server. The headline idea is PagedAttention, a way to manage the attention key and value memory so many requests can share a GPU, together with continuous batching, chunked prefill and prefix caching. The README also lists speculative decoding, disaggregated prefill and decode, tensor, pipeline, data and expert parallelism, structured outputs, tool calling and reasoning parsers, and an OpenAI-compatible server with an Anthropic Messages API and gRPC.

Hardware support is wide on paper: NVIDIA, AMD and Intel GPUs, x86, ARM and PowerPC CPUs, and plugins for TPUs, Gaudi, Ascend and Apple silicon. In practice the center of gravity is Linux with an NVIDIA or AMD GPU. systemdesign.academy's Oct 2026 summary of the install guide says NVIDIA cards need compute capability 7.5 or higher, Windows needs WSL, and Apple silicon support is experimental. The install itself is uv pip install vllm per the README. The DevFeed-reported SitePoint test measured 72 to 173 seconds of startup compilation and substantial GPU memory reservation, and a 2.5 times throughput lead over llama.cpp at 32 concurrent requests on one RTX 3090, with first-token waits under 0.6 seconds. That test used one machine, one model family and an AWQ file for vLLM against GGUF for the others, so treat it as a direction, not a verdict.

vLLM suits agent platforms where several agents, tools or users send requests at once. It also tracks new open models quickly: the project posted day-0 support for Thinking Machines' looped Inkling model on Nov 20, 2026. The price of that power is operational weight. You manage Python environments, CUDA versions and memory settings, and a model that fits in Ollama may not start until you lower gpu-memory settings. For one person on one laptop it is rarely the right start.

Stay in the loop with vLLM. Day-0 vLLM support for @thinkymachines' new looped Inkling model has landed. 12 shared core layers, 3 passes, and gated messages from one pass to the next. 1/4

— @vllm_project November 20, 2026
LicenseApache 2.0 (GitHub)
GitHub stars97,930 as of December 3, 2026; latest release v0.34.0
Default port8000 (OpenAI-compatible server)
APIsOpenAI-compatible, Anthropic Messages and gRPC (README)
Installuv pip install vllm, then vllm download-kernels for faster startup
HardwareNVIDIA, AMD and Intel GPUs, CPUs, and plugins for TPU, Gaudi, Ascend, Apple silicon

Key features

  • PagedAttention memory management with continuous batching
  • Prefix caching and chunked prefill
  • Speculative decoding and disaggregated prefill and decode
  • Quantization including FP8, NVFP4, INT4, GPTQ, AWQ and GGUF
  • Structured outputs, tool calling and reasoning parsers
  • Multi-LoRA serving and 200+ model architectures

Pros. Built for many concurrent requests on one or many GPUs; Fast to add support for new open models; Apache 2.0 with a very active community; Rich parallelism and quantization options for large models; Anthropic and OpenAI style APIs from the same server.

Cons. Heavier install and tuning than Ollama or LM Studio; Long startup and large memory reservation in the measured test; Linux and GPU first; Windows needs WSL and Mac support is experimental; No built-in model library or desktop app; Overkill for a single user on a laptop.

Benefits. If your agents are the bottleneck because they queue on one GPU, vLLM is the first thing to try. It converts a GPU into a shared service.

Pricing. Free and Apache 2.0. The project does not sell a hosted plan; your cost is GPU hardware or rented GPU time.

Where it stands out. A shared inference server on a workstation or cloud GPU serving a team of agents.

Skip it if. You run one agent on a laptop, a Mac or a small GPU and want the simplest path.

5. SGLang: prefix reuse for agent-heavy serving

SGLang logo

SGLang is an open-source inference framework for language, vision-language and diffusion models. Its README describes it as optimized for agentic workloads, large-scale serving and RL rollouts, and it is hosted by LMSYS, a non-profit open-source organization. Its documentation highlights RadixAttention, prefix caching and multi-GPU parallelism for low-latency, high-throughput inference. The idea behind RadixAttention is that many requests share a long prefix, such as a system prompt and tool schema, so the runtime stores the computed state in a tree and reuses it. Agent loops resend large shared prefixes on every turn, which is why this feature gets attention.

The supported hardware table in the README is the broadest of the two big GPU servers: NVIDIA from RTX 30, 40 and 50 series and DGX Spark up through B200, B300, GB200 and GB300; AMD Instinct MI300X to MI355X; Google TPU; Intel Arc GPUs and Xeon CPUs; Apple silicon via Metal and MLX; Huawei Ascend; and Moore Threads. The ecosystem includes SGLang Diffusion, SGLang Omni for speech, SpecForge for draft models and integrations with RL frameworks. At its first summit on Nov 12 and 13, 2026, the project said it announced SGLang v1.0, released Miles v0.2 and launched the SGLang Consortium with nine founding members, among them NVIDIA, AMD, Intel, Google, Meta, Cloudflare and Modal.

For performance claims, rely on the sources and not on slogans. LMSYS reported on Oct 20, 2026 that SGLang Low-Latency Mode, built with NVIDIA and AMD, delivered up to 1.38x P90 per-user token speed on NVIDIA GB300 (671 to 928 tok/s) and 1.56x on AMD MI355X (332 to 516 tok/s) on DeepSeek-V4.1-Flash in SemiAnalysis' AgentX trace replay. That is a vendor-reported datacenter result, not a result on a consumer card. On consumer hardware you should benchmark SGLang against vLLM on your own model and traffic. Install is Docker (lmsysorg/sglang:latest) or uv pip install --prerelease=allow sglang per the README. The latest GitHub release tag we saw was v0.5.23, even though v1.0 was announced at the summit, so check the release page before pinning a version.

SGLang website share card
SGLang's share card from sglang.io. Source: sglang.io.

Introducing SGLang Low-Latency Mode, built with @NVIDIAAI and @AMD. On DeepSeek-V4.1-Flash with DSpark, it delivers up to 1.38x P90 per-user token speed on NVIDIA GB300 (671 to 928 tok/s) and 1.56x on AMD MI355X (332 to 516 tok/s) in @SemiAnalysis_'s AgentX trace replay.

— @lmsysorg October 20, 2026

2,000+ people. Two days. The first SGLang Summit. Together, we announced SGLang v1.0, released Miles v0.2, and launched the SGLang Consortium with nine founding members: @nvidia, @AMD, @intel, @Google, @Meta, @thinkymachines, @Cloudflare, @modal, and @radixark.

— @sgl_project November 17, 2026
2026 Deep Comparison of Top 5 Local Inference Frameworks: vLLM, SGLang, llama.cpp, MLX, Ollama

A third-party comparison video from the AIRosetta channel covering vLLM, SGLang, llama.cpp, MLX and Ollama. We did not produce it and did not verify its numbers.

LicenseApache 2.0 (GitHub)
GitHub stars39,229 as of December 3, 2026; latest release tag v0.5.23
Hosted byLMSYS, a non-profit open-source organization
Installdocker pull lmsysorg/sglang:latest, or uv pip install --prerelease=allow sglang
HardwareNVIDIA, AMD Instinct, Google TPU, Intel GPU and CPU, Apple silicon (Metal and MLX), Huawei Ascend, Moore Threads
Enterprise contact[email protected] per the README

Key features

  • RadixAttention and prefix caching
  • Continuous batching, speculative decoding and multi-GPU parallelism
  • Built-in diffusion engine and a speech serving project (SGLang Omni)
  • OpenAI-compatible serving and a model and hardware cookbook
  • Integrations with RL and orchestration stacks such as verl, Ray Serve and NVIDIA Dynamo
  • Backed by a consortium of hardware and cloud companies

Pros. Explicitly aimed at agent workloads with long shared prefixes; Very wide hardware table, including TPU and Apple silicon paths; Apache 2.0 with a non-profit host and corporate backers; Active research output on low-latency serving; Cookbook generates ready-to-run launch commands per model and hardware.

Cons. Not a beginner tool: needs GPU and serving knowledge; Headline speed numbers are on datacenter GPUs with vendor tooling; Release tags and the v1.0 announcement were not aligned at the time we checked; No desktop app or model library; Fewer GitHub stars than vLLM, so expect a smaller pool of community answers.

Benefits. When many agent turns share the same system prompt and tool list, prefix reuse can cut redundant work. SGLang is the runner built around that idea, and it gives you a path from a single RTX card up to datacenter GPUs.

Pricing. Free and Apache 2.0. No hosted plan from the project; enterprise and consulting inquiries go to [email protected] per the README.

Where it stands out. A GPU server running many agents that share a long system prompt and tool schema.

Skip it if. You have a laptop or a Mac and want a quick local model, or you have not yet measured that prefix reuse is your bottleneck.

6. Jan: the open-source desktop alternative

Jan logo

Jan describes itself as an open-source ChatGPT replacement. It is a desktop app from Menlo Research that downloads and runs models from Hugging Face (its README names Llama, Gemma, Qwen and gpt-oss families), runs a local OpenAI-compatible server at localhost:1337, and integrates the Model Context Protocol for agentic features. The repository LICENSE file is Apache 2.0 (GitHub's license detector returned no SPDX match when we queried the API, so we read the file itself). The README says everything runs locally when you want it to, and it also lets you connect cloud models such as OpenAI, Anthropic, Mistral, Groq and MiniMax with your own keys.

Jan sits between LM Studio and Ollama. Like LM Studio it is a GUI-first app with a model hub. Unlike LM Studio the source is open, so you can read and build it. The README's build instructions show a bundled llama.cpp engine with variants for CPU, Vulkan, Metal, CUDA 12, CUDA 13 and HIP or ROCm, which tells you the inference core is llama.cpp. System requirements listed are macOS 13.6 or later (8GB RAM for 3B models, 16GB for 7B and 32GB for 13B), Windows 10 or later with NVIDIA, AMD or Intel Arc GPU support, and most Linux distributions.

For agent use, the local server and MCP support are the parts to test. We did not find concurrency or batching documentation in the README, so if you plan to serve several agents at once, test it or use a different runner. Jan fits a developer who wants a chat app, local models and agent tools in one open-source package without moving to the terminal.

Jan website share image
Jan's share image from jan.ai. Source: jan.ai.
LicenseApache 2.0 (LICENSE file, Menlo Research)
GitHub stars46,312 as of December 3, 2026; latest release v0.8.8
Default port1337 (OpenAI-compatible local server)
PlatformsmacOS 13.6+, Windows 10+, Linux
EngineBundled llama.cpp with CPU, Vulkan, Metal, CUDA and HIP variants (README build notes)
Agent featuresModel Context Protocol integration, custom assistants

Key features

  • Download and run Hugging Face models from the app
  • Local OpenAI-compatible API on port 1337
  • MCP integration for tool use
  • Optional cloud providers with your own API keys
  • Custom assistants for repeated tasks
  • Open-source desktop app built with Tauri

Pros. Fully open-source desktop app under Apache 2.0; MCP support in a GUI product; Free, with cloud providers optional; Clear hardware variants for NVIDIA, AMD, Intel Arc and Apple silicon; Large community for a desktop-first tool.

Cons. No published concurrency or batching details in the README; Concurrency and model-management settings are less documented than Ollama's environment variables; Desktop focus: less natural to run headless on a server; GitHub could not auto-detect the license, so check the LICENSE file for compliance work; Desktop-first design, so server-style operation takes more effort.

Benefits. If you want an open-source, point-and-click local AI app that also exposes an API and MCP tools, Jan is the best fit in this group.

Pricing. Free and open source. Optional cloud providers (OpenAI, Anthropic, Mistral, Groq, MiniMax and others) are billed by those providers under your own keys.

Where it stands out. A privacy-minded user who wants chat, local models and MCP tools in one open-source desktop app.

Skip it if. You need a headless server with batching, or an engine you can tune flag by flag.

Other Alternatives Worth Considering

These six cover different jobs from the big six: a multimodal server, an Apple library, a web front end, a Mac cluster, NVIDIA's own engine and an AMD-focused server. We read their READMEs and GitHub metadata but did not run them, so the sections are shorter.

7. LocalAI: one API for text, images and speech

LocalAI logo

LocalAI is an MIT-licensed server that its README says runs open models for chat, images, speech and video on your own machines, speaking the OpenAI and Anthropic API formats. It goes beyond a runner: it adds chats, saved agents with tools, MCP servers, files, knowledge collections and an add-on library, and its model list covers text, vision, speech to text, text to speech, images, video, music, embeddings and reranking. Hardware listed includes NVIDIA, AMD, Intel, Apple silicon, Vulkan, NVIDIA Jetson (including DGX Spark images) and CPU-only. It installs by script, Docker Compose or a desktop app (Windows is experimental). Latest release tag v5.1.1; 50,635 stars as of December 3, 2026.

LocalAI website share card
LocalAI's share card from localai.io. Source: localai.io.

Pros. Widest modality coverage in this guide; OpenAI and Anthropic API formats; Containers for several GPU families including Jetson; MCP and agent features built in.

Cons. A large surface to learn; Several backends mean behavior varies by model; Concurrency details were not in the README we read.

Pricing. Free, MIT licensed. The README lists no paid plan.

Skip it if. You only need one chat model, where Ollama or llama.cpp is simpler.

8. MLX-LM: Apple's Python route

MLX-LM logo

MLX LM is a Python package from the ml-explore organization for generating text and fine-tuning language models on Apple silicon with MLX. The README lists Hugging Face Hub integration, quantizing and uploading models, low-rank and full fine-tuning (including on quantized models), and distributed inference and fine-tuning with mx.distributed. Install is pip install mlx-lm, and the quick start is mlx_lm.generate and mlx_lm.chat. It is MIT licensed with 7,805 stars as of December 3, 2026 and latest release v0.32.2. It is a library and command-line toolkit, not a managed server product, so agents usually reach it through LM Studio, Ollama's MLX engine or a script.

Pros. Native Apple silicon performance path; Quantization and LoRA fine-tuning in one package; MIT license and small install.

Cons. Apple silicon only; No desktop app or model library; We did not verify a server API in the README excerpt.

Pricing. Free, MIT licensed.

Skip it if. You are not on a Mac, or you want a ready-made server.

9. Open WebUI: a front end, not an engine

Open WebUI logo

Open WebUI is the most starred project here after Ollama, with 159,922 stars as of December 3, 2026 and latest release v0.13.5, but it does not run models. It is a web chat interface you connect to runners such as Ollama or any OpenAI-compatible server. The README installs it with uvx or pip install open-webui and open-webui serve under Python 3.12. The LICENSE file is titled Open WebUI License and is custom (GitHub reports no SPDX match), so read it before rebranding or redistributing. Use it when you want a team chat portal, accounts and documents on top of a runner you already chose.

Pros. Polished browser interface for any compatible runner; Easy Python install; Large community.

Cons. Not an inference engine; Custom license, not an OSI standard license; Another service to secure and update.

Pricing. The open project is free. We did not check any paid enterprise plan.

Skip it if. You only need an API endpoint for an agent.

10. exo: pool your Macs into one cluster

exo logo

exo connects your devices into an AI cluster so models larger than one machine can run across several. Its README lists automatic device discovery, RDMA over Thunderbolt 5 (needs macOS Tahoe 26.2 or later), topology-aware parallelism, tensor parallelism with up to 1.8x speedup on 2 devices and 3.2x on 4 devices (README claims, not our tests), MLX as the inference backend, and compatibility with the OpenAI Chat Completions, Claude Messages, OpenAI Responses and Ollama APIs. The macOS app needs Apple silicon and macOS Sequoia 15.1 or later, and installs by DMG or brew install --cask exo. Apache 2.0, 48,661 stars as of December 3, 2026, latest release v1.0.71.

exo website share image
exo's share image from exolabs.net. Source: exolabs.net.

Pros. Run models too large for one Mac; Many API styles on one endpoint; Built-in dashboard and automatic discovery.

Cons. Needs several machines for the main benefit; Fastest path needs Thunderbolt 5 and recent macOS; Apple-centered.

Pricing. Free, Apache 2.0.

Skip it if. You own a single machine.

11. TensorRT-LLM: NVIDIA's own engine

TensorRT-LLM logo

TensorRT-LLM is NVIDIA's library for optimized LLM inference on NVIDIA GPUs. The LICENSE file states the project is under the Apache 2.0 license (GitHub's detector returned no SPDX match). Its README lists tech blogs, such as one on refactoring modeling code for the agent era and another on NVFP4 MLA with 4-bit KV cache storage. It has 15,163 stars as of December 3, 2026 and latest release v1.3.0. It makes sense where you control NVIDIA hardware and want the vendor's own optimizations; for portability across GPU brands, vLLM and SGLang cover more ground. NVIDIA's DGX Spark benchmark in our hardware guide included a TensorRT-LLM run alongside vLLM.

Pros. Vendor-tuned for NVIDIA GPUs; Apache 2.0; Frequent technical posts on new precision formats.

Cons. NVIDIA only; Build and engine setup is heavier than desktop tools; We found no desktop app.

Pricing. Free library, Apache 2.0. You pay for NVIDIA hardware.

Skip it if. You use Mac, AMD or CPU, or you want a quick desktop setup.

12. Lemonade: AMD-optimized local server

Lemonade logo

Lemonade is a local AI server that, per its README, serves standard OpenAI, Anthropic and Ollama APIs and covers chat, coding, speech and image generation on your own NPU and GPU. It is built by the community with optimizations by AMD engineers for Ryzen AI, Radeon and Strix Halo PCs, ships packages for Windows 11, several Linux distributions, macOS and Docker, and includes a Model Manager, mobile apps and an embeddable binary. A lemonade launch claude command is described for coding with Lemonade models. Apache 2.0, 6,308 stars as of December 3, 2026, latest release v2026.48.3. See our guide to Mac, DGX Spark and Strix Halo hardware for the machines it targets.

Pros. Best fit for AMD NPU and GPU PCs; Three API styles including Ollama's; Embeddable option for app developers.

Cons. Smaller community than the big runners; Concurrency and throughput data were not in the README we read; Benefits are strongest on AMD hardware.

Pricing. Free, Apache 2.0.

Skip it if. Your hardware is NVIDIA or Apple silicon.

Head to Head Verdicts

Ollama vs LM Studio

Both give you a downloader, a local server and an OpenAI-style API, and both now document an Anthropic-style API. The split is style. Ollama is terminal and API first, MIT licensed, with a model library and a simple environment-variable model for tuning. LM Studio is app first, closed source, with a visual model loader and per-load settings. On concurrency, LM Studio defaults to 4 parallel predictions on its llama.cpp engine, while Ollama defaults to 1 per model on most backends. On context, Ollama picks a size from VRAM (4k under 24 GiB), so an agent user must raise it. Pick LM Studio if you like a GUI and want batching without environment variables; pick Ollama if you script everything or your agent framework documents it.

Ollama vs llama.cpp

Ollama lists llama.cpp as a supported backend and, in the one log-based check we found, launched llama.cpp's server for every GGUF model. So raw single-stream speed is usually similar, and differences come from builds, defaults and flags. Ollama adds management; llama.cpp gives control and the earliest access to new backends and models. If you have never needed a llama.cpp flag, you do not need to leave Ollama. If you want to set parallel slots, cache types, grammar constraints or an unusual backend, go straight to llama.cpp. We did not benchmark them against each other.

Ollama vs vLLM

This is a question of how many requests hit the GPU at once. In the DevFeed-reported SitePoint test on one RTX 3090, Ollama's one-slot default queued requests at four concurrent users, raising its parallelism pushed a 27B model onto the CPU, and at 32 concurrent requests vLLM had 2.5 times the throughput of llama.cpp with 32 slots. The test used a single machine and an AWQ file for vLLM against GGUF for the rest. If you are one developer, vLLM's long startup and memory reservation buy you nothing. If you are serving a team of agents, vLLM is built for it.

vLLM vs SGLang

Both are Apache 2.0 Python servers with continuous batching, prefix caching and OpenAI-style APIs, and both are evolving fast. SGLang's README frames the project around agentic workloads and RL rollouts and its docs lead with RadixAttention. vLLM's README leads with PagedAttention, a very wide hardware and quantization list and an Anthropic Messages API. The only head-to-head numbers we could cite are single-vendor, so run both on your model with a trace of your own agent traffic. Our default advice is vLLM for the broadest ecosystem and SGLang if prefix reuse looks like your bottleneck and you have the GPUs to test it.

LM Studio vs Jan

Both are desktop apps with a model browser and a local server. Jan is Apache 2.0, port 1337, with a bundled llama.cpp engine and MCP integration. LM Studio is closed source, port 1234, with llama.cpp and MLX engines, documented parallel requests and a headless mode. If openness decides it, take Jan. If Mac performance with MLX or server mode decides it, take LM Studio.

llama.cpp vs MLX-LM on a Mac

MLX-LM is Apple's own stack, with Python scripting, quantization and fine-tuning. llama.cpp runs on Apple silicon too and on every other platform. Because LM Studio and Ollama can both use MLX on Macs (Ollama for some models), you can often get MLX speed without touching MLX-LM directly. Use MLX-LM if you want to train or script; use the apps if you want to serve.

Ollama vs vLLM vs llama.cpp: Which Inference Engine to Use?

A third-party video from the Cloud Codes channel on choosing among Ollama, vLLM and llama.cpp. We did not produce it and did not verify its claims.

Cited Benchmarks

We ran no benchmarks for this guide. The table collects the measurements we found, with who measured them and what they did not cover. Read them as examples of method and direction, because they use different hardware, models and quantization and cannot be compared with each other.

SetupRunnersResultSource and caveat
One RTX 3090, 4 simultaneous requestsOllama (1 slot default), LM Studio and llama.cpp (4 slots)Ollama queued requests; LM Studio and llama.cpp did notDevFeed summary of SitePoint test, Nov 17, 2026
One RTX 3090, Ollama parallelism raisedOllama with 27B modelRaising parallelism pushed the model onto the CPU because each slot got a full contextSame source; its suggested fix of lowering context was not tested
One RTX 3090, 32 simultaneous requestsvLLM vs llama.cpp (32 slots)vLLM 2.5x throughput, first-token waits under 0.6 s, 72 to 173 s startup compileSame source; vLLM used an AWQ file, others used identical GGUF-class files
Apple M4 MacBook Air 24GB, qwen2.5 1.5BOllama 0.32.14 (llama.cpp path)Q4_K_M 71.8 tok/s writing, Q8_0 46.2, F16 26.3; prompt reading 907 tok/ssystemdesign.academy, Oct 3, 2026 (only Ollama was tested)
Datacenter agent trace replay, DeepSeek-V4.1-FlashSGLang Low-Latency ModeUp to 1.38x P90 per-user speed on GB300 (671 to 928 tok/s); 1.56x on MI355X (332 to 516)LMSYS post, Oct 20, 2026 (vendor-reported)
Multi-Mac clusterexo tensor parallelismUp to 1.8x on 2 devices and 3.2x on 4 devicesexo README (vendor claim)

Two lessons stand out. First, concurrency settings can dominate the result at low user counts, so the default of the runner you pick is part of its performance. Second, the vendor-reported numbers (SGLang, exo) come from specific datacenter or multi-machine setups and say little about a single consumer GPU. For hardware-level numbers on Macs, Strix Halo and DGX Spark, see our hardware comparison.

Best For X: Decision Table

Your situationPickWhy
You want a local model behind your agent in ten minutesOllama or LM StudioBoth install in one step and serve an OpenAI-style API. Ollama is terminal first; LM Studio is app first.
You run an agent that needs 64k context on a 16GB or 24GB cardOllama (with OLLAMA_CONTEXT_LENGTH raised) or llama.cppOllama defaults to 4k under 24 GiB of VRAM and tells you agents need at least 64k. llama.cpp lets you set context and KV cache flags directly.
Several agents or users hit one GPU at oncevLLM or SGLangBoth are built for batching. In one DevFeed-reported test vLLM had 2.5 times llama.cpp throughput at 32 concurrent requests.
Your agents resend the same long system prompt and tool schemaSGLang or vLLMPrefix caching and RadixAttention exist for this. Measure on your own prompts before moving, since the saving depends on how stable they are.
You need the smallest install and full hardware reachllama.cppMIT license, C/C++, an install script, Docker, prebuilt release binaries and a source build, with docs for Android and an Apple XCFramework.
You want an open-source desktop chat app with MCP toolsJanApache 2.0, MCP integration, local server on port 1337, cloud models optional.
You want a team chat portal on top of local modelsOpen WebUI on top of Ollama, vLLM or LocalAIOpen WebUI is the front end; pick the runner separately.
You have two to four Macs and a model too big for oneexoAutomatic discovery, RDMA over Thunderbolt 5 on macOS Tahoe 26.2 or later, and README-claimed 1.8x and 3.2x speedups on 2 and 4 devices.
You write Python on a Mac and want to fine-tuneMLX-LMGeneration, quantization, LoRA and full fine-tuning in one package.
You own a DGX-class or datacenter NVIDIA fleetTensorRT-LLM, vLLM or SGLangTensorRT-LLM is NVIDIA's own; vLLM and SGLang are the open-community engines. Benchmark all three on your model.
You have a Ryzen AI or Strix Halo PCLemonade or llama.cpp (Vulkan or ROCm)Lemonade is built with AMD engineers for Ryzen AI, Radeon and Strix Halo.
You need one API for text, images and speechLocalAIOpenAI and Anthropic formats across chat, vision, speech, images, video, embeddings and reranking.

Checklist and Common Mistakes

Before you pick

  • Count how many requests will hit the model at the same time at peak, including sub-agents.
  • Write down the context length your agent needs (64,000 tokens or more is Ollama's guidance) and check that the model plus its cache fits in VRAM or unified memory.
  • List the API formats your agent speaks (OpenAI Chat Completions, Responses, Anthropic Messages) and confirm the runner documents them.
  • Check the license if you plan to redistribute or embed: MIT for Ollama, llama.cpp and MLX-LM; Apache 2.0 for vLLM, SGLang, Jan, exo, TensorRT-LLM and Lemonade; custom for Open WebUI; closed for the LM Studio app.
  • Decide whether cloud features are acceptable. Ollama and LM Studio both sell hosted models next to local ones.

Common mistakes

  • Leaving context at the default. Ollama's 4k default under 24 GiB of VRAM truncates agent prompts. Raise it and check ollama ps for CPU offload.
  • Raising parallelism without raising memory. In Ollama a 2K context at 4 parallel requests becomes 8K, and the DevFeed test saw a 27B model spill onto the CPU.
  • Exposing the server. Setting OLLAMA_HOST to 0.0.0.0 or binding other runners to all interfaces opens an unauthenticated model API to your network.
  • Comparing runners on different quantizations. An AWQ file and a GGUF file of the same model are not the same test.
  • Choosing vLLM for a laptop. Its strengths show up under concurrent load on a GPU server.
  • Trusting stars. Open WebUI and Ollama have the most stars here, but one is a front end and neither says anything about your workload.
  • Ignoring version drift. Commands and flags change quickly; llama.cpp's README now uses different launch commands than older tutorials.

How We Evaluated

We read each project's README, official documentation and pricing page, queried the GitHub API for stars, licenses and release tags on December 3, 2026, read the LICENSE files where GitHub returned no SPDX identifier, and checked each embedded X post through X's syndication endpoint and each video through YouTube's oEmbed. For performance we relied on two third-party sources, DevFeed's summary of a SitePoint test and systemdesign.academy's guide, plus vendor-posted numbers that we label as vendor claims. We did not install or benchmark these runners ourselves, we did not test tool-calling quality, and we did not compare answer quality. Rankings and picks are editorial judgment. Where we could not confirm a feature we wrote n/c or left it out. No sponsorships or affiliate links are involved.

FAQ

Ollama vs LM Studio: which should I use for local AI agents?

Use Ollama if you want a terminal-first tool with an MIT-licensed core, a model library and a server on port 11434 that most agent frameworks already know how to call. Use LM Studio if you want a desktop app for browsing models, tuning load settings and chatting, with a server on port 1234 and a headless llmster mode for machines without a screen. Both can serve an OpenAI-style API and an Anthropic-style API. The practical differences for agents are concurrency and context: LM Studio loads models with Max Concurrent Predictions set to 4 by default (llama.cpp engine), while Ollama processes one request per model by default unless you raise OLLAMA_NUM_PARALLEL, and Ollama defaults to a 4k context window on GPUs with less than 24 GiB of VRAM.

Is Ollama just a wrapper around llama.cpp?

Partly. Ollama's README lists llama.cpp as a supported backend, and a third-party measurement from systemdesign.academy (Oct 3, 2026) saw Ollama launching llama.cpp's server for every GGUF model it tested. The same source says Ollama also has an engine built on Apple's MLX for some models on Apple silicon, first announced as a preview on March 30, 2026. Ollama adds the model library, one-command downloads, automatic loading and unloading, and its own API, so it is a product built around the engine rather than a thin skin.

Ollama vs vLLM: when do I need vLLM?

When more than one agent or user hits the same GPU at once, or when you need throughput numbers rather than convenience. Ollama's docs say each model handles one request at a time unless OLLAMA_NUM_PARALLEL is raised, and that parallel requests multiply the context memory (a 2K context with 4 parallel requests becomes an 8K allocation). A DevFeed write-up of a SitePoint test on one RTX 3090 found that raising Ollama's parallelism pushed a 27B model onto the CPU, and that at 32 concurrent requests vLLM delivered 2.5 times the throughput of llama.cpp with 32 slots. That test used one machine and a quantized AWQ file for vLLM against GGUF for the others, and did not compare answer quality. For a single developer on a laptop, vLLM is usually more than you need.

llama.cpp vs Ollama: which is faster?

They share an engine for GGUF models, so single-stream speed is usually close, and differences come from settings, builds and defaults rather than architecture. Ollama picks defaults for you, including a context size based on VRAM, while llama.cpp exposes every flag and ships new backends and fixes first. We did not benchmark them head to head. If you need a setting Ollama hides, an unusual chip, or an embedded library, choose llama.cpp. If you want models to download, load and unload themselves, choose Ollama.

SGLang vs vLLM: which is better for agents?

Both are open-source Apache 2.0 GPU serving engines with continuous batching, prefix caching and OpenAI-style APIs, and the honest answer is to benchmark your own model and traffic. SGLang's README describes the project as optimized for agentic workloads, large-scale serving and RL rollouts, and its RadixAttention reuses shared prefixes. vLLM's README lists PagedAttention, chunked prefill, prefix caching, speculative decoding, disaggregated prefill and an OpenAI plus Anthropic API, with a very wide hardware list. LMSYS reported on Oct 20, 2026 that SGLang's new Low-Latency Mode gave up to 1.38x P90 per-user token speed on NVIDIA GB300 and 1.56x on AMD MI355X on an agent trace replay; that is a vendor number on datacenter hardware, not a consumer-GPU result.

What is the best local LLM runner for a Mac?

LM Studio and Ollama are the easy starts, and both can use MLX on Apple silicon (LM Studio for its MLX engine, Ollama for some models). MLX-LM is the choice if you want Python scripting, quantization and LoRA fine-tuning, and exo adds clustering across Macs with RDMA over Thunderbolt 5. llama.cpp also runs well on Apple silicon. For hardware choices, see our guide to Mac, DGX Spark and Strix Halo for local agents.

Which local runner works best on Windows?

Ollama, LM Studio, Jan and llama.cpp all have Windows builds, and Lemonade targets Windows 11 with NPU and GPU support for Ryzen AI machines. vLLM is a Linux-first project; a third-party guide from Oct 2026 says Windows users need WSL, so check its current install page before planning around it.

Can these runners serve Claude Code or other Anthropic-format clients?

Several now expose an Anthropic Messages API in addition to the OpenAI-style one. Ollama's docs list Anthropic Messages support, LM Studio has Anthropic compatibility endpoints, vLLM's README lists an Anthropic Messages API, LocalAI and Lemonade list Anthropic formats, and exo lists a Claude Messages API. Support for individual features such as tool use and streaming differs, so test the specific client you use. See our Antigravity and Ollama setup guide for one worked example of pointing a coding agent at a local model.

How much context do local agents need?

More than most defaults. Ollama's own context-length page says tasks like web search, agents and coding tools should use at least 64,000 tokens, while its defaults are 4k below 24 GiB of VRAM, 32k from 24 to 48 GiB and 256k at 48 GiB or more. Longer context grows the KV cache, so a model that fits at 4k can run out of memory at 64k. Set context deliberately, check that the model is not partly offloaded to the CPU (ollama ps shows the split), and size the model to fit with the cache.

Are these tools private?

Local inference keeps prompts on your machine, but check each product's optional cloud features. Ollama offers cloud models and says on its pricing page that cloud usage is billed, and LM Studio's Bionic cloud tiers use US-hosted open models with zero data retention, which is a different path from running locally. Ollama binds to 127.0.0.1 by default, and setting OLLAMA_HOST to 0.0.0.0 exposes it to your network. If you run agents on a server, read our OpenClaw and Hermes security hardening guide.

Which runner is best for AMD GPUs and Ryzen AI?

llama.cpp (Vulkan or ROCm builds), Ollama (its hardware page lists AMD Radeon cards), Jan (a HIP/ROCm engine variant), SGLang and vLLM (AMD Instinct for datacenter) all list AMD support. Lemonade is the one built specifically with AMD engineers for Ryzen AI, Radeon and Strix Halo, including NPU use. Support varies by model and card, so check the hardware lists before buying.

Do I need a front end like Open WebUI?

Only if you want a browser chat interface, accounts and document features on top of a runner. Agent frameworks talk to the runner's API directly. Open WebUI is a front end and not an inference engine, and it uses a custom license, so read it before redistributing or rebranding.

Can I run two runners at once?

Yes. They use different ports (Ollama 11434, LM Studio 1234, llama.cpp 8080, vLLM 8000, Jan 1337) and separate model folders, so the same model downloaded twice takes disk space twice. A common setup is Ollama or LM Studio for daily work and vLLM or SGLang on a GPU box for shared agent traffic. Because all of them speak an OpenAI-style API, switching is mostly a base URL and model name change.

Which open models should I run through these?

That depends on your memory and task. For model choice by use case, see our comparison of Qwen, DeepSeek, Kimi, GLM and MiniMax for agents and the sibling guide to the best local coding models by VRAM. Tool-calling quality varies by model and by how the runner applies chat templates, so test your own agent loop.

Sources

Logos of Ollama, LM Studio, llama.cpp, vLLM, SGLang, Jan, LocalAI, MLX-LM, Open WebUI, exo, TensorRT-LLM and Lemonade, the tools compared in this guide, belong to their respective owners.