AgentConn
R

Rapid-MLX

Coding Free

About Rapid-MLX

Rapid-MLX is a local LLM inference engine purpose-built for Apple Silicon (M1/M2/M3/M4 series). It uses Apple's MLX framework — designed for unified memory with native Metal compute kernels — to deliver 4.2× the throughput of Ollama and ranks #1 on 16 of 18 benchmarked models. The OpenAI-compatible API makes it a drop-in replacement for any tool that speaks the OpenAI Chat Completions or Anthropic Messages format, including Claude Code, Cursor, and Aider. Rapid-MLX includes 17 tool-call parsers with automatic recovery for quantized models, separates reasoning_content from content for chain-of-thought models, runs a prompt cache that delivers sub-100ms TTFT on cache hits, and auto-routes large-context requests to a cloud LLM when local prefill would be slow. It is part of the broader May 2026 on-device-inference convergence — alongside Chrome's covert Gemini Nano Prompt API and Mistral Medium 3.5 — that is compressing hosted-LLM gross margins from below.

Key Features

  • 4.2× faster than Ollama on Apple Silicon — #1 on 16 of 18 benchmarked models
  • 0.08s cached time-to-first-token for sub-100ms perceived latency
  • Drop-in OpenAI / Anthropic API compatibility — works with Claude Code, Cursor, Aider
  • 17 tool-call parser formats with automatic recovery for quantized models
  • Prompt cache via KV-cache trimming + state snapshots for hybrid RNN models
  • Cloud routing — auto-fallback to hosted LLM when local prefill would be slow

Overview

Rapid-MLX is the fastest local AI engine on Apple Silicon, built on Apple’s MLX framework rather than the C++-centric stacks (llama.cpp, Ollama) that dominated 2024–2025. The performance advantage is structural: MLX is designed around unified memory with native Metal compute kernels, so on M-series chips it sidesteps the CPU↔GPU copy overhead that handicaps generic engines. The result is 4.2× Ollama’s throughput across most models and #1 ranking on 16 of 18 benchmarked configurations. Rapid-MLX hit GitHub Trending in early May 2026 alongside the broader on-device inference wave.

Key Capabilities

The engine ships with a fully OpenAI-compatible API, plus first-class Anthropic Messages support — meaning anything that already speaks one of those protocols (Claude Code, Cursor, Aider, Cline, Open WebUI, and a long tail of OSS coding agents) plugs in by changing one base URL. The tool-calling layer is unusual: 17 distinct parser formats with automatic recovery when a quantized model emits malformed function calls. Models with chain-of-thought reasoning output their thinking in a separate reasoning_content field, cleanly separated from content even in streaming mode. The prompt cache uses KV-cache trimming for standard transformers and state snapshots for hybrid RNN architectures — the first technique to bring prompt cache to non-trimmable architectures on MLX. For large-context requests where local prefill would be slow, Rapid-MLX auto-routes to a cloud LLM, which hides the local-engine’s biggest weak point from end users.

Use Cases

Mac-based developers running Claude Code, Cursor, or Aider against local models get the most direct payoff: same agent loop, same tools, same UX, zero API spend, and faster TTFT than a hosted model on a good day. Teams building local-first AI products on macOS get a production-grade inference layer that doesn’t require recompiling models for ARM. The cloud-routing feature is especially valuable for hybrid setups — keep cheap, fast, sensitive workloads local; spill the long-context or reasoning-heavy requests to OpenAI/Anthropic without the agent code knowing which path won.

Considerations

Rapid-MLX is Apple Silicon only — no x86, no NVIDIA, no Linux. If your team is mixed-platform, you’ll need a separate inference path for non-Mac users (which is exactly the cloud-routing fallback feature). Models still need to be MLX-format; the ecosystem is good and growing but smaller than the GGUF universe Ollama serves. As an open-source engine without a hosted offering, you’re responsible for operating it — but on a single dev machine, that’s brew install plus a launch agent.

Who It’s For

Rapid-MLX is the obvious choice for any Mac developer running coding agents (Claude Code, Cursor, Aider) who wants local-LLM speed and zero API spend without giving up tool-calling reliability. It’s also the right choice for teams building Mac-native AI products that need inference parity with hosted models on the ergonomics dimension (OpenAI-compatible API, full tool-calling, reasoning separation) but with on-device cost and privacy. If you’re not on Apple Silicon, Ollama or vLLM remain the right answers.

Similar Agents