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
- llama.cpp has more GitHub stars (136.5k vs 50.6k, about 3× as many).
- Both are actively maintained (last commits today and today).
- Both use the MIT license.
- LocalAI can be self-hosted; llama.cpp is not listed as self-hostable.
Side by side
| llama.cpp | LocalAI | |
|---|---|---|
| GitHub stars | ★ 136,491 | ★ 50,586 |
| Forks | 26,180 | 4,654 |
| Last commit | today | today |
| Latest version | v1.1.0 | v5.0.1 |
| Repository started | March 2023 | March 2023 |
| License | MIT · permissive | MIT · permissive |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | Linux, macOS, Windows, Android, Docker, CLI, Web | Linux, macOS, Windows, Docker, CLI, Web |
| Main language | C++ | Go |
| Alternative to | OpenAI API | Anthropic 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