English · 简体中文
Native macOS LLM inference, powered by Apple MLX.
macMLX runs local LLMs on Apple Silicon with a first-class native macOS experience — no cloud, no telemetry, no Electron. A polished SwiftUI app for newcomers, a proper CLI for developers, and an always-on OpenAI-compatible API for everything else.
MLX inference and a CLI used to be the whole pitch — but as of 2026 both
LM Studio and
Ollama ship MLX engines on Apple Silicon, and
LM Studio has the lms CLI. So the honest comparison is the combination: a
genuinely native macOS GUI, an always-on API, and zero Python in one ~50 MB app.
| macMLX | LM Studio | Ollama | oMLX | |
|---|---|---|---|---|
| Native macOS GUI | ✅ SwiftUI | Electron | menu-bar only | ✅ SwiftUI (v0.4+) |
| Swift-native in-process engine | ✅ | ❌ | ❌ | ❌ (Python core) |
| MLX inference | ✅ | ✅ | ✅ (preview) | ✅ |
| CLI | ✅ | ✅ lms |
✅ | launcher only |
| Resumable downloads + mirrors | ✅ | ⚠ partial | ⚠ partial | ❌ |
| OpenAI-compatible API | ✅ always-on | ✅ | ✅ | ✅ |
| Zero Python required | ✅ | ✅ | ✅ | ❌ |
Where macMLX stands alone: the inference engine itself is Swift, running in-process — oMLX's native app (v0.4+) fronts a Python core, ours has no Python anywhere in one ~50 MB DMG. On top of that: a proper CLI/TUI sharing the same Swift core, and owning frontier model architectures in pure Swift (the DeepSeek V3.2 port) instead of waiting for upstream.
macOS 14.0 (Sonoma) or later · Apple Silicon (M1–M4) · no Python required.
Download macMLX-vX.X.X.dmg from Releases, mount it, and
drag macMLX.app to /Applications. The DMG isn't notarized yet
(#19), so clear Gatekeeper on first launch:
xattr -cr /Applications/macMLX.app # clear quarantine
open /Applications/macMLX.app(Or right-click the app → Open → Open.)
Sixteen-plus releases since the v0.1 MVP, by area. This section tracks the latest shipped state — new features land here first, then get a one-line roadmap entry below.
- Engine & models — in-process MLX Swift engine (text + 16 VLM architectures, models to ~70B); tiered KV prompt cache (RAM + SSD), multi-model pool with LRU eviction, LoRA adapter inference, MCP server (
macmlx mcp serve); pure-Swift DeepSeek V3.2 architecture (DSA sparse attention + absorbed MLA + MoE) registered as a zero-fork overlay, parity-verified against the Python reference. - Downloads — resumable across cancels and app quits, live speed/ETA, HuggingFace mirror support, Hub-commit update detection.
- Chat — conversation sidebar (rename, delete, rewind), streaming Markdown, per-message actions, per-model Parameters Inspector, collapsible
<think>reasoning blocks. - API — always-on OpenAI-compatible server plus Ollama (NDJSON) and Anthropic (
/v1/messages) compatibility,/v1/embeddings+/v1/rerank, optional bearer auth, model aliases + idle TTL,reasoning_contentseparation, model cold-swap by ID, stall watchdog, CORS + probe endpoints, generation serialized across clients. - CLI — native ANSI dashboards for
pull/serve/run, PID coordination shared with the GUI. - Benchmark & Logs tabs — local tok/s · TTFT · peak memory with a community leaderboard; a Pulse-backed log viewer with MLX stdout/stderr teed in.
Full per-release detail: CHANGELOG.md.
GUI — launch macMLX; the setup wizard picks the engine and model directory; download a model from the built-in HuggingFace browser; load and chat.
CLI
macmlx pull mlx-community/Qwen3-8B-4bit # download
macmlx run Qwen3-8B-4bit "Hello, world" # single prompt
macmlx serve # API on :8000
macmlx ps / stop # status / shutdownThe OpenAI-compatible server runs on http://localhost:8000/v1 whenever a
model is loaded (or macmlx serve is running). Point any OpenAI client
(Cursor, Continue, Cline, Open WebUI, Zed, Raycast, …) at that base URL with
any key.
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"Qwen3-8B-4bit","messages":[{"role":"user","content":"Hi"}]}'| Engine | Status | Notes |
|---|---|---|
| MLX Swift (default) | ✅ Shipping | Apple's mlx-swift-lm, in-process. Text + 16 VLM architectures, models to ~70B, tiered KV cache + model pool + LoRA. |
| SwiftLM (100B+ MoE) | 🔓 Reopenable | Subprocess path, unblocked since sandbox-off (#12 / #13) — not yet committed. |
| Python mlx-lm | 🔓 Reopenable | Subprocess path for max model coverage, in exchange for uv on PATH. |
Every engine hides behind one InferenceEngine protocol — the GUI never
knows which one runs.
macMLX.app (SwiftUI) macmlx (CLI)
└──── MacMLXCore ────┘ (Swift SPM package)
│
InferenceEngine → MLXSwiftEngine (in-process)
│
HummingbirdServer → http://localhost:8000/v1
│
Apple Silicon (Metal / ANE)
Data lives under ~/.mac-mlx/ (models, conversations, params, logs,
settings) — a dotfile under real $HOME, so the sandboxed app reads/writes
without entitlements while staying visible to power users.
git clone https://github.com/magicnight/mac-mlx && cd mac-mlx
brew bundle # dev tools
open macMLX/macMLX.xcodeproj # GUI (or: xcodebuild -scheme macMLX build)
swift build --package-path macmlx-cli # CLI
swift test --package-path MacMLXCore # tests (~3s)Kept current per release: when a
0.xships, it moves from a future section up to Shipped, and the feature highlights above get updated to match.
- Shipped (v0.1 → v0.5) — native GUI + menu bar + CLI + OpenAI API (v0.1); download & chat polish (v0.2); Benchmark, Logs, chat history, API cold-swap, Ollama compat, sandbox-off (v0.3); and the v0.5 engine leap — VLMs, tiered KV cache, model pool, LoRA, MCP server. Per-tag detail in CHANGELOG.md.
- Next release (on
main) — server hardening: api-key auth, Anthropic/v1/messages, aliases + idle TTL, template kwargs (v0.5.1); embeddings + rerank endpoints (v0.5.2); the server/pool stability wave — atomic swap+generate, leak-proof generation lock, stall watchdog, pool pinning + true cancellation (v0.5.3); MCP client pool;reasoning_contentseparation (#30); and the DeepSeek V3.2 pure-Swift port — DSA sparse attention + absorbed MLA + MoE as a zero-fork overlay into mlx-swift-lm's factory, every component parity-verified at1e-4against the Python reference. macMLX's differentiation now that Ollama and LM Studio also ship MLX backends. - In progress — chat-side MCP tool routing; DeepSeek follow-ups (real-checkpoint smoke, then the V4 increment); true cross-encoder reranker. (The server/pool hardening backlog from the debug round is fully landed — PRs #55-#57.)
- Next (v0.6) — agent backend — continuous batching (self-built orchestrator over upstream's batch cache primitives), longest-common-prefix prompt-cache reuse across agent turns, structured output (JSON-schema-constrained decoding), speculative decoding wired up (draft models + MTP), an API-compat pack (
logit_bias/logprobs/ per-request adapters / servertoolspass-through), GUI upgrades (existing-HF-cache discovery, coding-agent Integrations screen, model-card polish), and a rolling pipeline of pure-Swift model ports (Llama 4, Command R7B, Kimi, MiniCPM3, …). - Later (v0.7+) — speech I/O (MLX-native STT/TTS); community benchmarks service; custom Metal kernels for our DeepSeek DSA path if profiling demands it.
- Reopenable (feasible since sandbox-off) — Python / SwiftLM subprocess engines (#12 / #13), Homebrew tap (#20), signed + notarized DMG (#19).
Issues and PRs welcome — see CONTRIBUTING.md. Apache 2.0 (LICENSE).
MLX + mlx-swift-lm (Apple), Swama, SwiftLM, oMLX, Hummingbird, Sparkle, Pulse, SwiftTUI. Full citations: CITATIONS.bib.