Skip to content

LocalLM Lab v3.0.0-GA

Latest

Choose a tag to compare

@ancientcomputing ancientcomputing released this 09 Nov 22:00
· 25 commits to main since this release
076fffb

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. nil now means FailClosedToolAuthorizer. Calls rated .read run, and anything that may change data or send it out is denied with a result that says so. An unrated tool, which includes your own Tools, counts as .mutate. Pass AllowingToolAuthorizer() for 2.x behaviour (a batch job, an eval), or a ConfirmingToolAuthorizer in an app with a UI.
  • Loading never downloads. A model, speed helper or adapter that isn't downloaded fails with .modelUnavailable(reason:), so call download(_:) 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.
  • ToolImpact encodes 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 with bypassPromptCache.
  • The connector stores are read-only. CalendarAccess.store, RemindersAccess.store and ContactsAccess.store can 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, AllowingToolAuthorizer and ToolCallDecider.
    • 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.
  • 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_VERSION picks another release), with SwiftPM and with the committed Xcode projects.

  • Every example whose tools write, or call MCP tools, now passes an authorizer:

    • AllowingToolAuthorizer() in code-buddy, repo-qa-local and aiql.
    • A ConfirmingToolAuthorizer in the others:
      • workspace-buddy-local: an alert before each write or edit.
      • security-demo.
      • mcp-chat: a changed widget asks again.
      • vistanova: only tavily_search is 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-cli toolkit follows API Lab's setting for both --run and --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.log adds ▸ SETTINGS, ▸ SECURITY AUDIT, ▸ CACHE and ▸ DRIFT sections. 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.