oMLX is an open-source server that runs local LLMs on Apple Silicon Macs and manages them from the menu bar. The project on GitHub was trending this week with about 75 new stars in a day and roughly 24,000 in total. Its pitch: pin everyday models in memory, swap heavy ones on demand, and keep a long conversation's context cached on SSD so it need not be recomputed. This guide explains what is in the README, how to install it, and what to check before you depend on it.
What oMLX is #
oMLX serves models through MLX, Apple's array framework for Apple Silicon. The author says they built it because every LLM server forced a choice between convenience and control. The result is a native Swift and SwiftUI menu-bar app (not Electron) wrapped around a Python server. It supports:
- Text LLMs, vision-language models, OCR models, embeddings and rerankers.
- Continuous batching, so several requests share the model at once.
- A tiered KV cache with a hot RAM tier and a cold SSD tier.
- OpenAI-compatible and Anthropic-style endpoints.
- An admin dashboard at
/adminwith chat, a model down and a benchmark tool.
The tiered KV cache, in plain terms #
KV cache blocks reused across requests, matching oMLX hot RAM and cold SSD tiers
When a model reads a prompt, it builds a KV cache, a store of intermediate results that lets it generate the next tokens without re-reading everything. Long prompts are expensive to rebuild. Coding agents resend a large, mostly unchanged context on every turn, so cache reuse matters.
The README describes block-based cache management inspired by vLLM, with prefix sharing and copy-on-write. There are two tiers:
- Hot tier (RAM): frequently used blocks stay in memory.
- Cold tier (SSD): when the hot tier fills, blocks go to SSD in safetensors format. A later request with a matching prefix restores them from disk instead of recomputing, even after a server restart.
Optional Affine4 and Affine8 KV compression add signed 4-bit and 8-bit cache formats. The README does not publish a general speed-up figure for the cache. The only measured number it gives is about the custom kernels, covered below.
Install options #
Apple Silicon laptop running a local inference server
| Route | Steps | Notes |
|---|---|---|
| macOS app | Download the DMG from Releases, drag to Applications | Includes auto-update and a CLI shim; kernels are precompiled |
| Homebrew | brew tap jundot/omlx , thenbrew install jundot/omlx/omlx --with-custom-kernel |
Kernels need full Xcode; without Xcode, install without the flag |
| Source | git clone , thenmake install |
make install-no-kernels skips kernels |
Requirements, per the README: macOS 15.0 or newer, Python 3.11 to 3.13 for source builds, and Apple Silicon (M1 to M5). After install, omlx start runs a managed background server, and omlx serve --model-dir ~/models runs one in the foreground. Any OpenAI-compatible client can use http://localhost:8000/v1, and a chat UI is at http://localhost:8000/admin/chat.
Why the kernel note matters #
The README warns that GLM-5.2, MiniMax M3 and Qwen3.5 need native custom kernels. Without them those families silently fall back to much slower generic paths. For GLM-5.2 it says the fused prefill is roughly 30 times faster with the kernels, measured at 845 against about 29 tokens per second on an M3 Ultra. That is the author's measurement on one machine. The practical lesson: if a model feels slow, check that the kernels loaded. The README gives a one-line Python check, native_kernel_status(), and says the official DMG avoids the problem.
APIs and integrations #
oMLX acts as a drop-in for OpenAI and Anthropic APIs, per the README. Endpoints include chat completions, completions, the Anthropic Messages API, embeddings, reranking, models listing, audio transcription and a tokenizer API. Streaming usage stats and Anthropic adaptive thinking are supported.
The admin dashboard sets up OpenClaw, OpenCode, Codex, Hermes Agent, Copilot, Pi, Mistral Vibe and DeepSeek Harness with one click. Commands such as omlx launch codex give an agent a catalog of every chat model on the server, so you switch models inside the tool. The README notes version minimums: Codex 0.148 or newer, Copilot CLI 1.0.83 or newer, Mistral Vibe 2.26.0 or newer. It also lists a Claude Code optimization: the server reports the model's real context window so auto-compact works, and keeps the connection alive during long prefill. For a related approach to routing agents to other models, see our post on the free-claude-code proxy and its terms and data risks.
Multi-model serving and memory limits #
Continuous batching serving concurrent local requests on one Mac
The server can hold several models at once and manages them with:
- LRU eviction when memory runs low.
- Manual load and unload from the dashboard.
- Pinning for models you always want ready.
- Per-model idle timeouts.
- A process memory limit , default system RAM minus 8 GB, to avoid out-of-memory crashes.
Per-model settings, aliases and named profiles apply without restarting. A profile can be exposed as its own model name, such as qwen3-8b:thinking, without extra memory.
Beyond text: vision, OCR, documents and speech #
oMLX is not only a chat server. The README lists several other uses that run on the same batching and cache stack.
- Vision-language models: multi-image chat, base64, URL and file inputs, and tool calling with vision context. Qwen3.5, Qwen3.6 and Qwen3.8 checkpoints accept video as base64 data URIs, which needs OpenCV installed. MiMo V2.6 checkpoints with bundled sidecars can also take sampled-frame video and 24 kHz audio.
- OCR models: DeepSeek-OCR, DOTS-OCR and GLM-OCR are detected automatically and given tuned prompts.
- Documents in chat: the built-in chat accepts PDF, DOCX, PPTX, TXT and MD attachments, matched by file extension.
- Speech to text: the transcription endpoint can return speaker labels when the installed model supports them, for example VibeVoice-ASR or Nemotron 3.5 Transcribe. Streaming is not supported, and the whole file goes to the model in one request. Models without timed speaker labels return an error.
These features show the project's aim: one local endpoint for many model types, so an agent, a notes app and a document tool can share the same server. The cost is that each feature depends on the model you load. Check the model card for what a checkpoint supports before you build on it.
Experimental extras #
Two features are marked experimental or optional in the README.
- Multi-Mac inference: source builds can split one model across unequal-memory Macs using MLX pipeline ranks over Ring or Thunderbolt RDMA. The documentation points to security boundaries and a physical-hardware checklist.
- Prefill Accelerator: a paired Mac runs the first layers of long prompts so the main Mac handles the rest. The README lists DeepSeek V4.1, GLM-5.3, Qwen3.8 Flash-Next, Qwen3.8 27B, MiniMax M3 and Inkling 2. A Linux machine with NVIDIA GPUs can also be the helper.
Treat both as advanced. If you only have one Mac, ignore them.
How it compares with other local options #
oMLX targets Macs only. If you want a cross-platform runtime, llama.cpp is the usual choice, and engines like Strata for large mixture-of-experts models focus on moving experts between GPU, RAM and SSD. Unsloth Desktop adds training. oMLX's niche is a Mac server with an SSD-persistent cache and agent setup built in. We did not benchmark it against those tools, and the README does not either, so speed comparisons are untested here.
The model side keeps moving. See our post on Qwen4-35B-A3B open weights, a 35B mixture-of-experts model small enough for local use, and the Seppia Qwen4 engine for another take on local inference.
Who should use it, and who should not #
A good fit: developers on an M-series Mac who use a coding agent and want a local backend with persistent context. Teams that keep source code off third-party servers. Tinkerers who want to compare several local models behind one URL.
A poor fit: anyone on Windows or Linux, since the project targets Apple Silicon. People who need a vendor-supported product with a service agreement. Users with small unified memory who would hit the memory limit quickly, because the default limit leaves 8 GB for the system.
A middle case: if you only chat with one small model, a simpler app may do. The value of oMLX shows when you juggle several models, long contexts or agent tools.
How to try it safely #
- Download the DMG from the repository's Releases page rather than building from source if you want the kernels without Xcode.
- Launch the app and follow the three-step welcome: model directory, server start, first model download.
- Download a model that fits your RAM. Remember the default memory limit leaves 8 GB for the system.
- Run the built-in benchmark to measure prefill and generation speed on your Mac.
- Connect one agent from the Integrations panel and test with a small project.
- Keep the API key private. The server is for localhost; do not expose it on a network without authentication.
What to check before relying on it #
- Project maturity: a trending repo is not a stable product. Read the issue list and the SECURITY file.
- Model compatibility: tool-calling support depends on each model's chat template. The README lists the families it detects.
- Quality: local models differ from hosted ones. Test your own tasks.
- Licensing: each model carries its own license. The software's license is in the repository.
- Data: a local server keeps prompts on your machine, but the down fetches models from Hugging Face, so check what you pull.
Bottom line #
oMLX is a well-documented option for Mac owners who want a local OpenAI-style server with persistent caching and one-click agent setup. Its strongest idea is the SSD-backed KV cache, which suits long coding sessions. Its limits are clear in the README: Apple Silicon only, kernels that need Xcode or the DMG, and several experimental features. Measure it on your own machine before you rely on it.