localai/localai

Sponsored OSS

By localai

โ€ขUpdated about 3 hours ago

LocalAI is the free, Open Source OpenAI alternative

Image
Machine learning & AI
89

5M+

localai/localai repository overview




LocalAI forks โ  LocalAI stars โ  LocalAI pull-requests โ  โ 

LocalAI Docker hub โ  LocalAI Quay.io โ 

Follow LocalAI_API โ  Join LocalAI Discord Community โ 

mudler%2FLocalAI | Trendshift

testsBuild and Releasebuild container imagesBump dependenciesArtifact Hub

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โ .

โ ๐Ÿ“š๐Ÿ†• Local Stack Family

๐Ÿ†• LocalAI is now part of a comprehensive suite of AI tools designed to work together:

LocalAGI Logo โ 
โ 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 Logo โ 
โ LocalRecallโ 

A REST-ful API and knowledge base management system that provides persistent memory and storage capabilities for AI agents.

โ Screenshots

Talk InterfaceGenerate Audio
Screenshot 2025-03-31 at 12-01-36 LocalAI - TalkScreenshot 2025-03-31 at 12-01-29 LocalAI - Generate audio with voice-en-us-ryan-low
Models OverviewGenerate Images
Screenshot 2025-03-31 at 12-01-20 LocalAI - ModelsScreenshot 2025-03-31 at 12-31-41 LocalAI - Generate images with flux 1-dev
Chat InterfaceHome
Screenshot 2025-03-31 at 11-57-44 LocalAI - Chat with localai-functioncall-qwen2 5-7b-v0 5Screenshot 2025-03-31 at 11-57-23 LocalAI API - c2a39e3 (c2a39e3639227cfd94ffffe9f5691239acc275a8)
LoginSwarm
Screenshot 2025-03-31 at 12-09-59 Screenshot 2025-03-31 at 12-10-39 LocalAI - P2P dashboard

โ ๐Ÿ’ป Quickstart

Run the installer script:

curl https://localai.io/install.sh | sh

Or run with docker:

โ CPU only image:
docker run -ti --name local-ai -p 8080:8080 localai/localai:latest-cpu
โ Nvidia GPU:
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-12
โ CPU and GPU image (bigger size):
docker run -ti --name local-ai -p 8080:8080 localai/localai:latest
โ AIO images (it will pre-download a set of models ready for use, see https://localai.io/basics/container/โ )
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โ 

Tag summary

Content type

Image

Digest

sha256:9f638b36bโ€ฆ

Size

4 GB

Last updated

about 3 hours ago

docker pull localai/localai:sha-2bed6f6-gpu-hipblas

This week's pulls

Pulls:

168,298

Jun 29 to Jul 5