Rapid-MLX
raullenchai
Local OpenAI-compatible inference server for Apple Silicon built on MLX, designed for coding agents.
What is Rapid-MLX?
A local OpenAI-compatible inference server for Apple Silicon built on MLX, designed to plug into coding agents like Cursor and Claude Code. It ships with tool-calling, prompt caching and 3,300+ tests.
Rapid-MLX in depth
Running large language models locally on a Mac usually means reaching for Ollama or llama.cpp, but neither was built specifically around Apple's MLX framework or around the messy demands of modern coding agents. Rapid-MLX, from raullenchai, is a local inference server for Apple Silicon that aims at exactly that gap. It exposes an OpenAI-compatible HTTP API, so anything that already speaks the Chat Completions format can point at it instead of a cloud endpoint. The pitch is concrete: install it, start a server with one command, and connect tools like Cursor or Claude Code to a model running entirely on your own hardware. It is Apache-2.0 licensed and fully OSI-open, with no proprietary core, which makes it a genuine candidate for replacing a cloud API in a privacy-sensitive or offline workflow.
Under the hood, Rapid-MLX is built on MLX, Apple's array framework that targets the unified memory and Metal GPU on M-series chips. It runs as an HTTP server exposing standard /v1 endpoints plus an Anthropic-style messages route, and it ships a continuous-batching engine so several concurrent requests share the GPU efficiently. What stands out for agent use is the breadth of tool-calling support: the project reports 17 format parsers covering Hermes, Qwen, DeepSeek, GLM and Kimi styles, with automatic recovery that tries to reconstruct valid structured output when a quantized model emits malformed text. Prompt caching trims the KV cache to skip re-prefilling repeated prefixes, and the project reports separate reasoning_content output for chain-of-thought models. A doctor command self-tests Metal, imports and the inference pipeline, which signals real operational maturity.
The natural audience is developers who already work on Apple Silicon and want local inference wired into coding agents rather than a general chat UI. Concrete use cases include pointing Cursor, Claude Code, Aider, Continue.dev or Goose at a local Qwen or DeepSeek model to keep proprietary code off third-party servers, or running an offline assistant on a laptop with no reliable connection. The model catalog is sized by RAM, so a 16GB Mac can serve a 4B model while a 256GB Mac Studio can host much larger ones, which makes capacity planning straightforward. Because it speaks the OpenAI and Anthropic formats, it also slots into LangChain, PydanticAI, smolagents and Open WebUI without custom adapters. For anyone already invested in the Apple hardware ecosystem, that integration surface is the strongest reason to try it.
The caveats are real and start with platform lock-in: this is macOS on Apple Silicon only, with no Linux, Windows or NVIDIA path, so it is irrelevant to anyone outside that ecosystem. Despite a high-looking version number it is officially Beta, with a PyPI development status of 4, so production reliance carries the usual early-software risk. The performance marketing also deserves scrutiny. The grounding data flags a headline 4.2x faster than Ollama with no disclosed benchmark conditions, while PyPI itself states a more modest 2-4x. The README does give specific figures, for example 2.3x at four concurrent requests on an M3 Ultra, but even there the project concedes that differing model architectures prevent apples-to-apples comparison and that some speedups vary widely by workload. Treat the numbers as directional, not guaranteed.
Against its commercial-grade alternatives, Ollama and llama.cpp, Rapid-MLX is best understood as a focused, Apple-native option rather than a universal one. Ollama and llama.cpp run almost everywhere and have huge communities; Rapid-MLX trades that reach for MLX-specific tuning, deeper tool-calling coverage and agent-oriented features that the others do not prioritize. The serious engineering signals, a reported 3,300-plus tests, the doctor diagnostic and broad model support, suggest this is more than a weekend project. Adopt it if you run local inference for coding agents on Apple Silicon and want the tightest fit with that hardware. Hold off if you need any non-Apple hardware, or if your decision hinges on reproducible, independently verified speed guarantees rather than a vendor headline. For the right user it is worth a serious trial.
Pros & Cons
Pros
- Serious engineering signals: 3,300+ tests, a doctor diagnostic, broad model support
- Clean Ollama/llama.cpp replacement on Apple Silicon
- Apache-2.0, fully OSI-open
Cons
- macOS / Apple Silicon only - no Linux, Windows or NVIDIA
- Officially Beta (PyPI development status 4) despite a high version number
- The '4.2x faster than Ollama' headline has no disclosed benchmark conditions - and PyPI states a more modest '2-4x'
License
Apache-2.0 (OSI-open)
When it is interesting
Apple Silicon users running local inference for coding agents.
When it is too early
Any non-Apple hardware, or if you need reproducible speed guarantees rather than a marketing headline.
This repo featured in the 2026-06 edition of the Open-Source AI Radar.
oMLX
jundot
macOS-native LLM inference server for Apple Silicon with continuous batching and SSD-tiered caching.
apfel
Arthur-Ficial
Expose the on-device Apple Intelligence model on macOS 26 as a zero-setup OpenAI-compatible local API.
shimmy
Michael-A-Kuykendall
Pure-Rust local inference engine with an OpenAI-compatible API, shipped as one binary.