What do you want to do?
3 use cases
-
Self-host an OpenAI-compatible API on your own server
Run LocalAI in Docker, load a model and point your existing OpenAI client code at it.
View prompt
Set up mudler/LocalAI in Docker on this machine (GPU image if an NVIDIA GPU is present, CPU image otherwise), load a small instruct model, and change <app>'s OpenAI client to use it. Run one test request and report latency.
-
Chat with local models from the terminal
Run a model in one terminal and chat with it in another, switching models inside the session.
- REPO
mudler/LocalAI - Software and DevOps
- Beginner
View prompt
Using mudler/LocalAI, run two different small models, chat with each using local-ai chat on the same three questions, run local-ai benchmark, and recommend which model to keep for <use>.
- REPO
-
Run any model from Hugging Face, Ollama or an OCI registry
Load models straight from Hugging Face, Ollama or OCI references with one command.
- REPO
mudler/LocalAI - Software and DevOps
- Intermediate
View prompt
With mudler/LocalAI, load <model> from <Hugging Face or Ollama>, confirm it appears in local-ai models list, and call it through the OpenAI-compatible endpoint with a test prompt.
- REPO
Quick start with LocalAI
- Check you have what it needs: Docker or Podman, or the macOS app (not signed by Apple); Optional GPU: NVIDIA, AMD, Intel, Apple Silicon or Vulkan; CPU-only works; Disk space for the models you pull.
- Open mudler/LocalAI on GitHub and read the README and license.
- Start the CPU image:
docker run -ti --name local-ai -p 8080:8080 localai/localai:latest - Or with an NVIDIA GPU:
docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-12 - Load a model, for example
local-ai run llama-3.2-1b-instruct:q4_k_m - Point your app's OpenAI base URL at http://localhost:8080
These steps come from our top use case, Self-host an OpenAI-compatible API on your own server, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mudler/LocalAI
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeLocalAI alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forDevelopers and teams who want a private, self-hosted replacement for cloud AI APIs that existing OpenAI or Anthropic clients can talk to.
- Why it is hot50k stars, picked up by one AI source we track
- LanguageGo
- Sourcegithub.com/mudler/LocalAI · Back to Hot repos
Requirements
- Docker or Podman, or the macOS app (not signed by Apple)
- Optional GPU: NVIDIA, AMD, Intel, Apple Silicon or Vulkan; CPU-only works
- Disk space for the models you pull
Add this badge to your README
Maintain LocalAI? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/mudler-localai/?utm_source=github&utm_medium=badge&utm_campaign=mudler-LocalAI)
HTML
<a href="https://dedupedai.com/use-cases/mudler-localai/?utm_source=github&utm_medium=badge&utm_campaign=mudler-LocalAI"><img src="https://dedupedai.com/badge/mudler/LocalAI.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about LocalAI
What is LocalAI?
LocalAI is an open-source AI engine that runs LLMs, vision, voice, image and video models on any hardware, with no GPU required. Each backend (llama.cpp, vLLM, whisper.cpp, stable-diffusion, MLX and more) is pulled only when a model needs it, and every backend sits behind drop-in OpenAI, Anthropic and ElevenLabs compatible APIs, with multi-user auth, quotas and built-in agents with tools, RAG and MCP. It is an open-source project on GitHub: https://github.com/mudler/LocalAI.
How do I use LocalAI?
Start the CPU image: docker run -ti --name local-ai -p 8080:8080 localai/localai:latest; then Or with an NVIDIA GPU: docker run -ti --name local-ai -p 8080:8080 --gpus all localai/localai:latest-gpu-nvidia-cuda-12; load a model, for example local-ai run llama-3.2-1b-instruct:q4_k_m. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is LocalAI for?
Developers and teams who want a private, self-hosted replacement for cloud AI APIs that existing OpenAI or Anthropic clients can talk to.
What can I do with LocalAI?
3 use cases so far, for example: Self-host an OpenAI-compatible API on your own server; Chat with local models from the terminal; Run any model from Hugging Face, Ollama or an OCI registry. Each has steps and a copy-paste agent prompt.
What do I need to run LocalAI?
Docker or Podman, or the macOS app (not signed by Apple); Optional GPU: NVIDIA, AMD, Intel, Apple Silicon or Vulkan; CPU-only works; Disk space for the models you pull.
What are alternatives to LocalAI?
Other hot AI repos in Software and DevOps: Deep Infer, Harness2, Orca, Opencode, Graphify.
Is LocalAI safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.