llama.cpp

The inference engine behind most local LLM apps.

Last reviewed 5 December 2026 · MIT · AI & LLM Tools

Licence
Type
Developer tool
GitHub stars
★ 137k
Last commit
December 2026
First release
2023
Hosted version
No

What is llama.cpp?

llama.cpp runs large language models efficiently on CPUs, Apple Silicon and GPUs. It defines the GGUF model format and powers many local AI apps, and it includes its own web UI and OpenAI-compatible server.

Key features

  • GGUF quantised models
  • CPU, Metal, CUDA, Vulkan
  • Built-in server and web UI
  • Basis for many local AI apps

llama.cpp as an open source alternative

llama.cpp is listed on our comparison page as an open source replacement for ChatGPT. Compare it with the other options:

Licence

llama.cpp is released under the MIT licence, a permissive licence. More MIT software →

llama.cpp: FAQ

Is llama.cpp open source?

Yes. llama.cpp is released under the MIT licence (permissive), and its source code is public.

Is llama.cpp free?

The software is free to use.

What does llama.cpp replace?

llama.cpp is an open source alternative to ChatGPT.

Can I self-host llama.cpp?

llama.cpp runs on your own machine or in your own development environment.

Similar open source projects

Codex CLI

Apache-2.0137k

OpenAI's open source coding agent for the terminal.

Replaces Claude Code, Cursor

Developer toolAI & LLM Tools

OpenHands

MIT94.9k

Open source autonomous AI software engineer.

Replaces Devin, Claude Code

Self-hostedCloud option
Self-hostedAI & LLM Tools

More MIT projects

Excalidraw

MIT137k

Hand-drawn style whiteboard for sketches and diagrams.

Replaces Miro, Lucidchart

Self-hostedCloud option
Self-hostedDesign & Whiteboards

OpenCut

MIT99.9k

Open source CapCut alternative in the browser.

Replaces CapCut

Self-hostedCloud option
Self-hostedVideo & Streaming
Browse 350+ open source alternativesSearch by product, category or licence