What is LocalAI?
LocalAI is a server you run on your own machine that speaks the OpenAI and Anthropic API formats, so applications written for those APIs can point at it instead. Behind the API sit more than 80 backends, among them llama.cpp, vLLM, MLX and whisper.cpp, covering chat, vision, speech to text, text to speech, image and video generation, music, embeddings and reranking. Each backend is a separate image, downloaded only when a model needs it.
It runs on CPU alone, and on NVIDIA, AMD, Intel, Apple Silicon, Vulkan and Jetson hardware. Models come from its own gallery of about 2,300 entries, from Hugging Face, or from Ollama and other OCI registries.
Version 5.0, released on 18 November 2026, wraps the server in a workspace: chats that keep running on the server, Projects, a Files page, team accounts and sharing, a desktop app for macOS and Linux, and an add-on library that includes Office documents and a Python sandbox.
Is LocalAI worth it?
LocalAI puts chat, speech, image, video and embedding models behind one API, and that breadth comes with a large surface to secure. The repository has about 50,600 GitHub stars, and v5.0.1 on 20 November 2026 followed 5.0 by two days. The 5.0 notes count 130 merged pull requests and 1,432 commits since 4.12.1 in late October.
A script that calls OpenAI for chat, Whisper-style transcription, text to speech and image generation can be repointed at one LocalAI address, and the team has written 18 backends of its own in C, C++ and GGML, so many speech and vision models run without Python. The README's quick-start model, a small Gemma 4 build, is a 4.3 GB download meant for CPUs.
Out of the box the server binds to port 8080 on every interface, and the authentication docs state that with no API key or user accounts configured, requests are not restricted. Two SSRF flaws have hit the model install endpoint: CVE-2026-59707, rated 9.2 under CVSS 4.0, let unauthenticated callers make the server fetch internal URLs in versions up to 4.3.1, and CVE-2026-114493 bypassed that fix through redirects in 4.6.0 to 4.11.0; v4.12.1 now checks every redirect hop. Since 4.9.0 in August, turning on authentication protects every route unless it is on an explicit public list, which closed a bypass through unprefixed API aliases. Legacy API keys grant full admin rights, and add-ons run as the same operating system user as LocalAI, so only the Sandbox add-on isolates what it executes. SECURITY.md still names 3.x as the supported series.
Against Ollama, LocalAI asks for more setup and offers speech, images and an Anthropic-format API in return. Against vLLM it is a generalist: a single GPU serving many concurrent chat users is better served by vLLM itself, which LocalAI can wrap as one of its backends.
Where it earns its place
A developer at a small agency with an app built on the OpenAI SDK
Run chat, transcription and text to speech offline for a client who forbids cloud APIs
Run the Docker Compose file, install a chat model, a Whisper-class model and a TTS model from the gallery, and change the SDK's base URL to the LocalAI server. Set LOCALAI_API_KEY before the client's network can reach port 8080. Licence cost is nil; a CPU-only server works for light use.
An IT lead at a 20-person design studio
Give staff a private chat assistant with shared files and Office document output
Turn on user accounts with LOCALAI_AUTH=true, or OIDC, then use 5.0's team sharing, Projects and the Simple Office add-on, which reads and writes Word, Excel and PowerPoint files. Add-ons run as the server's user, so install only those you trust.
A home-lab user with a Home Assistant setup and an old PC with no GPU
Add local speech recognition and spoken replies without paying for cloud APIs
Install LocalAI with the script, add a speech to text model and a TTS model from the gallery, and connect the Home Assistant add-on. CPU-only works for small speech models; keep the server on the home network with authentication on.
Before you commit
- Setup
- curl -sSL https://localai.io/install.sh | sh installs the binary on Linux or Apple Silicon and local-ai starts it; Docker Compose and GPU-specific images are documented, and the desktop app covers macOS and Linux with Windows experimental. v5.0.1 added native Windows support for the server and the llama.cpp backend. The web UI is at localhost:8080.
- Integrations
- OpenAI and Anthropic API formats, ElevenLabs-compatible speech and sound endpoints, the OpenAI Realtime API, an MCP client and server, models from Hugging Face, Ollama and OCI registries, a distributed mode on PostgreSQL and NATS, and add-ons for Slack, Discord, Gmail, Google Drive, GitHub and Home Assistant.
- Data and privacy
- Models, files and chats stay on your machines. Authentication is off until you set LOCALAI_API_KEY, LOCALAI_AUTH=true or a GitHub or OIDC client ID; API keys carry full admin rights. The Sandbox add-on has no network by default and ran on Linux only in 5.0. The README does not mention telemetry.
- Cost at scale
- No licence cost at any size; the bill is hardware and power. CPU-only works for small models, while larger chat models and image or video generation need a supported GPU. Spreading models across machines uses the distributed or P2P modes.
- Limits
- 121 open issues. The project is led by Ettore Di Giacinto with one other named maintainer, and an automated account, mudler-agent, opened many of the pull requests in v5.0.1. Large chat models are slow on CPU, and the Office add-on's PDF writer takes Latin-1 text only.
What’s good
- OpenAI- and Anthropic-compatible API for text, speech, images, video and embeddings in one server
- Runs on CPU only, or on NVIDIA, AMD, Intel, Apple Silicon and Vulkan GPUs
- More than 80 backends, pulled on demand, with a gallery of about 2,300 models
- MIT licence with no paid tier held back
What’s not
- No authentication until you configure it, on a port bound to all interfaces
- Two critical-rated SSRF CVEs in the model install endpoint during 2026
- Add-ons run with the server's own operating system permissions
- Fast release pace with a security policy that still names 3.x
Best for
Developers and small teams who want one self-hosted, OpenAI-compatible endpoint for chat, speech and images, including on machines without a GPU.
LocalAI alternatives
Where it fits in the AI stack
LocalAI: common questions
- Is LocalAI worth it?
- One local endpoint for chat, speech and images that also runs on a GPU-less box, provided you switch on authentication before anyone else can reach port 8080. We rate it 4.1 out of 5.
- How much does LocalAI cost?
- Free and open source under the MIT licence, with no paid edition or hosted service. The LocalAI name, logo and mascot are excluded from the licence. The project takes GitHub Sponsors donations.
- What are the downsides of LocalAI?
- No authentication until you configure it, on a port bound to all interfaces; two critical-rated SSRF CVEs in the model install endpoint during 2026; add-ons run with the server's own operating system permissions; fast release pace with a security policy that still names 3.x.
- Who is LocalAI best for?
- Developers and small teams who want one self-hosted, OpenAI-compatible endpoint for chat, speech and images, including on machines without a GPU.
- How much does LocalAI cost for a team or in production?
- No licence cost at any size; the bill is hardware and power. CPU-only works for small models, while larger chat models and image or video generation need a supported GPU. Spreading models across machines uses the distributed or P2P modes.
- Is LocalAI safe for company data?
- Models, files and chats stay on your machines. Authentication is off until you set LOCALAI_API_KEY, LOCALAI_AUTH=true or a GitHub or OIDC client ID; API keys carry full admin rights. The Sandbox add-on has no network by default and ran on Linux only in 5.0. The README does not mention telemetry.
- What are the best LocalAI alternatives?
- The closest alternatives we have reviewed are Ollama, llama.cpp, vLLM, llamafile and Jan.
Answers checked Nov 28, 2026.