Skip to content
FossShelf
Home / Categories / For AI Engineers

omlx

Fast LLM inference for Apple Silicon with persistent SSD KV caching

Replaces Lm Studio, Msty Studio

23.67K starsApache-2.0reviewed 18 Aug 2026last commit 13 Nov 2026
Screenshot of omlx

Who it's for

Developers running Claude Code or Cursor locally on Apple Silicon

oMLX serves as the local backend for Claude Code, Cursor, and OpenClaw, providing both OpenAI-compatible and Anthropic-compatible endpoints. The SSD KV cache means repeated context prefixes are restored from disk rather than recomputed, keeping tool response times under 5 seconds on long agentic sessions.

If you are on a Linux or Windows machine, or do not have an Apple Silicon Mac, oMLX does not run on your hardware. Use Ollama, vLLM, or another inference server instead.

AI engineers running multi-model inference on a Mac with large RAM

oMLX serves LLMs, VLMs, embedding models, and rerankers from the same server, with LRU eviction and manual pinning. Continuous batching handles multiple concurrent agent threads. The admin dashboard exposes per-request metrics, per-model settings, and one-click benchmarks.

If your primary workload is batch inference at scale on GPU clusters, oMLX is optimized for Apple Silicon unified memory and is not intended for datacenter GPU inference.

Developers exploring vision-language and OCR models locally

VLM support (since v0.2.0) covers multi-image chat, base64/URL/file image inputs, and tool calling with vision context. OCR models including DeepSeek-OCR, DOTS-OCR, and GLM-OCR are auto-detected with optimized prompts. The same paged SSD caching stack applies to VLM inference.

If you need production-scale VLM serving with GPU acceleration outside Apple Silicon, oMLX is not the right deployment target.

The problem

Running local LLMs for coding agents is painful when the cache works against you. Every time a coding agent switches context mid-session, conventional LLM servers like LM Studio and Ollama discard and recompute the entire KV cache from scratch. On long contexts, that prefill recomputation takes 30 to 90 seconds per turn, making agentic tools feel unusable locally. The problem compounds with agents that loop back to earlier context. Each revisit to a previously processed prefix triggers a full recompute, burning time and blocking the next request. Teams running Claude Code or Cursor locally must either accept slow response times or pay cloud API rates for every token.

How it works

Paged SSD KV caching

Persists KV cache blocks to SSD in safetensors format using a two-tier architecture: hot blocks stay in RAM, cold blocks offload to disk. When an agent revisits a previously seen prefix, oMLX restores it from disk instead of recomputing, cutting time-to-first-token from 30-90 seconds to under 5 seconds. Cache blocks survive server restarts.

Continuous batching with mlx-lm

Handles concurrent requests through mlx-lm's BatchGenerator without queuing each behind the last. At 8x concurrency, generation throughput reaches 4.14x the single-request speed on Qwen3-Coder-Next-8bit, measured at 243.3 tok/s versus 58.7 tok/s for a single request.

Native Swift/SwiftUI macOS menu bar app

Starts, stops, and monitors the inference server from the macOS menu bar without opening a terminal. Written in Swift/SwiftUI, not Electron. Signed and notarized for macOS, with built-in auto-update, persistent serving stats, and auto-restart on crash.

OpenAI and Anthropic drop-in API

Exposes both /v1/chat/completions (OpenAI) and /v1/messages (Anthropic) endpoints, so Claude Code, Cursor, OpenClaw, and any OpenAI-compatible client connect without code changes. The admin dashboard generates the exact config command for each tool.

Multi-model serving with LRU eviction

Loads LLMs, vision-language models, embedding models, and rerankers simultaneously. When memory runs low, least-recently-used models evict automatically. Frequently used models can be pinned to stay loaded, and per-model TTL sets an idle timeout for auto-unload.

Tool calling and MCP integration

Supports all major tool calling formats: JSON, Qwen XML, Gemma, GLM, MiniMax, Mistral, and others. MCP tool integration is available via pip install mcp, with tool result trimming for oversized outputs. Settings are configurable per model from the admin panel.

Features

  • Paged SSD KV caching
  • Continuous batching with mlx-lm
  • Native Swift/SwiftUI macOS menu bar app
  • OpenAI and Anthropic drop-in API
  • Multi-model serving with LRU eviction
  • Tool calling and MCP integration

How to install

Install oMLX via Homebrew on an Apple Silicon Mac with macOS 15 and Python 3.11 or later, then start the server.

brew tap jundot/omlx https://github.com/jundot/omlx
brew install jundot/omlx/omlx
omlx start

Recommended for this setup

Strengths

  • SSD cache persistence that survives server restarts: Other local inference servers keep KV cache in RAM and invalidate it on context change or restart. oMLX restores cached blocks from disk after restart, so previously computed prefixes stay available across sessions. The project documents TTFT dropping from 30-90 seconds to under 5 seconds for agentic coding tools on long contexts.
  • Apache-2.0 license with no usage restrictions: Apache-2.0 allows commercial use, modification, and distribution without requiring open-sourcing of derivative works. Unlike paid inference tools, there are no per-seat costs, usage caps, or vendor lock-in. The full source is on GitHub at github.com/jundot/omlx.
  • Reads existing Hugging Face and LM Studio model caches: oMLX reads the standard Hugging Face cache at ~/.cache/huggingface/hub, shared by Transformers, MLX, vLLM, and llama.cpp. It also reads the LM Studio model folder automatically. No re-download is required when switching from another inference server.
  • Native macOS app, not Electron: The menu bar application is written in Swift/SwiftUI. It is signed and notarized by Apple and ships with in-app auto-update. A lightweight CLI shim installs alongside the app, so Apple Shortcuts and terminal scripts can control the server without extra dependencies.

Trade-offs

  • macOS and Apple Silicon only: oMLX requires Apple Silicon (M1 or later) and macOS 15 (Sequoia) or later. Linux, Windows, and Intel Macs are not supported. Teams running mixed-OS infrastructure cannot use it as a shared inference server.
  • 16GB RAM minimum, 64GB recommended for real use: The minimum supported RAM is 16GB, but the documentation recommends 64GB or more for comfortable use with larger models. Running 122B-parameter models like Qwen3.5-122B-A10B-4bit requires the M3 Ultra with 512GB RAM for the benchmark numbers shown on the site.
  • Native custom kernels require full Xcode to build: Source builds without native custom kernels silently fall back to slower generic paths. For GLM-5.2, the fused DSA prefill is roughly 30x faster with the kernels (845 vs ~29 tok/s on M3 Ultra). Building them requires full Xcode; Command Line Tools alone are insufficient. The official DMG ships the kernels precompiled.

Tech stack

Languages
Python, Swift, HTML, JavaScript, C++, Metal, Objective-C++, CSS, Shell, Ruby, Makefile, Dockerfile
Frameworks
FastAPI
Databases
—
Tooling
—

FAQ

How is oMLX different from Ollama or LM Studio for coding agents?

Ollama and LM Studio keep KV cache in memory and recompute it on every context shift. oMLX persists cache blocks to SSD, so when a coding agent revisits a previous context prefix, it restores from disk instead of recomputing from scratch. Time-to-first-token drops from 30-90 seconds to under 5 seconds on long agentic sessions. The server also exposes both OpenAI and Anthropic-compatible API endpoints, which Ollama does not natively support for the Anthropic format.

What hardware do I need to run oMLX?

Apple Silicon (M1 or later) with macOS 15 (Sequoia) or later. The minimum RAM is 16GB, but 64GB or more is recommended for comfortable use with larger models. The sweet spot for daily coding work is an M-series Pro or Max with 64GB. The M3 Ultra 512GB is used for the benchmark results published on the site.

Does oMLX work with Claude Code, Cursor, and OpenClaw?

Yes. oMLX provides both OpenAI-compatible (/v1/chat/completions) and Anthropic-compatible (/v1/messages) endpoints, so all three connect as drop-in backends. The admin dashboard includes a config generator: select your model, copy the command, and paste it into your terminal. No manual config file editing is needed.

Do I need to re-download my models to use oMLX?

No. oMLX reads the standard Hugging Face cache at ~/.cache/huggingface/hub, shared by Transformers, MLX, vLLM, and llama.cpp. It also reads your LM Studio model folder automatically. For new models, the admin dashboard has a built-in HuggingFace downloader.

What is the oMLX license and can I use it commercially?

Apache-2.0. You can use it commercially, modify it, and distribute it without restriction. There are no usage caps, per-seat costs, or vendor lock-in. The source is on GitHub at github.com/jundot/omlx.

Similar tools

More in AI Engineers