ddalcu/mlx-serve
Native LLM inference server for Apple Silicon. OpenAI + Anthropic API compatible. No Python. Zig backend, Swift frontend macOS app with chat, music, voice, video generation.
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the week
#1 Repository of the week
🚀 Native LLM Server for Apple Silicon
A Zig backend and Swift frontend delivering fast local LLM inference without Python, Electron, or cloud dependencies.
mlx-serve is a native inference server for Apple Silicon that runs any LLM locally — supporting both MLX-format models and all GGUF files from HuggingFace. Built in Zig with a Swift-based macOS menu-bar app called MLX Core, it offers OpenAI- and Anthropic-compatible HTTP APIs. Designed for speed and simplicity, it avoids Python, Electron, and cloud reliance, targeting developers who want fast, local LLM access on macOS.
✨ Highlights
- Run any LLM: Supports all MLX architectures and every GGUF model via embedded llama.cpp, including DeepSeek V4 Flash.
- OpenAI-compatible API: Provides /v1/chat/completions, /v1/embeddings, streaming, tools, JSON-schema decoding, and logprobs.
- Anthropic Messages API: Enables Claude Code and Anthropic SDK compatibility via /v1/messages.
- Speculative decoding: Includes PLD (default) and Gemma 4 drafter for faster generation on supported models.
- KV-cache quantization: Offers 4/8-bit quantization and TurboQuant to reduce memory usage.
- Continuous batching: Handles multiple requests efficiently for improved throughput.
- Built-in agent loop: Includes MCP client with 10 tools and one-click launchers for Claude Code and OpenCode.
- Native macOS app: MLX Core delivers chat, agent mode, and model management without Electron.
💡 Why it matters
mlx-serve stands out by combining native performance with broad API compatibility, eliminating the need for Python or Electron while delivering faster decode speeds than LM Studio on identical hardware. Its support for both MLX and GGUF models, along with speculative decoding and agent features, makes it ideal for developers building local AI workflows on Apple Silicon.
It fits best for macOS users seeking a lightweight, high-performance alternative to Electron-based tools, especially those integrating with Claude Code, Cursor, or Open WebUI.
#LLM #AppleSilicon #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
Rapid-MLX is an open-source (Apache 2.0) OpenAI- and Anthropic-compatible LLM inference server for Apple Silicon, built on MLX, focused on reliable tool calling for coding agents. Up to 4× faster than Apple's MLX (mlx-lm) on the same weights.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Reverse engineer anything with agents, from app behavior down to native binaries.
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1
Native MLX runtime for Laya typed decision models — 7–14 ms short decisions on M3 Max. No text generation, PyTorch, or cloud API.
Hit your Claude Code usage limit? Keep going free and offline on a local model: Qwen 3.8, Gemma 4, and Qwen 4 the day it ships. Runs on Apple Silicon Macs (MLX), Linux and Windows (llama.cpp) with no API key. Your code stays home.