Vincent LauriatVincent LauriatVincent Lauriat 08 · Localia
GitHub

08Localia

Local AI models for Claude Code, from the macOS menu barDes modèles d'IA locaux pour Claude Code, depuis la barre de menus macOS從 macOS 選單列,為 Claude Code 執行本機 AI 模型

Airplane mode for AI: one switch, and Claude Code runs on your Mac.Le mode avion de l'IA : un interrupteur, et Claude Code tourne sur votre Mac.AI 的飛航模式:一個開關,Claude Code 就在你的 Mac 上執行。

Running models locally is fiddly: pick one that fits your RAM, install an engine, download gigabytes, wire Claude Code to a local server. Pick wrong and it crawls, or the Mac swaps. Localia does each step for you, measures what your Mac can really hold, and keeps every prompt and every line of code on the machine.Faire tourner des modèles en local est laborieux : en choisir un qui tient dans la RAM, installer un moteur, télécharger des gigaoctets, brancher Claude Code sur un serveur local. Un mauvais choix et tout rame, ou le Mac swappe. Localia fait chaque étape pour vous, mesure ce que votre Mac peut vraiment tenir, et garde chaque prompt et chaque ligne de code sur la machine.在本機執行模型很麻煩:要挑一個放得進記憶體的模型、安裝引擎、下載數 GB 檔案,再把 Claude Code 接到本機伺服器。選錯了就會很慢,或讓 Mac 開始使用置換空間。Localia 替你完成每一步,實際量測你的 Mac 能承載多少,並讓每個提示與每一行程式碼都留在這台機器上。

StatusStatut狀態
Version 1.4.0, with automatic engine fallback and model-first selection (pick a model, Localia picks the engine) · signed and notarized by Apple · release notesVersion 1.4.0, avec bascule automatique entre moteurs et choix par modèle (vous choisissez le modèle, Localia choisit le moteur) · signée et notarisée par Apple · notes de version版本 1.4.0,新增引擎自動切換與以模型為主的選擇(你選模型,Localia 選引擎) · 已由 Apple 簽署並公證 · 版本說明
RequiresConfiguration需求
macOS 14 or later, tuned for Apple SiliconmacOS 14 ou ultérieur, optimisé pour Apple SiliconmacOS 14 以上,針對 Apple Silicon 最佳化
EnginesMoteurs引擎
Ollama · llama.cpp · MLX
PrivacyConfidentialité隱私
No telemetry; in local mode nothing leaves the MacAucune télémétrie ; en mode local, rien ne quitte le Mac無遙測;本機模式下沒有任何資料離開 Mac
InterfaceInterface介面語言
English, FrenchAnglais, français英文、法文(無中文介面)
LicenceLicence授權
MIT
The Localia menu-bar panel with local mode on: 24 words per second, 9.6 GB of free memory, Qwen3-Coder-30B-A3B-Instruct running on Ollama.Le panneau de Localia dans la barre de menus, mode local activé : 24 mots par seconde, 9,6 Go de mémoire libre, Qwen3-Coder-30B-A3B-Instruct sur Ollama.Localia 選單列面板,本機模式已開啟:每秒 24 個字、9.6 GB 可用記憶體,Qwen3-Coder-30B-A3B-Instruct 在 Ollama 上執行。
Fig.Fig.圖 1The menu-bar panel, local mode on. Speed in words per second, free memory, the loaded model and its engine.Le panneau de la barre de menus, mode local activé. Vitesse en mots par seconde, mémoire libre, le modèle chargé et son moteur.選單列面板,本機模式開啟。以每秒字數顯示速度,並列出可用記憶體、已載入的模型與其引擎。(App 介面為英文。)

Four jobs, one menu-bar iconQuatre tâches, une icône dans la barre de menus四項工作,一個選單列圖示

Choose a model that fits, install the engine, manage what is downloaded, and launch Claude Code on it. Free, open source, MIT.Choisir un modèle qui tient, installer le moteur, gérer ce qui est téléchargé, et lancer Claude Code dessus. Gratuit, open source, MIT.挑選放得下的模型、安裝引擎、管理已下載的內容,並在其上啟動 Claude Code。免費、開源、MIT 授權。

  • Recommends models that fit this MacRecommande des modèles qui tiennent sur ce Mac推薦適合這台 Mac 的模型

    Scored by llmfit, then corrected with this Mac's real GPU memory limit and re-measured on first load. Speed comes first.Notés par llmfit, puis corrigés avec la vraie limite de mémoire GPU de ce Mac et remesurés au premier chargement. La vitesse d'abord.先由 llmfit 評分,再以這台 Mac 實際的 GPU 記憶體上限修正,並在首次載入時重新量測。速度優先。

  • Installs engines in one clickInstalle les moteurs en un clic一鍵安裝引擎

    Ollama (the official release) and llama.cpp (the official ggml-org macOS arm64 build), with no Homebrew. MLX, the third engine for Apple Silicon, installs a private Python with mlx-lm through uv, with 4-bit models from mlx-community. Every download is SHA-256 verified, atomic and cancellable.Ollama (la version officielle) et llama.cpp (le build officiel ggml-org macOS arm64), sans Homebrew. MLX, le troisième moteur pour Apple Silicon, installe un Python privé avec mlx-lm via uv, avec des modèles 4 bits de mlx-community. Chaque téléchargement est vérifié en SHA-256, atomique et annulable.Ollama(官方版本)與 llama.cpp(ggml-org 官方 macOS arm64 版本),無需 Homebrew。MLX 是適用於 Apple Silicon 的第三個引擎,透過 uv 安裝獨立的 Python 與 mlx-lm,並使用 mlx-community 的 4 位元模型。每次下載都經 SHA-256 驗證、以原子方式寫入,且可取消。

  • Manages modelsGère les modèles管理模型

    Download with progress, delete, see what is loaded, free the memory. A guard warns before loading when free RAM is short, or when Teams, Outlook or Chrome are eating it.Téléchargement avec progression, suppression, ce qui est chargé, libération de la mémoire. Un garde-fou prévient avant le chargement si la RAM libre manque, ou si Teams, Outlook ou Chrome la dévorent.下載時顯示進度、刪除、查看已載入的模型、釋放記憶體。可用記憶體不足,或 Teams、Outlook、Chrome 佔用太多時,載入前會先提醒。

  • Launches Claude Code where you workLance Claude Code là où vous travaillez在你的工作資料夾啟動 Claude Code

    In a folder you choose, in Terminal, iTerm2 or Ghostty, on Anthropic's cloud or on a local model. Local runs need no Anthropic account. Codex, OpenCode and Pi launch the same way on the local model, each with its own config; yours are never touched.Dans le dossier de votre choix, dans Terminal, iTerm2 ou Ghostty, sur le cloud d'Anthropic ou sur un modèle local. En local, aucun compte Anthropic n'est nécessaire. Codex, OpenCode et Pi se lancent de la même façon sur le modèle local, chacun avec sa propre configuration ; les vôtres ne sont jamais modifiées.在你選定的資料夾中,透過 Terminal、iTerm2 或 Ghostty,於 Anthropic 雲端或本機模型上執行。本機執行不需要 Anthropic 帳號。Codex、OpenCode 與 Pi 也以相同方式在本機模型上啟動,各自使用獨立設定;你自己的設定檔絕不會被動到。

How a model is pickedComment un modèle est choisi如何挑選模型

Five stages, from the chip to a short list. The fourth one feeds back into the third.Cinq étapes, de la puce à une courte liste. La quatrième nourrit la troisième.從晶片到一份簡短清單,共五個階段。第四階段會回饋給第三階段。

Diagram: hardware profile, then llmfit scoring, then re-quantisation and the Metal limit, then measured calibration, which feeds back into the estimates, then the recommendation.Schéma : profil matériel, puis score llmfit, puis requantification et limite Metal, puis calibration mesurée, qui corrige les estimations, puis recommandation.圖示:硬體概況 → llmfit 評分 → 重新量化與 Metal 上限 → 實測校準(回饋修正估計值)→ 推薦。

Fig.Fig.圖 2The recommendation pipeline. The dashed line: what is measured on first load corrects the next estimates.La chaîne de recommandation. En pointillé : ce qui est mesuré au premier chargement corrige les estimations suivantes.推薦流程。虛線表示:首次載入時的實測結果會修正之後的估計值。
  • Why not trust the score as isPourquoi ne pas croire le score tel quel為何不直接採用評分

    llmfit reasons about total RAM and the quantisation it prefers. The GPU, though, may only use Metal's recommendedMaxWorkingSetSize, and Localia downloads Q4_K_M. Size and speed are recomputed for both.llmfit raisonne sur la RAM totale et la quantification qu'il préfère. Or le GPU ne peut utiliser que le recommendedMaxWorkingSetSize de Metal, et Localia télécharge du Q4_K_M. Taille et vitesse sont recalculées pour les deux.llmfit 以總記憶體與它偏好的量化方式推算。但 GPU 只能使用 Metal 的 recommendedMaxWorkingSetSize,而 Localia 下載的是 Q4_K_M。因此大小與速度都會依這兩點重新計算。

  • Why measurePourquoi mesurer為何要量測

    Estimates were about twice off on an M5. On first load, Localia records the real tokens per second and memory, and recalibrates.Les estimations étaient fausses d'environ 2× sur un M5. Au premier chargement, Localia relève les vrais tokens par seconde et la mémoire, puis recalibre.在 M5 上,估計值偏差約兩倍。首次載入時,Localia 會記錄實際的每秒 token 數與記憶體用量,並重新校準。

  • Why speed firstPourquoi la vitesse d'abord為何速度優先

    A model you wait for is a model you stop using. Below about 15 tokens per second a model is flagged slow, and community fine-tunes ("uncensored", "distilled"…) are left out.Un modèle qu'on attend est un modèle qu'on abandonne. Sous 15 tokens par seconde environ, un modèle est signalé lent, et les fine-tunes communautaires (« uncensored », « distilled »…) sont écartés.需要等待的模型,終究會被放棄。每秒低於約 15 個 token 的模型會被標示為慢,社群微調版本(「uncensored」、「distilled」等)也會被排除。

What "fits" meansCe que « tenir » veut dire「放得下」是什麼意思

On Apple Silicon the GPU shares the RAM, but not all of it.Sur Apple Silicon, le GPU partage la RAM, mais pas toute.在 Apple Silicon 上,GPU 與系統共用記憶體,但不是全部。

Diagram: of 24 GB of unified memory, Metal lets the GPU use 17.8 GB; Localia keeps 1.5 GB free; a 10 GB model fills a little over half of the rest.Schéma : sur 24 Go de mémoire unifiée, Metal laisse 17,8 Go au GPU ; Localia en garde 1,5 Go libres ; un modèle de 10 Go occupe un peu plus de la moitié du reste.圖示:24 GB 統一記憶體中,Metal 允許 GPU 使用 17.8 GB;Localia 保留 1.5 GB;10 GB 的模型佔用剩餘空間的一半多一點。

Fig.Fig.圖 3A real example: a 24 GB M5 MacBook Air and the model Localia recommends by default. Ticks mark 60 and 85 % of what the model may use; the dashed line is the limit.Un exemple réel : un MacBook Air M5 de 24 Go et le modèle que Localia recommande par défaut. Les repères marquent 60 et 85 % de ce que le modèle peut occuper ; le pointillé est la limite.實際例子:24 GB 的 M5 MacBook Air,以及 Localia 預設推薦的模型。刻度標示模型可用空間的 60% 與 85%;虛線為上限。

The model has to sit inside the GPU's working set, with room left for the context. If it does not, the Mac swaps and generation slows to a crawl. That is the failure Localia is built to avoid, and why it warns before loading when memory is short.Le modèle doit tenir dans le working set du GPU, avec de la place pour le contexte. Sinon, le Mac swappe et la génération s'effondre. C'est l'échec que Localia est conçu pour éviter, et la raison pour laquelle il prévient avant de charger quand la mémoire manque.模型必須放進 GPU 的工作集,並為上下文留出空間。否則 Mac 會開始使用置換空間,生成速度將急遽下降。這正是 Localia 要避免的情況,也是它在記憶體不足時會於載入前提醒的原因。

Local mode, wire by wireLe mode local, fil à fil本機模式,逐條拆解

Like airplane mode: one switch sends Claude Code to the local model.Comme le mode avion : un interrupteur envoie Claude Code vers le modèle local.就像飛航模式:一個開關,就讓 Claude Code 改用本機模型。

Diagram: the local-mode switch reaches Claude Code either through Localia's own sessions, with an isolated config, or through a shell shim for every claude command. Claude Code then talks to Ollama on port 11434, llama.cpp on port 11435 or MLX on port 11436, on 127.0.0.1, and never falls back silently to the cloud.Schéma : l'interrupteur du mode local atteint Claude Code soit par les sessions de Localia, avec une configuration isolée, soit par un shim du shell pour chaque commande claude. Claude Code parle alors à Ollama sur le port 11434, à llama.cpp sur le port 11435 ou à MLX sur le port 11436, sur 127.0.0.1, sans jamais se rabattre en silence sur le cloud.圖示:本機模式開關透過兩種方式作用於 Claude Code:Localia 自己的工作階段(使用獨立設定),或為每個 claude 指令加上的 shell shim。Claude Code 接著連到 127.0.0.1 上的 Ollama(連接埠 11434)、llama.cpp(連接埠 11435)或 MLX(連接埠 11436),絕不會悄悄改用雲端。

Fig.Fig.圖 4Two scopes, one destination. Both engines listen on the loopback address only.Deux portées, une seule destination. Les deux moteurs n'écoutent que sur l'adresse de bouclage.兩種範圍,同一個目的地。兩個引擎都只在迴路位址上監聽。
  • Localia's sessions onlySessions de Localia uniquement僅限 Localia 的工作階段

    The default. Sessions launched from the menu bar get an isolated config, so your own ~/.claude is never touched and no Anthropic account is needed.Le réglage par défaut. Les sessions lancées depuis la barre de menus reçoivent une configuration isolée : votre ~/.claude n'est jamais modifié et aucun compte Anthropic n'est nécessaire.預設值。從選單列啟動的工作階段使用獨立設定,因此絕不會動到你自己的 ~/.claude,也不需要 Anthropic 帳號。

  • Every claude you typeChaque claude que vous tapez你輸入的每個 claude

    Opt-in. A marked block in ~/.zshrc loads a small shim, so claude in any terminal follows the switch. While local mode is on, it never falls back silently to the cloud.Sur option. Un bloc balisé dans ~/.zshrc charge un petit shim : claude, dans n'importe quel terminal, suit l'interrupteur. Tant que le mode local est activé, il ne se rabat jamais en silence sur le cloud.選用。~/.zshrc 中一段有標記的區塊會載入一個小型 shim,讓任何終端機裡的 claude 都跟隨開關。本機模式開啟時,絕不會悄悄改用雲端。

This is the whole block Localia adds to ~/.zshrc. A backup of the file is taken first, and the "Remove Localia from my shell" button, in Settings, deletes exactly these three lines.Voici tout le bloc que Localia ajoute à ~/.zshrc. Une sauvegarde du fichier est faite avant, et le bouton « Retirer Localia de mon shell », dans les Réglages, supprime exactement ces trois lignes.這就是 Localia 加入 ~/.zshrc 的完整區塊。寫入前會先備份該檔案,而「設定」中的「Remove Localia from my shell」按鈕只會刪除這三行。

# >>> localia >>>
[ -f "$HOME/Library/Application Support/Localia/shell/claude.zsh" ] && source "$HOME/Library/Application Support/Localia/shell/claude.zsh"
# <<< localia <<<

SpecificationsCaractéristiques規格

The numbers behind the switch.Les chiffres derrière l'interrupteur.開關背後的數字。

ItemÉlément項目ValueValeur數值
EnginesMoteurs引擎Ollama (official release) · llama.cpp (official ggml-org macOS arm64 build) · MLX (mlx-lm, 4-bit models from mlx-community)Ollama (version officielle) · llama.cpp (build officiel ggml-org macOS arm64) · MLX (mlx-lm, modèles 4 bits de mlx-community)Ollama(官方版本)· llama.cpp(ggml-org 官方 macOS arm64 版本)· MLX(mlx-lm,mlx-community 的 4 位元模型)
Local endpointsPoints d'accès locaux本機端點127.0.0.1:11434 Ollama · 127.0.0.1:11435 llama.cpp · 127.0.0.1:11436 MLX
QuantisationQuantification量化Q4_K_M
Context windowFenêtre de contexte上下文視窗The model's real context window (trained length, capped at 65,536), passed as CLAUDE_CODE_MAX_CONTEXT_TOKENSLa vraie fenêtre du modèle (longueur d'entraînement, plafonnée à 65 536), transmise via CLAUDE_CODE_MAX_CONTEXT_TOKENS模型的實際上下文視窗(訓練長度,上限 65,536),透過 CLAUDE_CODE_MAX_CONTEXT_TOKENS 傳遞
Model fitAdéquation模型適配llmfit 1.1.20, corrected with Metal recommendedMaxWorkingSetSizellmfit 1.1.20, corrigé par le recommendedMaxWorkingSetSize de Metalllmfit 1.1.20,以 Metal 的 recommendedMaxWorkingSetSize 修正
Speed floorVitesse plancher速度下限about 15 tokens/s; slower models are flaggedenviron 15 tokens/s ; en dessous, le modèle est signalé約每秒 15 個 token;更慢的模型會被標示
DownloadsTéléchargements下載SHA-256 verified, atomic, cancellable; no Homebrewvérifiés en SHA-256, atomiques, annulables ; sans HomebrewSHA-256 驗證、原子寫入、可取消;無需 Homebrew
TerminalsTerminaux終端機Terminal · iTerm2 · Ghostty
Local launchersLanceurs locaux本機啟動器Claude Code · Codex (Ollama or llama.cpp, not MLX) · OpenCode · Pi; a gateway built into the app lets Claude Code talk to MLXClaude Code · Codex (Ollama ou llama.cpp, pas MLX) · OpenCode · Pi ; une passerelle intégrée à l'app permet à Claude Code de parler à MLXClaude Code · Codex(Ollama 或 llama.cpp,不支援 MLX)· OpenCode · Pi;App 內建的閘道讓 Claude Code 能與 MLX 通訊
NetworkRéseau網路Only what you trigger: engine, model and llmfit downloads; update checks. No telemetry.Seulement ce que vous déclenchez : téléchargement du moteur, des modèles et de llmfit ; vérification des mises à jour. Aucune télémétrie.只有你觸發的連線:下載引擎、模型與 llmfit;以及檢查更新。無遙測。
SystemSystème系統macOS 14+, tuned for Apple SiliconmacOS 14+, optimisé pour Apple SiliconmacOS 14 以上,針對 Apple Silicon 最佳化

The panelLe panneau面板

Real renders of the menu-bar panel, in the app's language for this page.Des rendus réels du panneau, dans la langue de l'app correspondant à cette page.選單列面板的實際畫面。App 只有英文與法文介面,此處顯示英文版。

The panel with local mode off: Claude Code launches on Anthropic's cloud.Le panneau, mode local désactivé : Claude Code se lance sur le cloud d'Anthropic.本機模式關閉時的面板:Claude Code 在 Anthropic 雲端啟動。
Fig.Fig.圖 5Local mode off.Mode local désactivé.本機模式關閉。
The panel in dark mode with local mode on.Le panneau en mode sombre, mode local activé.深色模式下、本機模式開啟時的面板。
Fig.Fig.圖 6Local mode on, dark appearance.Mode local activé, apparence sombre.本機模式開啟,深色外觀。
The expanded panel: installed models, memory-hungry apps (Google Chrome, Microsoft Teams), running sessions, engine choice between Ollama and llama.cpp, and recent folders for Claude Code.Le panneau déplié : modèles installés, apps gourmandes en mémoire (Google Chrome, Microsoft Teams), sessions en cours, choix du moteur entre Ollama et llama.cpp, et dossiers récents pour Claude Code.展開的面板:已安裝的模型、佔用大量記憶體的 App(Google Chrome、Microsoft Teams)、執行中的工作階段、Ollama 與 llama.cpp 引擎切換,以及 Claude Code 的最近資料夾。
Fig.Fig.圖 7Expanded: models, memory-hungry apps, sessions, engine, recent folders.Déplié : modèles, apps gourmandes, sessions, moteur, dossiers récents.展開:模型、耗記憶體的 App、工作階段、引擎、最近資料夾。

Local, and why not only localLe local, et pourquoi pas seulement本機,但不只本機

A complement to the cloud, not a replacement.Un complément au cloud, pas un remplaçant.是雲端的補充,而非取代。

  • SovereigntySouveraineté資料自主

    In local mode, prompts and code never leave the Mac. Useful for sensitive code.En mode local, prompts et code ne quittent jamais le Mac. Utile pour le code sensible.本機模式下,提示與程式碼從不離開 Mac。適合處理敏感程式碼。

  • Cost and reachCoût et portée成本與可用性

    Inference on a Mac you already own costs no tokens and no per-seat API fees, and works offline: on a plane, on a train, on a restricted network.L'inférence sur un Mac que vous possédez déjà ne coûte aucun token ni frais d'API par poste, et fonctionne hors ligne : en avion, en train, sur un réseau restreint.在你已擁有的 Mac 上推論,不花 token,也沒有按席位計費的 API 費用,且可離線使用:飛機上、火車上、受限網路中皆可。

  • The honest limitLa limite, honnêtement坦白說的限制

    Local models are smaller than frontier cloud models. Use them for quick tasks, offline work and cost control; switch local mode off for the hard problems.Les modèles locaux sont plus petits que les modèles de pointe du cloud. Utilisez-les pour les tâches rapides, le travail hors ligne et la maîtrise des coûts ; coupez le mode local pour les problèmes difficiles.本機模型比雲端的前沿模型小。適合快速任務、離線工作與控制成本;遇到困難問題時,關閉本機模式即可。

Next on the roadmap: an MLX engine with an Anthropic-API gateway, then other coding tools: Codex, OpenCode, Pi.Prochaines étapes : un moteur MLX avec une passerelle compatible avec l'API d'Anthropic, puis d'autres outils de code : Codex, OpenCode, Pi.後續規劃:MLX 引擎與相容 Anthropic API 的閘道,接著支援其他程式開發工具:Codex、OpenCode、Pi。

Download it, or read the code and build it.Téléchargez-la, ou lisez le code et compilez-la.下載使用,或閱讀程式碼自行建置。

Localia is open source under the MIT licence. The signed, Apple-notarized app (version 1.4.0, macOS 14 or later) is a free download; or read the code and build it yourself.Localia est open source sous licence MIT. L'app signée et notarisée par Apple (version 1.4.0, macOS 14 ou ultérieur) se télécharge gratuitement ; ou lisez le code et compilez-la vous-même.Localia 以 MIT 授權開源。經簽署並由 Apple 公證的應用程式(版本 1.4.0,macOS 14 以上)可免費下載;也可以閱讀程式碼,自行建置。