Repository navigation
LocalLM Lab 3.0.0-GA
3.0 is a major release of the SDK and the app. Four things change how an app uses the SDK:
- Dynamic tools. Tools are available, not attached. An app makes plug-ins, MCP servers, commands and workspaces available, and a small decider picks the few each message needs. A service is contacted only when one of its tools is called, so a chat can have hundreds of tools available and send a local model three.
- A prompt cache, on by default, for local (MLX) models, with an optional encrypted disk tier.
- A gate that is always there. Every tool call passes through a
ToolCallAuthorizer, and a session built without one is now fail-closed. The SDK also ships injection defences, a sandbox for programs and an audit stream. - Downloading is its own step. Loading a model reads only the disk.
3.0 also folds in everything from 2.2.0 and 2.3.0, and the 2.4.0 line that was never released on its own.
A new name: the SDK is now the LocalLM SDK (it was the LocalLM Lab SDK; LocalLM Lab is the Mac app). Modules, products, release files and API keep their names, so nothing in your code changes for this.
The SDK is free and open source under Apache 2.0, binary modules included.
SDK: what may need edits
3.0 is a major version: code that builds against 2.3 may need changes. The migration guide walks through each one.
- A session with no authorizer is fail-closed.
nilnow meansFailClosedToolAuthorizer. Calls rated.readrun, and anything that may change data or send it out is denied with a result that says so. An unrated tool, which includes your ownTools, counts as.mutate. PassAllowingToolAuthorizer()for 2.x behaviour (a batch job, an eval), or aConfirmingToolAuthorizerin an app with a UI. - Loading never downloads. A model, speed helper or adapter that isn't downloaded fails with
.modelUnavailable(reason:), so calldownload(_:)first. The trust policy applies at download time, and an unpinned model no longer updates itself on load. - MCP tools reach the model under prefixed names, such as
github_list_issues. A tool's own name is kept in refs, approvals and records. ToolImpactencodes as its name ("read","mutate","destructive"). Saved numbers still decode.- The prompt cache is on by default for verified model families. Turn it off with
promptCache: .off, or for one session withbypassPromptCache. - The connector stores are read-only.
CalendarAccess.store,RemindersAccess.storeandContactsAccess.storecan be read, but only the SDK replaces them. - Smaller changes: developer overrides (
LOCALLMLAB_*) are debug-only, a reply ends only once generation has stopped, and some built-in tools changed their wording or ratings.
SDK: what's new
- Dynamic tools in
LocalLMLabSDKCore:DynamicTools,ToolCatalog(lab.tools), keyword and decision-model pickers that run on the on-device model, and per-turn explanations of what was offered and why. A tool named in a chat's custom instructions is always offered. - Built-in plug-ins:
- Clock, Weather, Calendar, Reminders, Contacts and Location.
- Tables (CSV, TSV and JSON).
- Documents (PDF, slides, Word, RTF, HTML).
- Images (OCR, plus the on-device model looking at photos).
- Web (read, save as Markdown, search, with an address policy).
- Workspace and Workspaces, for files.
- Workspaces with access levels and off-limits paths. Saved workspaces survive a restart.
- Local programs, in direct-download builds only: registered commands run under a Seatbelt sandbox, and local MCP servers run over stdio and ask before each start.
- Security:
- Authorizers:
FailClosedToolAuthorizer,AllowingToolAuthorizerandToolCallDecider. - Drift handling for MCP tools that change.
- The audit stream,
lab.audit. - Injection defences: a call copied out of content always asks, hidden page text is dropped, outside content is framed as data, and links from content are marked.
- Security guide for hosts.
- Authorizers:
- MCP: resources and prompts (attach a server's content, a
/menu for its prompts), image and resource results, and pasting a server's JSON setup from Claude Desktop or VS Code. - Prompt cache and memory in
LocalLMLabSDKInference:- Memory and encrypted SSD tiers, with live stats and per-model status.
- Verified families: Qwen3.5/3.8, Qwen3, Qwen3 MoE, Llama and Nemotron 3.5. Any other model gets a one-time self-test.
- Memory pressure is handled: buffer-cache caps and chunked prompts.
- New models: LFM3 (
LiquidAI/LFM3-*) and PrismML Bonsai 2 (prism-ml/Ternary-Bonsai-2-27B-mlx-2bit) load. - Chat core and views:
ChatController,ConversationStore, compaction when a chat fills up, and Components' Markdown view, cards and composer. - MCP Apps (
LocalLMLabSDKMCPAppsHost): widget slots, an inline policy, and an offline backend. - Remote providers: Anthropic requests default to a 64K output limit, and tool-schema handling is stricter.
Every type is listed in the CHANGELOG and the SDK guide.
Examples
-
Every example builds against 3.0.0-GA by default (
LOCALLM_SDK_VERSIONpicks another release), with SwiftPM and with the committed Xcode projects. -
Every example whose tools write, or call MCP tools, now passes an authorizer:
AllowingToolAuthorizer()incode-buddy,repo-qa-localandaiql.- A
ConfirmingToolAuthorizerin the others:workspace-buddy-local: an alert before each write or edit.security-demo.mcp-chat: a changed widget asks again.vistanova: onlytavily_searchis allowed.
The annotated examples list them.
-
JevDK and jev-serve are their own project, ancientcomputing/jevdk. VistaNova also has its own, ancientcomputing/vistanova.
LocalLM Lab app
Rebuilt on SDK 3.0. The lab keeps its 2.x behaviour by default, and each new SDK default is a setting you can see and change:
- Tool access. In the Playground, tools run unless a server is set to "Confirm each". API Lab has its own setting, Everything (the default), Reads and changes or Reads only, because a request has no window to confirm a call in. The
localai-clitoolkit follows API Lab's setting for both--runand--chat. - Missing models download on load, with progress, when "Download missing models automatically" is on (the default).
- Prompt cache. A Prompt cache group in AI Models sets the mode, the memory and SSD budgets and the storage format, and shows live numbers with a Clear button. A run shows how many prompt tokens it restored. "Reuse the prompt cache" can be turned off per run, and the Benchmark always bypasses the cache.
- Tool changes (drift). MCP Servers lists what changed in a server's tools since you last accepted them, and what each policy would do. Observe only is the default.
- Prompt-injection defences are switches in the Security panel, off by default, so you can compare a run with and without them.
- Run ledger.
dev.logadds▸ SETTINGS,▸ SECURITY AUDIT,▸ CACHEand▸ DRIFTsections. API Lab requests are logged when "Log incoming API calls" is on.
Checksums
| Asset | SHA-256 |
|---|---|
LocalLMLabSDKCore-3.0.0-GA.xcframework.zip |
2b286cfecae1f6596c64255d72550a30f6f3cfe8323e4aa2a5176a4275699451 |
LocalLMLabSDKClaude-3.0.0-GA.xcframework.zip |
d610c8e5c82402ed2e898eb239ef8af02983c459b73ec531e84781d478a6d159 |
LocalLMLabSDKInference-3.0.0-GA.xcframework.zip |
e89336700bba35a546967a66eb34e3fb59e44a8150758da44ec95a104047bd54 |
LocalLMLabSDKRemote-3.0.0-GA.xcframework.zip |
54ca50806e65d96a80ef928b56952bf9b827ba959bcb466c25088b3cb2995507 |
LocalLM.Lab-3.0.0-GA-arm64.dmg (the app) |
ac56acc0379d240178cc446186b3cb525f7a0b857df554c4124cead931e3687c |
localai-toolkit-3.0.0-GA-arm64.zip (the localai-cli toolkit) |
b0ccdf41bd468259ede3a311792f170055856af9feb215c4f8c094c153fd7b14 |
The DMG's .sha256 names the file LocalLM Lab-3.0.0-GA-arm64.dmg (with a space), so compare with shasum -a 256 LocalLM.Lab-3.0.0-GA-arm64.dmg rather than shasum -c.