Ad
Learn more

LocalAI

AI

Run LLMs, speech, image generation, and autonomous agents on your own hardware with an OpenAI-compatible API and 60+ swappable backends.

Open Source Alternative to:

Screenshot of the LocalAI website

 
50,249stars+799(+1.6%)

Last 30 days

  • Last commit

    9 hours ago
  • Repository age

    4 years
  • Version

    v4.12.1
  • License

    MIT
  • Self-hosted

    Yes
  • Repository

    mudler/localai
Self-host in 3 steps
  1. 1

    Start a KVM 2 VPS on Hostinger

    Recommended plan for one-click apps.

  2. 2

    Apply code

    10% off any 12-month plan at checkout.

  3. 3

    Deploy LocalAI

    With Hostinger's one-click installer.

Host with Hostinger

LocalAI is a self-hosted runtime that lets you run virtually any AI workload on hardware you control. Text generation, vision, speech recognition, text-to-speech, image and video generation, embeddings, reranking, and autonomous agents all run behind a single OpenAI-compatible API. If you're already using OpenAI or Anthropic APIs, switching the endpoint is often all it takes.

The core design is deliberately lean. Backends aren't bundled upfront. They're pulled on demand when a model needs them, each one wrapping a best-in-class engine like llama.cpp, vLLM, SGLang, MLX, or whisper.cpp as an isolated service. You can install, update, or remove individual backends without touching the rest of the stack. Hardware mixing is first-class: NVIDIA, AMD, Intel, Apple Silicon, Vulkan, and Jetson all work, and you can route across them in a single cluster.

For cases where existing engines are too heavy or too closed, the LocalAI team builds its own:

  • parakeet.cpp for streaming multilingual speech recognition
  • vibevoice.cpp for long-form TTS and ASR
  • voice-detect.cpp for speaker recognition and anti-spoofing
  • face-detect.cpp for vision-based identity analysis
  • privacy-filter.cpp for native PII detection and redaction
  • apex-quant for MoE-aware GGUF quantization

It scales from a CPU-only laptop to a distributed GPU cluster without changing how you interact with it. A single workstation setup can grow into a team server with API keys, roles, quotas, and usage tracking, then further into a multi-worker cluster with model routing and device-spanning inference. Local model runners rarely cover this range in one package.

Agents are built in, not bolted on. You can create agents with MCP tools, memory, RAG, and citations directly from the UI or API. Realtime voice experiences are supported through WebRTC with interruptible STT, LLM output, and TTS pipelines, similar to what LiveKit handles for general media but focused on AI interaction. Privacy controls go beyond keeping data local: PII analysis, redaction middleware, and audit logging are available at the infrastructure level.

The API surface is compatible with OpenAI, Anthropic, Ollama, and ElevenLabs conventions, so existing tooling like LibreChat or Open WebUI connects without custom adapters.

Share:

50,249stars+799(+1.6%)

Last 30 days

  • Last commit

    9 hours ago
  • Repository age

    4 years
  • Version

    v4.12.1
  • License

    MIT
  • Self-hosted

    Yes
  • Repository

    mudler/localai
Self-host in 3 steps
  1. 1

    Start a KVM 2 VPS on Hostinger

    Recommended plan for one-click apps.

  2. 2

    Apply code

    10% off any 12-month plan at checkout.

  3. 3

    Deploy LocalAI

    With Hostinger's one-click installer.

Host with Hostinger

 
Subscribe to our newsletter

Every Sunday we deconstruct one proprietary app and pick the best open source alternatives worth switching to.

Similar open source projects

  • Stars

  • Last commit

  • License

  • Stars

  • Last commit

  • License

  • Stars

  • Last commit

  • License