LocalAI: the open-source AI engine
LocalAI is the open-source AI engine, created by Ettore Di Giacinto and maintained by the LocalAI team.
What it is · Main features · Getting started
What it is
LocalAI is the open-source AI engine. Ettore Di Giacinto created it, and the LocalAI team maintains it. In LocalAI, each backend wraps an engine such as llama.cpp, vLLM, whisper.cpp, stable-diffusion or MLX in its own image, pulled only when a model needs it. LocalAI's backends are separate and pulled on demand, so you install only what your model needs.
Core facts
Read by a script from the official API, not rewritten by a model.
- Repository
- https://github.com/mudler/LocalAI
- License
- MIT
- Languages
- Go
- Maintainer
- mudler
- Homepage
- https://localai.io
- Verified
Main features
LocalAI supports at least 60 backends, including
llama.cpp, vLLM, SGLang, transformers,whisper.cpp, diffusers, MLX and MLX-VLM.The Backend Gallery installs and removes backends on the fly via OCI images.
A handful of backends are native C/C++/GGML engines, with no Python at inference, developed and maintained by the LocalAI project itself.
vllm.cppis a from-scratch C++20 port of vLLM for text generation, covering paged KV cache, continuous batching, prefix caching, safetensors + GGUF loading and engine-enforced structured output, on CPU, CUDA, Metal and Vulkan.parakeet.cppis a C++/GGML port of NVIDIA NeMo Parakeet ASR (tdt/ctc/rnnt/hybrid), with cache-aware streaming transcription.Hardware acceleration is available for NVIDIA (CUDA 12/13), AMD (ROCm), Intel (oneAPI/SYCL), Apple Silicon (Metal), Vulkan and NVIDIA Jetson (L4T).
The project's hardware list is NVIDIA, AMD, Intel, Apple Silicon, Vulkan, or CPU-only.
The text generation feature uses
llama.cpp, transformers, vllm and more.The Realtime API is for speech-to-speech.
LocalAI has embeddings generation.
LocalAI has a Reranker API.
LocalAI has an OpenAI-compatible tools API.
LocalAI has voice activity detection with Silero-VAD.
LocalAI has an integrated WebUI.
Chats are conversations the server keeps, with saved agents, triggers, skills, files and a Telegram connector.
Distributed Mode provides horizontal scaling with PostgreSQL + NATS.
The multi-user features the project lists are API key auth, user quotas and role-based access.
Getting started
The macOS DMG is not signed by Apple.
The Containers section of the quickstart names Docker and podman, among others.
An existing container can be restarted with Docker's start command.
LocalAI automatically detects your GPU capabilities and downloads the appropriate backend.
To work with a running LocalAI server from the terminal, start the built-in agent from another shell.
The built-in agent answers questions, reads files and runs commands on the machine, and asks for approval of changes to state.
Inside a session, one slash command lists installed models and another switches between them.
docker run -ti --name local-ai -p 8080:8080 localai/localai:latest# CUDA 13
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-13
# CUDA 12
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-12
# NVIDIA Jetson ARM64 (CUDA 12, for AGX Orin and similar)
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-nvidia-l4t-arm64
# NVIDIA Jetson ARM64 (CUDA 13, for DGX Spark)
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-nvidia-l4t-arm64-cuda-13docker run -ti --name local-ai -p 8080:8080 --device=/dev/kfd --device=/dev/dri --group-add=video localai/localai:latest-gpu-hipblasdocker run -ti --name local-ai -p 8080:8080 --device=/dev/dri/card1 --device=/dev/dri/renderD128 localai/localai:latest-gpu-intel# From the model gallery (see available models with `local-ai models list` or at https://models.localai.io)
local-ai run llama-3.2-1b-instruct:q4_k_m
# From Huggingface
local-ai run huggingface://TheBloke/phi-2-GGUF/phi-2.Q8_0.gguf
# From the Ollama OCI registry
local-ai run ollama://gemma:2b
# From a YAML config
local-ai run https://gist.githubusercontent.com/.../phi-2.yaml
# From a standard OCI registry (e.g., Docker Hub)
local-ai run oci://localai/phi-2:latest# Terminal 1
local-ai run llama-3.2-1b-instruct:q4_k_m
# Terminal 2
local-ai chat --model llama-3.2-1b-instruct:q4_k_mSources
This page is written from the official sources below. Open them to check the original text.
- GitHub READMEhttps://github.com/mudler/LocalAIFetched
Verified ·
This page is written by AI from the official sources above and checked automatically. This site has not tested it. Found a mistake? Tell us.
