# Repository Briefing: ddalcu/mlx-serve
> Source: https://repoforai.com/repo/ddalcu/mlx-serve (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ddalcu/mlx-serve
- **Official Docs / Website**: https://mlxserve.com/
- **Category**: LLMs & Inference (大模型与推理微调)
- **Primary Language**: Zig
- **License**: See repository
- **Engineering Health**: A (79/100 · Maintenance 35/35 · Adoption 18/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v26.11.4 (2026-11-27) — https://github.com/ddalcu/mlx-serve/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, Local AI, CLI, API, GPU
- **Momentum**: 2,724 ★ total (+3 24h / +71 7d) · 320 forks
- **Topics**: `agent`, `anthropic-api`, `apple-silicon`, `claude-code`, `deepseek-v4`, `diffusion`, `gguf`, `image-generation`, `inference`, `llm`, `local-llm`, `macos`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
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
```
