LocalAI v5.1.0 Released: Concurrent Requests and P2P Overhaul

- 1. At a Glance
- 2. Overview
- 3. Breaking Changes and Deprecations
- 4. Key Changes
- 4.1. Concurrent Request Processing and Prompt Caching with llama.cpp
- 4.2. Android Client Support and Connection Management via libp2p
- 4.3. Automated Execution via Event Triggers
- 4.4. Incognito Mode for Web Chat (Privacy Controls)
- 4.5. Kubernetes Cluster Inspection and Operation
- 4.6. Skill Introduction via Plugins
- 4.7. Server-Driven Updates
- 5. Supported Models and Hardware
- 6. How to Get It
- 7. Related Articles
- 8. What to Read Next
- 9. Sources
At a Glance
| Item | Value |
|---|---|
| Repository | mudler/LocalAI |
| Version | v5.1.0 |
| Published | 2026-11-29 |
| License | MIT |
| Source type | Primary source (the publisher itself) |
Values determined by this site’s code when the information was collected. Dates are JST.
Overview
LocalAI version 5.1.0, an open-source AI engine, has been released. LocalAI is a tool written in Go (MIT license) that allows users to run generative AI models—such as LLMs, vision, audio, image, and video—locally on various hardware, with or without a GPU.
This version introduces efficient scheduling for multiple simultaneous requests using a shared KV cache in the llama.cpp backend, along with Paged Serving and automatic prompt caching features. These additions aim to improve throughput and time-to-first-token generation speeds when processing multiple chat sessions concurrently.
Breaking Changes and Deprecations
In LocalAI v5.1.0, changes that break backward compatibility have been made regarding the P2P network, distributed clusters, and the model configuration API. Before updating, it is necessary to delete old configurations and check the scope of impact.
| Feature / API | Old Version Specification | v5.1.0 and Later Specification |
|---|---|---|
| P2P Network | Uses a single shared token (edgevpn) | Changed to a libp2p-based individual pairing and invitation method |
| Distributed Cluster | Worker authentication via shared registration token | Renewed with individual token authentication and a new backend update protocol |
| Model Configuration API | POST /api/models/config/{id} was executable |
Returns a 410 Gone status code |
Who is affected This affects users who have been utilizing P2P connections with traditional shared tokens, operators of distributed clusters where frontend and worker versions are mixed, and developers using clients that directly call the model configuration API (POST /api/models/config/{id}). In P2P environments, existing old settings must be deleted and re-paired, while in distributed clusters, the frontend and workers must be updated simultaneously.
Key Changes
Concurrent Request Processing and Prompt Caching with llama.cpp
In the llama.cpp backend, requests can now be scheduled using a shared KV cache when multiple slots are specified. Because long prompts are processed in chunks, parallel processing is possible without disrupting existing chats during token generation.
Additionally, a feature has been added to automatically reuse the cache of previously processed prompts when multiple chats share a long system prompt. If you wish to disable prompt sharing among active slots, specify slot_attach:false in the settings. From the “Runtime tuning" screen in the model editor, you can select parallel settings for unified memory, discrete GPUs, or CPUs, as well as drafting modes such as MTP and n-gram.
Android Client Support and Connection Management via libp2p
Experimental support for an official Android app has been introduced, allowing users to connect from Android devices to the LocalAI server’s Web UI. Connection can be established by entering a URL or scanning a pairing invitation QR code, while the models themselves run on the server side.
Alongside this, the P2P layer has been overhauled to the libp2p foundation. Because one-time invitations are issued per machine for individual pairing, it is possible to revoke connection permissions for specific nodes only. Furthermore, WebSocket and PostgreSQL-supported transports can now be selected as communication carriers for distributed mode.
Automated Execution via Event Triggers
A feature to automatically execute tasks triggered by calendar changes or Webhooks has been implemented. For example, it is possible to have reminders follow schedule changes or cancel tasks when events are deleted. You can specify the recipient for generated reports, with a fallback to the Inbox if delivery fails.
Incognito Mode for Web Chat (Privacy Controls)
Control features have been added to Web chats to limit the saving of conversation history and long-term memory. “Memory-off" disables reading and writing of long-term memory, while “Zero-retention" stops the persistence of conversation history itself (only usage counters are recorded). Administrators can also disable or restrict this feature.
Kubernetes Cluster Inspection and Operation
Through the Kubernetes addon, users can now check cluster workloads, retrieve logs, and check events directly from the chat interface. Write operations are off by default unless enabled by an administrator, and dry-run diff displays during apply and patch executions are also supported. Additionally, addon libraries can now be fetched from OCI artifacts, including private registries.
Skill Introduction via Plugins
Claude Code-format plugins can now be installed from the marketplace to use skills, slash commands, and HTTP MCP connectors within chats. Note that execution of agents, hooks, and stdio MCP connectors defined by plugins is not supported in this release.
Server-Driven Updates
Backend, gallery model, and add-on update processing is now managed as a single server-owned execution process (upgrade run). Even if a user leaves the Web UI page or closes the browser, update processing is not interrupted, and progress can be checked later.
Supported Models and Hardware
LocalAI v5.1.0 adds support for new model architectures, inference engines, and dedicated backends, further broadening the choices of models that can be run locally.
Added Engines and Gallery Models
New engines to power Tencent Hy4-Flash and Inkling have been added to the Strata components. Additionally, the official model gallery has been updated with the following new models:
- Inkling 2 Mini
- Qwen3.8-Flash-Next v3.1 build
- Oruk Fourier 2B (for the audio processing engine audio-cpp)
Introduction of Dedicated Backend olala
A dedicated backend named “olala" has been added for loading and running Olala v1.0 mini 7A1B GGUF format models. Using this backend enables the conversion and inference of GGUF models on systems including Linux ARM64 environments.
Disk-Loading Backend Colibri (Experimental)
To allow testing of large Mixture-of-Experts (MoE) models that exceed main memory (RAM) capacity, the experimental backend “Colibri" has been introduced.
Colibri keeps only dense weights in RAM while performing inference by reading the weights of each expert directly from disk. This makes it possible to execute inference for GGUF and other formats even with massive MoE models that do not fit in regular memory capacities. However, because disk access occurs, text generation speeds for large models may drop to a few tokens per second or less. It is intended for trying out models that exceed memory limits rather than for real-time response use cases.
How to Get It
New installations and version updates of LocalAI can be performed following procedures suited to your environment.
Using Shell Scripts (Linux and Apple Silicon macOS)
Run the script to fetch the binary tailored to your environment and start the server.
curl -sSL https://localai.io/install.sh | sh
local-ai
Running the local-ai command starts the server. To start directly specifying a model, run local-ai run <model-name>.
Using Docker Compose
To start and update in a containerized environment using Docker Compose, use the following commands.
New setup:
curl -fsSL https://localai.io/install/docker-compose.yaml -o docker-compose.yaml
docker compose up -d
Updating existing containers:
docker compose pull && docker compose up -d
Desktop App
For macOS, Linux, and Windows (experimental), desktop app installers (DMG, AppImage, Setup.exe) that automatically manage server startup/shutdown and Web UI display are provided on the releases page.
Related Articles
- LocalAI v5.0.1 Released: Native Windows Support and ROCm Enhancements
- LocalAI v5.0.0 Released: Major Overhaul of Chat and Agent Systems
- LocalAI v4.12.0 Released: Web UI Refresh and Streaming Audio
- LocalAI v4.11.0 Released with Failover and NeMo Audio Models
What to Read Next
- Follow this tool → LocalAI overview and release history (141 releases tracked)
- Other inference engines and runtimes → llama.cpp / Ollama / vLLM
Sources
- LocalAI v5.1.0 Release
- P2P Migration Guide
- PR #13329: feat(p2p): libp2p P2P layer with relays, split workers and ws carrier
- PR #13386: feat(ui): redesign cluster and access administration
- PR #13447: feat(updates): run backend, model and add-on updates as server-owned runs
- PR #13528: Serve concurrent chats with llama.cpp benchmark
