Model or dataset
raullenchai/Rapid-MLX avatar
raullenchai/Rapid-MLX

Rapid-MLX: A Local Inference Engine for Apple Silicon That Puts Tool Calling First

The fastest local AI engine for Apple Silicon. 4.2x faster than Ollama, 0.08s cached TTFT, 100% tool calling. 17 tool parsers, prompt cache, reasoning separation, cloud routing. Drop-in OpenAI replacement. Works with Claude Code, Cursor, Aider.

3,752 stars415 forksPythonNOASSERTION

At a glance

What is it?
Rapid-MLX is an OpenAI and Anthropic compatible local server for M-series Macs, built on MLX, with a focus on fast cached responses and broad tool calling. It targets developers who want a drop-in replacement for cloud endpoints when using coding agents.
Who is it for?
Adopt Rapid-MLX if you develop on an M-series Mac, need an OpenAI or Anthropic compatible endpoint for coding agents like Claude Code or Cursor, and want to avoid cloud round trips for routine tool calls. Skip it if you require Windows or Linux support, need a model larger than what fits your RAM tier, or expect the newline-delimited JSON streaming format used by some clients, which this project does not support.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

The Problem: Cloud Latency and Tool Calling on Local Models

Developers running coding agents on Apple Silicon often face a choice between cloud APIs with fast responses and local models that keep code private but feel slow. The gap is especially visible with tool calling, where a local model must emit structured calls reliably. Rapid-MLX enters this space as a local server that speaks both the OpenAI and Anthropic APIs. The project claims up to 3 times Ollama's throughput, though the README points to an external benchmark page rather than showing measurement details. The intended user is someone who already uses an agent or app that accepts an OpenAI or Anthropic compatible endpoint and wants to point it at a local Mac instead of a remote service.

What Runs Under the Hood: MLX, FastAPI, and a Router

Rapid-MLX is a Python project that builds on Apple's MLX framework for model execution. The repository layout shows a FastAPI server, which suggests a RESTful interface. The README mentions several mechanisms that distinguish it from a plain model wrapper. There is a prompt cache that reuses computation for repeated prefixes, which explains the claimed 0.08 second cached time to first token. The server also separates reasoning tokens from answer tokens, a pattern seen in models like DeepSeek R1 where the chain of thought is not part of the final output. A cloud routing feature lets some requests go to a hosted model when the local one is not suitable. These components are not described in depth in the README, so the exact data flow between the router, cache, and model is not fully visible from the material.

Getting It Running: Homebrew, a Script, or a Desktop App

Installation targets macOS on Apple Silicon only. The README lists two primary paths for the CLI and server. The first is a Homebrew formula from homebrew-core, installed with brew install rapid-mlx. The second is a guided installer that detects RAM and recommends a starter model, run with curl -fsSL https://rapidmlx.com/install.sh | bash. Both install the same rapid-mlx CLI. The guided installer prefers a model already cached on the Mac if it fits the RAM tier. Otherwise it downloads lfm2.5-1b-4bit on machines with less than 16 GB and qwen3.5-4b-4bit on 16 GB or more. There is also a desktop app for macOS that bundles chat, vision, files, voice, and image generation, but Windows and Linux builds are not available. The CLI quick start shows a rap command, though the README is truncated before the full command list.

The Compatibility Story: Drop-In for Agents, With a Matrix

The central promise is that any client accepting an OpenAI or Anthropic compatible endpoint can use Rapid-MLX without an adapter. The README lists a wide set of tools including Claude Code, Cursor, Aider, Codex CLI, OpenCode, Qwen Code, OpenHands, GitHub Copilot, and LangChain. Five so-called Tier-1 agents are exercised end to end on real weights before each release. The project maintains a tested compatibility matrix at rapidmlx.com/docs/matrix.html that shows exact API coverage and setup status. This is a useful resource because the generic claim of compatibility can hide partial implementations. A developer should check that matrix for their specific client before assuming full support.

Tool Calling Is the Differentiator, but the Details Are Thin

The README claims 100 percent tool calling and lists 17 tool parsers. Tool parsers are likely routines that convert a model's raw output into structured tool calls for different client formats. This is a meaningful area because many local engines struggle with reliable tool use. However, the README does not specify which tool schemas are supported or how the parsers handle edge cases like malformed JSON or incomplete calls. The claim of 100 percent success is strong and would need verification with real workloads. The project's own compatibility matrix is the place to look for that evidence, but the README excerpt does not include it.

Where It Falls Short: Platform Limits and Streaming Gaps

The most obvious limitation is platform: this only runs on Apple Silicon. A developer on an Intel Mac, a Windows machine, or a Linux server cannot use it. The README also notes that newline-delimited JSON streaming is not supported. That is a real constraint because many OpenAI SDK clients expect that exact streaming format. If your client relies on it, Rapid-MLX may not work without modification. The README does not mention any workaround for this, so it is a hard boundary. Additionally, the guided installer picks small models by default, which may not be adequate for complex reasoning tasks. Larger models remain available through the recipe system, but that requires extra steps.

Alternatives: Ollama and the Cloud Routing Trade-Off

The most direct alternative is Ollama, which also runs local models on Apple Silicon and exposes an OpenAI compatible API. The key difference is that Ollama does not focus on tool calling or prompt caching to the same degree. Rapid-MLX claims higher throughput, but that is an external benchmark claim. Another alternative is to skip local inference entirely and use a cloud API like OpenAI or Anthropic directly. That gives you the fastest responses and the most capable models, but it sends your code and prompts to a remote server. Rapid-MLX's cloud routing feature tries to split the difference, keeping some requests local and sending others to the cloud. This is a legitimate architectural choice, but it adds complexity and requires a cloud API key if you enable routing.

Maintenance and Licensing: What to Check Before You Adopt

The repository is under the Apache 2.0 license, which is permissive for commercial use. The Python package is published on PyPI as rapid-mlx, and a Homebrew core formula exists, so updates should flow through standard channels. The last push was in September 2026, and recent releases are frequent, suggesting active maintenance. However, the project's license field in the repository metadata reads NOASSERTION, which is inconsistent with the README's Apache 2.0 badge. That mismatch is worth resolving before you depend on the project, especially if your legal team cares about license clarity. The README also points to a security file, SECURITY.md, for install verification, which is a good sign but not a substitute for checking the license yourself.

Editorial conclusion

Adopt Rapid-MLX if you develop on an M-series Mac, need an OpenAI or Anthropic compatible endpoint for coding agents like Claude Code or Cursor, and want to avoid cloud round trips for routine tool calls. Skip it if you require Windows or Linux support, need a model larger than what fits your RAM tier, or expect the newline-delimited JSON streaming format used by some clients, which this project does not support. Before committing, verify your exact client against the project's tested compatibility matrix and confirm your preferred model is available in its mirror or via a recipe.

Official sources

  1. Issues
  2. Project website
  3. raullenchai/Rapid-MLX on GitHub
  4. README
  5. Releases
Community notes

Community notes