← Back to Leaderboard
Mddalcu

ddalcu/mlx-serve

Zig inference server for local models on Apple Silicon, with OpenAI and Anthropic APIs

Engineering Health (Methodology)
A · 79/100
Maintenance Activity
● Updated today
Latest Release
v26.11.4
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence20/20
License Clarity6/20
Self-HostedLocal AICLIAPIGPU
Total Stars
★ 2,724
24h Growth
+3
7d Growth
+71
Forks
320

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

ddalcu/mlx-serve Star History (2026-04-05 - 2026-12-04) ALL-TIME STAR HISTORY (2026-04 – 2026-12) +2.7k in 243d · avg +11/day 2.9k 1.4k 0 2026-04-05: ★ 12026-04-25: ★ 212026-05-16: ★ 592026-06-06: ★ 1302026-06-27: ★ 1852026-07-18: ★ 3332026-08-08: ★ 5362026-08-29: ★ 8972026-09-19: ★ 1,3992026-10-10: ★ 1,8102026-10-31: ★ 2,2032026-11-15: ★ 2,4682026-12-04: ★ 2,724 ★ 2.7k 2026-04 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

MLX-Serve pairs a Zig inference server with a native Swift macOS app. The macOS build uses a pinned Zig toolchain and builds MLX and llama.cpp; it does not require Python. mlx-serve pull stages model weights with resumable downloads, mlx-serve serve loads downloaded models on demand, and mlx-serve run combines download, serving, and a terminal chat session.

One listener at http://localhost:11234 exposes OpenAI Chat, Completions and Responses, Anthropic Messages, and Ollama API surfaces alongside a browser console. A coding client can target that listener directly, or mlx-serve launch claude can configure Claude Code against a local model's context window. Models, media, quantization, and engines have separate plugin interfaces that do not require rebuilding the server.

Key Capabilities & Differentiators

The engine supports MLX checkpoints for supported architectures and GGUF models. Its language endpoints cover streaming, tool calls, JSON schemas, vision, and reasoning; media workloads include FLUX.2 image generation, LTX-Video, ACE-Step music, and Qwen3-TTS. Speech transcription supports 30 languages with word timings and speaker attribution. Selected MoE models such as GLM-5.3-Flash and DeepSeek-V4.1-Flash can stream experts from SSD on a 128 GB Mac, and two Macs connected via Thunderbolt 5 can run one model together.

On a 256 GB M5 Ultra, v26.11.4 records 436 tokens/s for 4-bit Qwen3.6 35B-A3B and 197 tokens/s for 4-bit Gemma 4 E4B on a code prompt with speculative decoding enabled. Those are decode rates for that configuration, not time to first token or concurrent request throughput. The same release adds Inkling 2 Mini support from its released checkpoint, an mlx-lm pack, or an oMLX oQ pack, with image input and batched GPU verification of drafts across concurrent chats.

Trade-offs & Limitations

Compared with the hosted OpenAI API, this is an infrastructure substitution, not a model substitution: clients can reuse familiar request shapes, but open checkpoints have their own output quality, tool behavior, and context limits. Local inference can keep model requests on the machine and work offline once weights are present, but hardware, capacity planning, upgrades, and service access are yours to manage. Ollama users get familiar run/pull/serve commands, but should test the specific clients and endpoints they need rather than assume full parity.

Gemma 4 E4B is the suggested starting point for 16 GB Macs; it is not a guarantee for long-context or concurrent workloads. Quantization, context length, and active sessions all matter. SSD expert streaming makes larger models viable by trading memory residency for storage I/O, so measure interactive latency on the intended machine. The software is described as MIT-licensed, but the supplied license metadata is unspecified and the root contains multiple license and notice files; verify scope and check model terms separately before redistribution.

Hardware & Deployment Guide

For Apple Silicon Macs, install the DMG or Homebrew cask on macOS 26.2 or later, or use the Homebrew formula for a server-only setup. Stage weights before going offline. For a macOS source build, use Xcode 26.2 or later and Homebrew, clone with submodules, and run ./app/build.sh; it fetches pinned Zig, builds MLX and llama.cpp, and ad hoc signs the app. A17 Pro-class or newer iPhones can run the same engine offline on iOS 26.

Linux releases include NVIDIA x64 downloads for RTX 20–50 series cards and arm64 downloads for DGX Spark, GH200, and Jetson Thor. The Windows NVIDIA path is a scripted build; do not assume it offers the same packaging or app features as macOS. Recent releases have developed the desktop and server tracks in parallel: v26.11.3 adds Quick Create media templates, while v26.11.4 adds support for Inkling 2 Mini and GPU draft verification across concurrent chats.

Runtime: Zig inference server and a native Swift macOS app, with no Python in the macOS build.
Protocol compatibility: OpenAI Chat, Completions and Responses, Anthropic Messages, and Ollama APIs share port 11234.
Model lifecycle: pull downloads resumably; serve loads downloaded models on request. Supported MLX architectures and GGUF are available.
Extensibility: Separate plugin interfaces for models, media, quantization, and engines without rebuilding the server.
GPU scheduling: v26.11.4 batches speculative draft verification for concurrent Inkling 2 Mini chats on the GPU.
Memory scaling: Selected MoE models stream experts from SSD on a 128 GB Mac; a Thunderbolt 5 pair can run one model together.
Best For

Apple Silicon developers and small teams running local coding agents, chat, or media workflows who want familiar APIs and can validate model fit on their own hardware.

Skip If

You need managed capacity or exact hosted-model behavior, or your deployment depends on macOS app features but runs on Linux or Windows.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedLocal AICLIAPI
brew tap ddalcu/mlx-serve https://github.com/ddalcu/mlx-serve
brew trust ddalcu/mlx-serve
brew install --cask mlx-serve   # the app
brew install mlx-serve          # or only the command-line server

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
mlx-serve ★2.7k+71Zig—Zig inference server for local models on Apple Silicon, with OpenAI and Anthropi
OmniRoute92.1k+1.5kTypeScriptMITSelf-hosted OpenAI-compatible gateway for multi-provider routing and fallback
nano-vllm16.7k+95PythonMITA compact vLLM-style Python engine for offline GPU batch inference
ollama189k+703GoMITGo-based LLM serving layer for local model management and inference

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/ddalcu/mlx-serve.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

ddalcu/mlx-serve Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about mlx-serve

How do I connect an existing client to the local server?

Point the client at http://localhost:11234 and choose the OpenAI, Anthropic, or Ollama interface it expects. mlx-serve serve makes downloaded models available and loads them on request. Before migrating, test the actual client workflows you rely on, especially streaming, tool calls, and structured output.

What should I run on a 16 GB Mac, and how should I size a larger deployment?

On a 16 GB Mac, start with Gemma 4 E4B. Treat the memory tiers as starting points, not guarantees for a given context length or concurrency level. Model weights, quantization, prompt and generation length, and simultaneous requests all affect memory pressure. Size NVIDIA deployments separately rather than mapping Mac unified-memory tiers directly to GPU VRAM.

What should I verify before commercial self-hosting or redistribution?

The project identifies the software as MIT-licensed, while the supplied license metadata is unspecified. The root includes LICENSE, LICENSE-APACHE-2.0, and NOTICE; inspect those files and confirm their scope before commercial redistribution. Review checkpoint terms separately: self-hosting and offline execution do not grant rights to use or redistribute model weights.

When would I choose it over the OpenAI API or an existing Ollama setup?

Choose MLX-Serve over a hosted OpenAI API when local execution and control of the inference environment are worth managing model downloads, hardware, and capacity yourself. If you already use Ollama clients, MLX-Serve offers a familiar CLI and API surface, plus native macOS media workflows. Switch only after checking the model, endpoint, and workload behavior you depend on.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining ddalcu/mlx-serve? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature ddalcu/mlx-serve on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare