LocalAI is the free, Open Source OpenAI alternative
5M+
:bulb: Get help - โFAQโ ๐ญDiscussionsโ :speech_balloon: Discordโ :book: Documentation websiteโ
๐ป Quickstartโ ๐ผ๏ธ Modelsโ ๐ Roadmapโ ๐ฅฝ Demoโ ๐ Explorerโ ๐ซ Examplesโ
LocalAI is the free, Open Source OpenAI alternative. LocalAI act as a drop-in replacement REST API that's compatible with OpenAI (Elevenlabs, Anthropic... ) API specifications for local AI inferencing. It allows you to run LLMs, generate images, audio (and not only) locally or on-prem with consumer grade hardware, supporting multiple model families. Does not require GPU. It is created and maintained by Ettore Di Giacintoโ .
๐ LocalAI is now part of a comprehensive suite of AI tools designed to work together:
โ
|
โ LocalAGIโA powerful Local AI agent management platform that serves as a drop-in replacement for OpenAI's Responses API, enhanced with advanced agentic capabilities. |
โ
|
โ LocalRecallโA REST-ful API and knowledge base management system that provides persistent memory and storage capabilities for AI agents. |
| Talk Interface | Generate Audio |
|---|---|
![]() | ![]() |
| Models Overview | Generate Images |
|---|---|
![]() | ![]() |
| Chat Interface | Home |
|---|---|
![]() | ![]() |
| Login | Swarm |
|---|---|
![]() | ![]() |
Run the installer script:
curl https://localai.io/install.sh | sh
Or run with docker:
docker run -ti --name local-ai -p 8080:8080 localai/localai:latest-cpu
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-12
docker run -ti --name local-ai -p 8080:8080 localai/localai:latest
docker run -ti --name local-ai -p 8080:8080 localai/localai:latest-aio-cpu
To load models:
# From the model gallery (see available models with `local-ai models list`, in the WebUI from the model tab, or visiting https://models.localai.io)
local-ai run llama-3.2-1b-instruct:q4_k_m
# Start LocalAI with the phi-2 model directly from huggingface
local-ai run huggingface://TheBloke/phi-2-GGUF/phi-2.Q8_0.gguf
# Install and run a model from the Ollama OCI registry
local-ai run ollama://gemma:2b
# Run a model from a configuration file
local-ai run https://gist.githubusercontent.com/.../phi-2.yaml
# Install and run a model from a standard OCI registry (e.g., Docker Hub)
local-ai run oci://localai/phi-2:latest
For more information, see ๐ป Getting startedโ
Content type
Image
Digest
sha256:9f638b36bโฆ
Size
4 GB
Last updated
about 3 hours ago
docker pull localai/localai:sha-2bed6f6-gpu-hipblasPulls:
168,298
Jun 29 to Jul 5