llama.cppLLM inference engine in C/C++ for local and cloud hardware
OllamaRun open AI models locally or in the cloud
llama.cpp vs Ollama
How llama.cpp and Ollama compare on popularity, activity, license and platforms: two open-source AI Interaction & Interfaces projects, both alternatives to OpenAI API.
At a glance
- Ollama has more GitHub stars (188.3k vs 136.5k).
- Both are actively maintained (last commits today and 2 days ago).
- Both use the MIT license.
- Ollama can be self-hosted; llama.cpp is not listed as self-hostable.
Side by side
| llama.cpp | Ollama | |
|---|---|---|
| GitHub stars | ★ 136,491 | ★ 188,303 |
| Forks | 26,180 | 19,234 |
| Last commit | today | 2 days ago |
| Latest version | v1.1.0 | v0.40.18 |
| Repository started | March 2023 | June 2023 |
| License | MIT · permissive | MIT · permissive |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | Linux, macOS, Windows, Android, Docker, CLI, Web | macOS, Windows, Linux, Docker, CLI |
| Main language | C++ | Go |
| Alternative to | OpenAI API | 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
Ollama
Ollama runs open language models such as Gemma, Qwen, DeepSeek and gpt-oss on macOS, Windows and Linux, locally or in the cloud. It offers a CLI, a REST API, and Python and JavaScript libraries.
Key features
- Run open models locally or in the cloud
- Command-line model chat and management
- REST API for running and managing models
- Python and JavaScript libraries
- Official Docker image
- Modelfile for customizing and importing models