Back to services

LocalAI

LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.

View alternatives to LocalAI
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

LocalAI is an open-source AI engine with the tagline "Make AI run on every machine." A single unified runtime handles text, speech, vision, images, video, 3D, and agent tasks. You can start on the laptop you already have, keep all your data on your own hardware, and scale out to a multi-machine GPU cluster when you need more compute. The project has been in development since March 2023, is released under the MIT License, and is hosted on GitHub (mudler/LocalAI).

Key Features

Compatible with major APIs, works as a drop-in replacement

  • The main program is a single binary that exposes an OpenAI-compatible API. It also supports the Anthropic, Ollama, and ElevenLabs APIs, as well as a WebRTC-based Realtime interface.
  • For most existing clients and tools, you only need to change the API address to point to LocalAI. No other configuration changes are required.

Switchable backend engines

  • Under the hood you can use llama.cpp, vLLM, SGLang, MLX, and other engines. Switching takes a single line in the model configuration, and clients won't notice any difference.
  • The core program is small. A backend is downloaded on demand only when a model needs that engine, which keeps the base installation lightweight.
  • The team has also built a set of native C/C++ engines, such as parakeet.cpp, moss-tts.cpp, depth-anything.cpp, and rf-detr.cpp, to gradually replace the heavier Python backends.

Multimodal capabilities

  • Reason: language models, tool calling, structured output.
  • Listen: real-time speech transcription, speaker diarization, and sound event recognition (covering 527 sound classes).
  • Speak: speech synthesis and voice cloning, supporting many languages.
  • See: object detection, locating objects from natural-language descriptions, depth estimation, 3D reconstruction, and face and voiceprint recognition (including liveness detection).
  • Create: generate images, video, music, and sound effects.
  • Act: agents, MCP, Skills, RAG, and interactive tools.
  • It also provides speech enhancement features such as echo cancellation and noise reduction, as well as a filter that detects and redacts private information such as names, addresses, and card numbers locally.

Built-in agent

  • Run local-ai chat to talk to the built-in agent. It can execute shell commands under an approval mechanism that you configure, delegate tasks to sub-agents, and load MCP servers, plugins, and Skills. According to the official website, Claude Code plugins can be loaded directly.
  • The agent is also available as a standalone version called nib: a single Go executable of about 20 MB with no runtime dependencies.

Distributed clusters

  • Start a worker on any machine with a single command, and it automatically joins the resource pool.
  • Supports allocating requests by available VRAM, prefix-cache affinity routing, autoscaling, P2P, NATS, and federated deployments.
  • When a node fails, in-flight requests are rescheduled, so clients are unaffected.
  • Also supports multi-user authentication and per-user quotas.

Model gallery and APEX quantization

  • The built-in model gallery includes more than 1,000 models that can be installed with one click, with no manual conversion needed.
  • The team's own APEX quantization scheme assigns different precision to each tensor and each layer. In an example from the official website, a 35B MoE model shrinks from 64.6 GB to 12.2 GB, generation speed roughly doubles, and quality loss is small.
  • APEX produces standard GGUF files, which upstream llama.cpp can load without any patches.

Target Users

  • Individuals and companies that want to run AI locally or in a private environment and don't want to hand their data to cloud services
  • Developers who want to replace existing OpenAI integrations with a self-hosted solution
  • Operations teams that need to serve inference on Kubernetes or across multiple GPU servers
  • Hobbyists building local multimodal applications such as voice assistants, smart homes, and security vision

Core Strengths

  • No GPU required: Every feature ships with a CPU implementation that is tested in CI, not a degraded fallback. A GPU makes things faster.
  • Wide hardware support: x86_64, ARM64, NVIDIA CUDA, AMD ROCm, Intel SYCL, Apple Metal, Vulkan, Jetson, Raspberry Pi.
  • Rich ecosystem integrations: Projects including AnythingLLM, LangChain, LlamaIndex, Open WebUI, Dify, LibreChat, RAGFlow, Flowise, Continue, K8sGPT, Nextcloud, and Frigate already support connecting to LocalAI.
  • Active community: About 50,000 GitHub stars, more than 200 contributors, frequent new releases, and a README available in several languages, including Chinese.

Installation and Deployment

You can use the one-line install script, Docker/Podman containers, the macOS DMG installer, the Linux binary, or the Kubernetes Helm chart, or build from source.

curl -sSL https://localai.io/install.sh | sh
local-ai run qwen3.5-35b-a3b-apex

After startup, the API listens on http://localhost:8080 by default. The first time you run a model, the required backend is downloaded automatically.

Technical Requirements

  • Runs on an ordinary CPU; a GPU is optional
  • Supports Linux, macOS, and Docker or Kubernetes environments
  • Memory and VRAM requirements depend on the size of the model you use