Repository navigation
LocalAI 5.2.0 brings faster llama.cpp inference and multi-step agent automations. llama.cpp can adjust drafting as requests pile up and stream model experts when GPU memory is tight. In Agents → Automations, a file arriving can start a workflow that reads it, passes it to an agent, and asks for approval before sending the result.
Highlights:
- ⚡ Tune llama.cpp for your hardware with per-model speed controls.
- 🤖 Connect agents and add-ons in a workflow and inspect each run.
- 🖧 Link instances without a VPN using the free LocalAI relay or one you host yourself.
- 🔌 Choose which add-ons each user can access and which tools a saved agent can use for delegated work.
- 🎨 Open Your work in Studio from any browser signed in to the same account.
- 🖥️ Search the desktop launcher's server settings and review startup changes before restarting.
📌 TL;DR
| Area | Summary |
|---|---|
| Agents | Start multi-step workflows from events, webhooks, schedules, or incoming files. |
| Studio | Generation records follow your account. Favourites and 3D results stay in the browser. |
| Workspace | Browse folders without waiting for Trash counts or purge estimates. |
| Desktop | Check server readiness and loaded models from the tray. |
| Inference | llama.cpp adapts drafting under load, speeds up GPU prompt processing, and streams experts when memory is tight. |
🚀 New Features & Major Enhancements
🤖 Build an automation
Open Agents → Automations to connect agents and add-ons. Pass one step's result to the next, branch on a condition, or repeat a step for each item. Existing one-step triggers still work. Approvals are off by default: enable approval on any step you want to review before it sends or deletes something. Before sharing an exported workflow, check its URLs for embedded tokens.
Screenshots use example data from #13647.
🔌 Choose add-ons per user
Administrators can give a user access to selected add-ons or to none. Existing users keep access to all add-ons by default. Removing access stops affected work and disables the user's connections. Restoring access does not turn those connections back on.
On a single-node deployment, operators can preinstall signed bundles at startup. For a new signed file with a missing transparency entry, an administrator can approve that exact file if the other required checks pass. An invalid entry still blocks installation. Approval does not extend to updates or other files from the same publisher.
🎨 Pick up your Studio work on another device
Sign in and open Your work to find earlier generations and their result links. Studio stores the records, not another copy of the media. Clearing history leaves server files in place. Without authentication, the instance has one shared history.
Workspace Files now loads folders separately from Trash counts and purge previews. You can preview one deletion or the whole Trash without deleting anything. The badge counts deletion revisions, not individual files.
Upgrading an existing SQL workspace? Upgrade all writers before enabling indexed Trash counts and pages. Until the index is ready, an unavailable count does not mean Trash is empty. Follow the SQL upgrade instructions.
🖥️ Manage a local server from the launcher
Search typed controls for local server options. Apply runtime changes without restarting, or review pending startup changes before a restart. The tray shows server readiness, loaded models, and worker status. On Linux StatusNotifier desktops, select Refresh status, then reopen the menu to see the new snapshot.
⚡ llama.cpp: faster prompts, adaptive drafting, and larger models
Prompt processing on GPU. CUDA changes reduce repeated reads of quantized weights and attention data on supported NVIDIA GPUs. On AMD RDNA 3.5, the backend uses new matrix-multiplication and prompt-attention paths. On Apple Metal, batches of tokens can share expert-weight reads, and long-context decoding can reuse attention data. Defaults depend on the GPU and workload; the model editor exposes per-model patch switches and an Upstream llama.cpp preset for comparison.
Drafting under load. With a draft model, llama.cpp measures how many proposed tokens the main model accepts and how long each step takes, then adjusts how far ahead it drafts. Automatic mode can pause drafting as more streams arrive. In #13617, Qwen3-8B with a Qwen3-0.6B draft on an NVIDIA GB10 gained 63.6% in prose throughput at four streams with adaptive draft length versus without it. Code edits on the same setup gained 9.7% at four streams and lost 0.8% at eight. On a separate Apple M4 test, the Metal expert-weight patch delivered 1.51× throughput at eight sequences for OLMoE-1B-7B Q8_0. These are patch-on versus patch-off measurements, not comparisons with LocalAI 5.1.1.
Fitting models in memory. The fit_stream mode accounts for host memory as well as GPU memory. For mixture-of-experts models, it can stream experts that do not fit and start reading the next layer's experts while the current layer processes the prompt. For models with a bundled per-layer embedding table, llama.cpp can read rows on demand when the table would otherwise force a shorter context. Explicit placement overrides still take precedence.
Paged serving for concurrent chats. When a long prompt arrives while other chats are already generating replies, llama.cpp reads the prompt in smaller chunks so those chats can keep streaming. When no older chat is generating, the prompt can use the full batch. With paged serving off (paged_kv: false), llama.cpp uses the upstream batch size by default. An explicit prefill_budget overrides either default. Scheduling change
Serving and diagnostics. A prompt-sized warmup exercises the prompt-processing path before the first request. The backend reports detected hardware, active patch switches, memory placement, and the prompt-processing budget, so you can see which optimizations your model actually uses.
Full patch inventory and measurements · Bundled embedding tables under memory pressure (#13684)
🖧 Link LocalAI instances without a VPN
P2P remains off by default. When you enable it, nodes prefer direct connections. When a direct connection is unavailable, nodes can use relay.localai.io, the free public relay operated by LocalAI. To use your own relay instead, configure it with --p2p-relay. Set --p2p-relay none for direct-only connections.
🔗 PR: #13597
📬 Manage calendars and tasks from an agent
The Gmail add-on can manage events on your primary calendar and tasks in a selected list. These tools need separate Google permissions and the ALL connection entry, which gives the agent access to the whole mailbox. Writes follow the connection's approval mode. In web chat, use Review and confirm to review a pending add-on change in the browser session that requested it.
🧰 Download tool results and prepare Sandbox images
Add-ons can return files to the chat that ran a tool. For example, SSH lets the model read saved command output without running the command again. Sandbox shows image download progress. Commands that need an image share its download; ordinary chat does not wait.
Network default: Fresh official Sandbox installs allow public HTTP(S). Commands can send workspace data to public sites without a prompt. Choose Tools → Network → Off to block the next connection in a chat, or lower the administrator limit for all chats. Upgrades keep existing policies and revocations.
📱 Follow model installs on Android
Enable Settings → Phone notifications to receive success and failure alerts for the default server. Tap an alert to open Models. Alerts omit model names and error details.
🔗 PR: #13608
🐛 Bug Fixes (recap)
fix(sandbox): Git can use SSH in guest images even when recommended packages are omitted. #13603fix(chat): Each add-on has its own composer button. Tables opens its database picker in one click. #13606fix(launcher): Quit no longer waits indefinitely for a stalled shutdown step. The launcher enforces a 30-second limit. #13626
👒 Dependencies
The 21 dependency PRs include four ik_llama.cpp updates and three audio.cpp updates. stable-diffusion.cpp, vllm.cpp, Strata, and the PrismML llama.cpp fork each received two. Single updates cover upstream llama.cpp, whisper.cpp, NeMo-Speech.cpp, colibri, the CTranslate2 ROCm wheel, and Android's Pion DTLS library.
Model gallery: The gallery corrects the ds4flash.gguf checksum and syncs Unsloth inference defaults, including the qwen4 match pattern. Neither change adds model weights. #13605, #13669
📖 Documentation
The source-build guide now lists openSUSE zypper packages for build dependencies, Go protobuf tools, and optional media and test utilities. #13646
🙌 New Contributors
- @Avinesh contributed the openSUSE source-build instructions in #13646.
- @mastercda added Calendar and Tasks tools to the Gmail add-on in #13668.
Full Changelog: v5.1.1...238b1cb


