Guides · · updated 2026-11-30

oMLX setup and tuning on Apple Silicon

Install oMLX, serve a Qwen3.6 model over OpenAI and Anthropic APIs, and tune the KV cache for long agent sessions.

Researched and drafted with AI assistance from the cited sources. Benchmarks are single-machine third-party results: treat them as indicative, not guaranteed.

Why oMLX

Coding agents resend long system prompts and keep shifting their context. On most servers that invalidates the KV cache and forces a full prefill, which is slow on a Mac. oMLX exists to fix this. It is an Apple Silicon-only MLX server with a tiered RAM + SSD KV cache whose blocks persist across restarts, plus continuous batching and multi-model serving (LLMs, VLM/OCR, embeddings, rerankers). The project says time-to-first-token on long agent contexts drops from 30–90 s to under 5 s. That is the project’s own claim, so measure it on your machine.

Current version (Nov 2026): Apache-2.0, ~23k GitHub stars, created Feb 2026. The current stable release is 0.8.4 (2026-11-26; the Homebrew formula points at it too), which mostly makes Inkling 2 Mini faster. It is fast-moving, so expect some config friction. What changed in each release since 0.7.1, with upgrade notes, is in the release history at the end of this page.

More on the 0.8 series: what oMLX 0.8.0 added (Prefill Accelerator and oQh quants), running Inkling 2 Mini with oMLX or Ollama (which oQ build to pick and how much memory it needs), and Inkling 2 Mini’s first week of runtime updates (oMLX 0.8.4, llama.cpp v1.1.0, LM Studio 0.4.29 and Ollama 0.40.18).

Requirements

Install

Either download the DMG (it includes a menu-bar app) from omlx.ai or the GitHub releases page, or use Homebrew:

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

Serve and connect

oMLX listens on port 8000 and exposes:

Load a model from the admin UI. For coding agents, Qwen3.6-35B-A3B (~20 GB at 4-bit) is the common default if you have 32 GB+ of RAM. See choosing a Qwen3.6 quant. On 32 GB+ you can also try Inkling 2 Mini (oMLX 0.8.1 or later; the oQ3e and oQ4e builds are 13.7 GB and 16.9 GB), covered in Inkling 2 Mini on a Mac.

Quick smoke test (use the model ID shown in the admin UI). Once you set an API key, inference requests need it as a Bearer token unless you turn off key verification for localhost in the admin panel’s global settings:

curl http://localhost:8000/v1/chat/completions \
  -H "Authorization: Bearer $OMLX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"<model-id>","messages":[{"role":"user","content":"Say hi"}]}'

Tuning checklist

  1. Cap context to what you use. A larger context means more KV memory. Agents rarely need the full 262k native window.
  2. Keep the SSD cache tier on. It’s the whole point for agents: repeat prefixes hit cache instead of recomputing.
  3. Try TurboQuant KV (experimental). The 3.5-bit KV-cache setting reportedly cuts KV memory by roughly 4x, which leaves room for longer contexts. It’s experimental, so compare output quality. In 0.7.1 you can also pick Affine4 or Affine8 under Model Settings > Memory Saving > KV cache compression. In the project’s own M5 Max test (Qwen3.8-27B, 32K prompt), they cut full-attention KV by 74% and 49%, with decode within about 0.6 tok/s of BF16.
  4. Prefer MLX-format quants over GGUF on Apple Silicon.
  5. Watch memory pressure and swap in Activity Monitor. If swap grows, shrink the context or the model. Swapping causes a sharp performance cliff.

Setting names change between releases, so check the current README for exact options.

Release history

Newest first. Speed and memory figures are the oMLX project’s own measurements, not ours.

FAQ

How do I install oMLX on a Mac?

You need an Apple Silicon Mac on macOS 15 or newer. Download the DMG (it includes a menu-bar app) from omlx.ai or the GitHub releases page, or use Homebrew: brew tap jundot/omlx https://github.com/jundot/omlx, then brew install jundot/omlx/omlx.

What port does oMLX use?

Port 8000. The OpenAI-compatible API is at http://localhost:8000/v1, the Anthropic-compatible API at http://localhost:8000/v1/messages, and the admin UI, where you load models, at http://localhost:8000/admin.

What is the latest version of oMLX?

The current stable release is 0.8.4 (November 26, 2026), and the Homebrew formula points at it too. It mostly makes Inkling 2 Mini faster, by the project's own figures. The release history on this page lists what changed in each version and what to do when upgrading.

Does oMLX work with Claude Code?

Yes. oMLX serves an Anthropic-compatible API at http://localhost:8000/v1/messages. Since 0.7.2, Claude Code turns no longer re-prefill the whole conversation, and since 0.8.3 Claude Code's WebSearch tool works with local models.

How much RAM do I need for oMLX?

The model you load sets the memory you need, not oMLX itself. For coding agents, Qwen3.6-35B-A3B (about 20 GB at 4-bit) is the common default if you have 32 GB or more; Inkling 2 Mini's oQ3e and oQ4e builds are 13.7 GB and 16.9 GB. Keep an eye on memory pressure and swap in Activity Monitor, and shrink the context or the model if swap grows.

Sources

  1. https://github.com/jundot/omlx
  2. https://github.com/jundot/omlx/releases/tag/v0.8.4
  3. https://github.com/jundot/omlx/releases/tag/v0.8.3
  4. https://github.com/jundot/omlx/releases/tag/v0.8.2
  5. https://github.com/jundot/omlx/releases/tag/v0.8.1
  6. https://github.com/jundot/omlx/releases/tag/v0.8.0
  7. https://github.com/jundot/omlx/blob/v0.8.0/docs/experimental/prefill-accelerator.md
  8. https://github.com/jundot/omlx/releases/tag/v0.7.3
  9. https://github.com/jundot/omlx/releases/tag/v0.7.2
  10. https://github.com/jundot/omlx/releases/tag/v0.7.1
  11. https://github.com/jundot/omlx/releases/tag/v0.7.0
  12. https://github.com/jundot/omlx/releases/tag/v0.7.1.dev2
  13. https://github.com/jundot/omlx/releases/tag/v0.7.1rc1
  14. https://github.com/jundot/omlx/pull/3574
  15. https://huggingface.co/mlx-community/DeepSeek-V4.1-Flash-1017-oQ2e-mtp
  16. https://omlx.ai/
  17. https://dev.to/chikitins/how-to-install-and-tune-omlx-on-m5-max-128-gb-3no1
  18. https://www.oflight.co.jp/en/columns/omlx-apple-silicon-llm-inference-server-2026
  19. https://www.reddit.com/r/LocalLLM/comments/1t1veme/slow_performance_with_qwen_3627b_gemma_431b_on_m3/

Compare every runtime and model, with suggested RAM and sources, in the Models & Tools directory.

Skip the trial and error: sourced config packs →

Get the weekly Mac local-AI digest

New models, tool updates, and sourced configs. Free. Unsubscribe anytime.

We use your email only for the UnifiedMem newsletter. Unsubscribe anytime. See ourabout page for contact.