qmetrics.net
llama.cppLLM inference engine in C/C++ for local and cloud hardware LocalAISelf-hosted OpenAI-compatible server for running open AI models locally

llama.cpp vs LocalAI

How llama.cpp and LocalAI compare on popularity, activity, license and platforms: two open-source AI Interaction & Interfaces projects, both alternatives to OpenAI API.

At a glance

Side by side

llama.cppLocalAI
GitHub stars★ 136,491★ 50,586
Forks26,1804,654
Last committodaytoday
Latest versionv1.1.0v5.0.1
Repository startedMarch 2023March 2023
LicenseMIT · permissiveMIT · permissive
Self-hostedDesktop/CLI appYes
PlatformsLinux, macOS, Windows, Android, Docker, CLI, WebLinux, macOS, Windows, Docker, CLI, Web
Main languageC++Go
Alternative toOpenAI APIAnthropic API, ChatGPT, Gemini, OpenAI API

Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 2026.

llama.cpp

llama.cpp runs large language models and multimodal models locally or in the cloud with minimal setup. It includes a CLI, an OpenAI-compatible server with a built-in chat app, and a C library API.

Key features

  • Local and cloud LLM inference on many hardware types
  • Command-line chat tool with vision model support
  • Built-in server with REST API and browser chat app
  • OpenAI- and Anthropic-compatible endpoints
  • Streaming, tool calling and structured output
  • GBNF grammars for constrained output

LocalAI

LocalAI runs open models for chat, images, speech, video and music on your own hardware, with OpenAI- and Anthropic-compatible APIs. It works on CPU or GPU and adds team chats, files, agents and add-ons.

Key features

  • OpenAI, Anthropic and ElevenLabs compatible API
  • Text, vision, speech, image, video and music models
  • More than 80 backends
  • Model and backend gallery
  • Agents with tools, MCP and skills
  • Projects, files and Knowledge collections

More comparisons

Report a mistake on this page