Skip to content

Local AI Application Stack — Overview

Everything speaks OpenAI-compatible APIs. An app written against the OpenAI SDK runs locally by swapping base_url. The stack: vLLM → LlamaIndex/CrewAI → MCP → Qdrant → Qwen3-Embedding.

The single most important architectural fact about the 2026 local stack is that everything speaks the OpenAI API shape. Nearly every local runtime — llama.cpp, Ollama, vLLM, LM Studio, SGLang, LocalAI — exposes /v1/chat/completions, /v1/completions, /v1/models, and /v1/embeddions, so an application written once against the OpenAI SDK runs unchanged against a local endpoint by only swapping base_url (vllm.ai, ollama.readthedocs.io/en/openai). This is the "drop-in replacement" property that makes the whole local stack composable.

Runtime OpenAI endpoint Best for Version / last activity (verified)
llama.cpp llama-server (/v1/chat/completions etc.) CPU/Metal/mixed-backend, GGUF, single user, edge v0.6.0 released Oct 5 2026; repo committed ~1h before Oct 9 2026; 130.6k★ (releases, repo)
Ollama /v1/... at localhost:11434/v1 fast local dev, model management, desktop PyPI ollama v0.6.3 (2026-09-29); compat layer still marked experimental (docs)
vLLM full OpenAI-compatible server multi-user, high throughput, batched/production serving PyPI vllm v0.31.0 (2026-10-05) (vllm.ai)
SGLang OpenAI-compatible + native /generate latency-critical, speculative decoding referenced in Qwen docs (HF Qwen3-VL-Embedding)
LM Studio / LocalAI OpenAI-compatible desktop GUI / drop-in API (daily.dev) actively developed

How apps consume it. The standard pattern is to point the OpenAI SDK (or any OpenAI-compatible client) at the local base URL with a dummy API key:

from openai import OpenAI
client = OpenAI(base_url="http://localhost:11434/v1/", api_key="ollama")
client.chat.completions.create(model="qwen3:8b", messages=[...])

Source: Ollama OpenAI compatibility docs.

Known caveats (still true in 2026). Ollama's compat layer explicitly does not support logprobs, tool_choice, logit_bias, or image URLs (base64 only), and tool-call streaming was still listed as incomplete (Ollama docs). vLLM is the safer choice when you need strict OpenAI parity plus concurrency. A LiteLLM-style proxy layer (PyPI litellm v1.104.2, 2026-10-08) is commonly placed in front to normalise multiple local backends and give apps one stable endpoint.

Maintenance scorecard (as of 2026-10-09, from live version/commit data)

Tool Verified signal Verdict
llama.cpp v0.6.0 (Oct 5 2026), commits Oct 9 2026 ✅ core, extremely active
vLLM v0.31.0 (Oct 5 2026) ✅ core, active
Ollama v0.6.3 (Sep 29 2026); compat still experimental ✅ active
OpenCode commits Oct 8 2026, 212k★ ✅ very active
CrewAI v1.15.26 (Oct 8 2026) ✅ very active
LangChain / LlamaIndex v1.4.4 / v0.14.25 (Oct 2026) ✅ active
MCP 2026-07-28 stateless spec + SDKs ✅ active, now foundational
Unsloth v2026.10.3 (Oct 8 2026) ✅ very active
Axolotl v0.20.0 (Sep 30 2026) ✅ active
mlx-lm / mlx (Apple) v0.32.x (Oct 1 2026) ✅ active
ComfyUI commits Oct 9 2026 ✅ very active
Piper TTS v1.8.0 (Sep 4 2026) ✅ active
lm-eval-harness v0.4.13 (Aug 31 2026) ✅ active (steady)
whisper.cpp commits Oct 9 2026 ✅ active
faster-whisper v1.2.1 (Oct 31 2025) ⚠️ stable, slow cadence
Aider v0.86.2 (Feb 12 2026); last commit May 2026 ⚠️ mature, slowed
AutoGen last PyPI upload Sep 30 2025 ⚠️ slowing — verify
Milvus (PyPI) v2.3.9 (Nov 2024) ⚠️ stale on PyPI
Kokoro (base PyPI) v0.9.4 (Apr 2025) ⚠️ use kokoro-onnx instead

Bottom line. The 2026 local stack is coherent because OpenAI-compatible serving is universal: pick vLLM for serving, LlamaIndex/CrewAI (backed by MCP) for agents, Qwen3-Embedding + reranker + Qdrant for RAG, Unsloth for 24GB fine-tuning, lm-eval-harness for eval, whisper.cpp + Kokoro/Piper for speech, and ComfyUI + FLUX for images — all wired to one local base URL. The projects to treat with caution are AutoGen, Aider (slowing), faster-whisper (stable but slow-moving), and the Milvus/Kokoro PyPI packages (stale; use alternatives).

Sources