LocalAI

Drop-in OpenAI API replacement that runs locally.

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

Licence
Type
Self-hosted
GitHub stars
★ 50.7k
Last commit
December 2026
First release
2023
Hosted version
No

What is LocalAI?

LocalAI exposes an OpenAI-compatible API for text, image, audio and embedding models running on your own hardware, with or without a GPU. Apps written for the OpenAI API can switch by changing the base URL.

Key features

  • OpenAI-compatible API
  • LLMs, images, speech and embeddings
  • Runs on CPU or GPU
  • Model gallery

LocalAI as an open source alternative

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

Licence

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

LocalAI: FAQ

Is LocalAI open source?

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

Is LocalAI free?

The software is free to use and self-host.

What does LocalAI replace?

LocalAI is an open source alternative to ChatGPT.

Can I self-host LocalAI?

Yes. LocalAI is a server application you can install on your own server or VPS, usually with Docker.

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

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