1. Install — the guided installer handles Python and picks a model for your Mac:
curl -fsSL https://rapidmlx.com/install.sh | bash
Restart your terminal or run export PATH="$HOME/.local/bin:$PATH".
Prefer pip (Python 3.12+) or Homebrew (brew install rapid-mlx)? Both install the same CLI.
2. Launch your coding agent — install your chosen agent, then run one of:
Using an SDK instead? Jump to the Python quickstart.
rapid-mlx launch claude-code
rapid-mlx launch opencode
rapid-mlx launch codex
rapid-mlx launch <agent> creates a private profile, starts the server, and launches the agent. Run the same command tomorrow; rapid-mlx launch claude-code --remove removes Rapid's private profile without changing your existing Claude Code settings. One-command guides for each agent. A first reply can take longer while a model downloads, loads, or processes the agent's opening prompt.
For other tools, use rapid-mlx agents <tool> --setup, for example rapid-mlx agents cline --setup.
Faster decode than oMLX and LM Studio on Qwen3.5-9B, Qwen3.8-27B, and Qwen3.6-35B
Measured speed on a Mac Studio M5 Max (36 GB) — Rapid-MLX 0.16.1 vs
oMLX 0.7.0 and LM Studio, using the same base 4-bit weights for each model.
| Model |
Metric |
Rapid-MLX |
oMLX |
LM Studio |
| Qwen3.5-9B |
Decode (tok/s) |
115.5 |
77.9 |
81.0 |
| Qwen3.5-9B |
4 streams (tok/s) |
248.2 |
224.6 |
230.0 |
| Qwen3.8-27B |
Decode (tok/s) |
37.9 |
25.3 |
26.0 |
| Qwen3.8-27B |
4 streams (tok/s) |
82.8 |
75.3 |
69.7 |
| Qwen3.6-35B |
Decode (tok/s) |
173.4 |
145.8 |
124.5 |
| Qwen3.6-35B |
4 streams (tok/s) |
293.9 |
281.9 |
265.6 |
| Qwen3.6-35B |
2K-prompt first token (s, lower is better) |
0.55 |
1.14 |
1.49 |
Single run per engine; default serving modes with Rapid's MTP text mode, oMLX's SSD cache, and LM Studio's configured context and four parallel slots. Full results and raw data.
Or use the OpenAI / Anthropic SDK
Start a local server, then run the Python examples below from a separate terminal:
rapid-mlx serve qwen3.5-4b-4bit --port 8000
On first run, this command downloads a ~3 GB 4B model if it is not already cached. Without --port, the server picks the first free port in 8000–8009; these examples pin 8000. Install your SDK with pip install openai or pip install anthropic.
OpenAI Python — base URL includes /v1:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
print(client.chat.completions.create(
model="default", messages=[{"role": "user", "content": "Say hello"}],
).choices[0].message.content)
Anthropic Python — base URL is the host; the SDK calls /v1/messages:
from anthropic import Anthropic
client = Anthropic(base_url="http://localhost:8000", api_key="not-needed")
msg = client.messages.create(
model="default", max_tokens=256,
messages=[{"role": "user", "content": "Say hello"}],
)
print("".join(b.text for b in msg.content if b.type == "text"))
How it compares
Feature facts only, taken mostly from each project's own documentation as of
2026-09-26 (sources below). For speed, see the measured results above.
|
Rapid-MLX |
oMLX |
Ollama |
LM Studio |
mlx-lm (mlx_lm.server) |
| License |
Apache-2.0 |
Apache-2.0 |
MIT |
Closed-source app; its MLX engine and lms CLI are MIT |
MIT |
| Inference engine on a Mac |
MLX |
MLX |
GGML/GGUF engine, plus an MLX engine for safetensors models |
llama.cpp (GGUF) and MLX engines |
MLX |
| Local API |
OpenAI (/v1/chat/completions, /v1/responses) and Anthropic Messages (/v1/messages) |
OpenAI and Anthropic Messages |
Ollama API, OpenAI-compatible, Anthropic-compatible (subset) |
OpenAI-compatible, Anthropic-compatible, LM Studio REST API |
OpenAI-style chat API |
| GUI |
Rapid-MLX Desktop (macOS app) |
macOS menu-bar app and web admin panel |
Desktop app (macOS, Windows) |
Desktop app |
None (CLI / Python) |
| Concurrent requests |
Continuous batching |
Continuous batching (mlx-lm BatchGenerator) |
Parallel requests per model (OLLAMA_NUM_PARALLEL, default 1) |
Continuous batching (llama.cpp engine; MLX engine since 0.4.2) |
Continuous batching (BatchGenerator); one request at a time with a quantized KV cache |
| Prompt / KV cache |
Radix prefix cache in memory (with state snapshots for hybrid models), saved to disk on shutdown and restored at startup; quantized KV cache |
Tiered KV cache: in-memory hot tier plus SSD cold tier, reused across restarts |
Reuses the previous request's prompt KV cache; KV cache quantization (OLLAMA_KV_CACHE_TYPE) |
— |
In-memory prompt cache; quantized KV cache (--kv-bits) |
| Tool-call parsing |
27 parser modules, including an auto-detect fallback (rapid_mlx/tool_parsers) |
mlx-lm formats plus the auto-detected families listed in its README |
Tool calling |
Tool use via the OpenAI-compatible API |
Tool calls for models whose tokenizer declares tool-calling support |
Sources: oMLX README ·
Ollama OpenAI and Anthropic compatibility, FAQ, MLX engine ·
LM Studio Anthropic compatibility, parallel requests, 0.4.2 changelog, app terms, mlx-engine ·
mlx-lm server docs and server.py.
Ollama prompt-cache reuse is from our benchmark notes.
— = not verified for this table. Spot an error? Please open an issue.
vs Apple's mlx-lm: per-task results and raw data at https://rapidmlx.com/compare/mlx-lm.
Works with your AI stack
Use Rapid-MLX as a local backend for agents, apps, or your own code. If a
client accepts an OpenAI- or Anthropic-compatible endpoint, it can usually use
Rapid-MLX without an adapter.
For Claude Desktop, set up its in-app Gateway.
Five Tier-1 agents are exercised end-to-end on real weights before release.
See the tested compatibility matrix
for exact API coverage and setup status.
Install
Desktop — macOS (Apple Silicon)
The easiest way to chat locally, manage models, and use vision, files, voice,
and image generation from one app.
In Settings → Performance, inspect system memory, engine Metal allocations,
prefix-cache usage, running and waiting requests, and a recent memory trend.
Engine allocations overlap system totals; do not add them together. Missing
measurements appear as a dash.
After a chat reply, expand Generation details for saved execution facts and
timing. Model recommendations, rapid-mlx models, and rapid-mlx doctor show
measured speed references when a matching chip, RAM, and configuration are
available. These references describe measured workloads, not guaranteed speed.
CLI and server — macOS (Apple Silicon)
# Homebrew — prebuilt bottle from homebrew-core
brew install rapid-mlx
# Or the guided installer — detects RAM and offers to start a chat (RAPID_INSTALL_NO_CHAT=1 skips)
curl -fsSL https://rapidmlx.com/install.sh | bash
Both install the same rapid-mlx CLI. Prefer uv or pip, or want to verify
the installer before running it? See alternative install methods
and install security.
The guided installer prefers a runnable model already cached on this Mac when
it fits the RAM tier. Otherwise its quick first-chat download is
lfm2.5-2.6b-4bit at 8 GB or above, with lfm2.5-1b-4bit for smaller or
unknown RAM. Larger quality picks remain available through rapid-mlx recipe
and the model picker.
Submit a Community Benchmark
Help other Mac users choose a model by sharing a standardized result from your
own Apple Silicon Mac. Runs stay local until you explicitly choose to publish;
you do not need a GitHub account or a benchmark JSON pull request.
- Desktop: Open the Benchmark tab in the sidebar, choose a model,
run it, review the result
in My Results, and select Publish if you want to share it.
- CLI: Run
rapid-mlx benchmark catalog, then
rapid-mlx benchmark run <model>. Review the saved result and publish it
with rapid-mlx benchmark share <run-id> only if you choose to.
Explore the Community Benchmark leaderboard
or read the protocol and privacy details.
Quick Start (60 seconds)
1. Chat with a model right now:
rapid-mlx chat
With no model named, rapid-mlx chat uses a chat model already on this Mac — the lfm2.5-2.6b-4bit starter if present, otherwise the best fit for this Mac's memory — without another download. If none is downloaded yet, it downloads the lfm2.5-2.6b-4bit starter (~1.6 GB) before opening the REPL. Type /help for slash commands, /exit to quit.
2. Or serve it for use from other apps:
rapid-mlx serve qwen3.5-4b-4bit
Starts an OpenAI-compatible HTTP server on the first free port in 8000–8009 when --port is omitted. An explicit --port never falls back. The examples below assume port 8000 was selected. Point any client that supports a local custom endpoint (Aider, LangChain, OpenCode, PydanticAI, your own scripts) at http://localhost:8000/v1; Claude Code / Anthropic SDK uses http://localhost:8000 (the Anthropic messages route lives at /v1/messages under the same host).
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"default","messages":[{"role":"user","content":"Say hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
print(client.chat.completions.create(
model="default",
messages=[{"role": "user", "content": "Say hello"}],
).choices[0].message.content)
3. Or wire up your coding agent — one command:
rapid-mlx launch claude-code
This saves a private Claude Code profile, starts a local server if needed, and launches Claude Code without editing ~/.claude/settings.json. The same command works after a restart. Swap in codex, opencode, pi, hermes, crush, or goose. For the original config-writing behavior, use --legacy-config; cline and continue-dev keep their existing setup flow.
Agent setup details.
Cursor: Cursor currently routes BYOK requests through its own servers, so its servers cannot reach a Rapid-MLX endpoint on localhost. Rapid-MLX therefore does not generate a Cursor localhost config. If you intentionally expose the server through a public HTTPS tunnel, set RAPID_MLX_API_KEY=your-secret for both rapid-mlx serve ... and rapid-mlx launch cursor --server-url https://your-public-host. This is no longer a fully local connection; never expose an unauthenticated server. Rapid-MLX rejects explicit local/private addresses but cannot verify reachability from Cursor's network, whose DNS view may differ from your Mac.