Skip to content

LocalAI

Self-hosted server for running open text, image and speech models behind an OpenAI-style

Permissive (OSI) · MIT AI-native
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

86

Health

Thriving

Overview

Stars

50,521

Last commit

today

Nov 2026

Repository age

3 years

since Mar 2023

Latest version

v5.0.1

Nov 2026

Contributors

–

9 active in 90 days

Releases

24

last 12 months

Language

Go

LocalAI runs open models for chat, images, speech, video, music, embeddings and reranking on your own machines. Its API speaks the OpenAI and Anthropic formats, with ElevenLabs-compatible text to speech. It is written in Go and licensed MIT.

It runs on a laptop, a server, in a container or on Kubernetes. A distributed mode spreads models over several machines. No GPU is required, but NVIDIA, AMD, Intel, Apple Silicon, Vulkan and Jetson are supported. More than 80 backends are available, and each is its own image pulled only when a model needs it.

On top of the API you get a web interface with chats, saved agents, MCP servers, files and Projects. A desktop app exists for macOS and Linux.

It is an alternative to Ollama and LM Studio. Setup is heavier than Ollama's one-line model pull.

Who it's for

Teams hosting a shared AI server

It combines an OpenAI-compatible API with a web UI, agents and MCP support.

Skip if: You only want a simple local model runner on one laptop.

Developers needing text, image and speech from one API

One server covers many model types across more than 80 backends.

Skip if: You only use text models and want minimal setup.

Kubernetes or multi-machine operators

It runs in containers, on Kubernetes, and can distribute models across hosts.

Skip if: You have a single machine and prefer a desktop model browser.

The problem it solves

Running different open models for text, images and speech usually means several tools with different APIs. LocalAI puts them behind one OpenAI-compatible server on hardware you control.

Strengths

  • OpenAI and Anthropic API formats
  • More than 80 backends, each pulled only when needed
  • GPU images for NVIDIA, AMD, Intel and Vulkan
  • Distributed mode across several machines
  • MIT license

Trade-offs

  • No simple one-line model pull like Ollama
  • Heavier setup because of per-backend images
  • Team features such as users and quotas are in development builds
  • Less simple desktop model browser than LM Studio

LocalAI replaces

Self-host LocalAI

Self-hostable
Yes
Docker image
mudler/localai
Docker Compose
The repository ships a Compose file

Quick start

docker run -ti --name local-ai -p 8080:8080 localai/localai:latest

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Do I need a GPU?

No. It runs on CPU, though a GPU makes it faster.

Can I run it in Docker?

Yes. Run the localai/localai image and open port 8080.

Is it free?

Yes. It is MIT licensed.

Which platforms does it support?

Linux and macOS on Apple Silicon through the install script, plus containers. A desktop app covers macOS and Linux.

Other LM Studio alternatives

Compare all 5 LM Studio alternatives →

Similar tools in Local LLM runtimes

Rapid-MLX

Local LLM runtimes

Local LLM inference server for Apple Silicon Macs, built for coding agents

4.2k 445 today Thriving Apache-2.0

Replaces LM Studio

colibri

Local LLM runtimes

C inference engine that runs huge mixture-of-experts LLMs on ordinary hardware

53k 6.4k yesterday Thriving Apache-2.0

exo

Local LLM runtimes

Cluster software that pools your Macs and other devices to run large AI models locally

49k 3.6k 17 days ago Active Apache-2.0

Shimmy

Local LLM runtimes

Local GGUF inference server and CLI in Rust with an OpenAI-compatible API

6k 587 11 days ago Active Apache-2.0

llamafile

Local LLM runtimes

Run open LLMs locally from one executable file on Windows, macOS, Linux and BSD

27k 1.7k 18 days ago Active Apache-2.0

lemonade

Local LLM runtimes

Local AI server for chat, images, and speech on your own CPU, GPU, or AMD NPU

6.3k 574 today Thriving Apache-2.0