Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)
Add a star history chart too →

Runs local MLX LLMs on Apple Silicon with continuous batching, tiered KV caching and an OpenAI-compatible API, managed from the macOS menu bar.

Best position on GitHub Trending (daily): #2. Click to get this badge for your README
24,532
2,361
Python
Apache-2.0
9 months old

What it is

oMLX is a local inference server for MLX models on Apple Silicon. It serves text LLMs, vision-language models, OCR models, embeddings/rertrankers and exposes OpenAI- and Anthropic-compatible endpoints, so existing clients — including coding agents — can point at http://localhost:8000/v1 instead of a cloud API.

Its distinguishing piece is the cache stack: paged KV cache blocks live in a hot RAM tier and spill to SSD in safetensors format, with prefix sharing and copy-on-write. When a client like Claude Code sends a shifting prompt prefix, blocks are restored from disk rather than recomputed, and the cache survives restarts. In the author's Show HN account, follow-up requests with 50–100K-token contexts dropped from roughly 30–90 s time-to-first-token to 1–3 s developer's explanation. Optional Affine4/Affine8 KV compression reduces cache size further.

Other pieces: continuous batching through mlx-lm's BatchGenerator, multi-model serving with LRU eviction, model pinning, per-model TTL and memory ceilings, a web admin dashboard with built-in chat, downloader and benchmark, an OpenAI-compatible API including embeddings, rerank, audio transcription and an Anthropic /v1/messages endpoint.

Install and quick start

Prerequisites: macOS 15.0 or newer and Apple Silicon (M1–M5). Python 3.11–3.13 is needed only for the Homebrew or source installs.

Easiest path is the macOS app: download the .dmg from Releases, drag it to Applications, launch it, and the welcome screen walks through choosing a model directory, starting the server and downloading a first model. The app also installs an ~/.omlx/bin/omlx CLI shim.

Alternatively, via Homebrew:

brew tap jundot/omlx https://github.com/jundot/omlx
brew install jundot/omlx/omlx --with-custom-kernel   # requires full Xcode
omlx start

For a foreground server with your own models:

omlx serve --model-dir ~/models

The server auto-detects model types from subdirectories and listens on port 8000. Verify by calling any OpenAI-compatible client against http://localhost:8000/v1, or open the built-in chat at http://localhost:8000/admin/chat. Running without a model directory first is possible, but you need MLX-format model folders (or use the dashboard downloader from HuggingFace) before inference works.

Constraints that matter

  • Hardware and OS: Apple Silicon only, macOS 15.0+. There is no Linux or Intel Mac support for the server itself; the experimental prefill-accelerator helper can run on NVIDIA Linux machines.
  • Custom kernels: GLM-5.2, MiniMax M3 and Qwen3.5 families need the native Metal kernels; without them they silently fall back to generic paths — around 30x slower prefill for GLM-5.2 in the author's measurement — and use more memory. Building them requires full Xcode with the Metal toolchain, not just Command Line Tools. The DMG ships them precompiled; make install-no-kernels and plain pip install -e . skip them.
  • Authentication: oMLX refuses to start on any non-loopback address without a main API key. Turning off all authentication is restricted to loopback binds. "Allow inference without API key" on a network bind lets anyone who can reach the port use inference, MCP tools and web search, while management endpoints still need the key.
  • Model formats: native serving expects MLX-format checkpoints; GGUF files are listed but run through the external Splash engine in a separate process.
  • Experimental features: multi-Mac sharding and the prefill accelerator are source-build, experimental paths with their own setup and security-boundary documentation.
  • Disk usage: SSD cache defaults to auto, which budgets 50% of free disk plus existing cache files; a fixed limit such as --paged-ssd-cache-max-size 20GB is available.
  • License: Apache 2.0.

HotRepo's take

oMLX reached No. 2 on the all-language GitHub daily rank on 2026-12-05, with 24,298 stars at that snapshot. The growth pattern is sustained rather than a single spike: daily records show roughly 13.1k stars in mid-May 2026 growing to around 20k by late August, with daily gains on several days between +96 and +472. The Show HN posts drew only a few points each, so the star curve is not explained by a large Hacker News thread; what is visible is a steady climb over months. The substantive technical claim — that SSD-backed paged KV caching fixes repeated prefill for coding agents — is the part worth evaluating against your own workload, and the README provides a one-click benchmark in the dashboard plus published benchmark pages for that purpose.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

Hacker News

OMLX: Local LLM Server for Apple Silicon Macs
▲ 4 · 0 comments · May 11, 2026

You might also like

  1. incoai/splashLocal LLM inference server for Apple silicon Macs, exposing OpenAI- and Anthropic-compatible APIs for coding agents.C++2,404
  2. ml-explore/mlxA NumPy-style array framework with lazy execution and unified memory, built for training and running models on Apple silicon.C++28,920
  3. ashhart/TensorFoldServe quantized LLMs natively on Apple Silicon and NVIDIA GPUs with an OpenAI-compatible API and no Python.Zig1,812
  4. nace-ai/kapitsaA local inference engine for running Qwen, Nemotron and Flint models on Apple silicon Macs, aimed at coding agents.C++433
  5. enwove/flyxSelf-contained C++/CUDA LLM inference engine that serves GGUF models through OpenAI- and Anthropic-compatible APIs on a single NVIDIA GPU.C++104