by raullenchai
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.
# Add to your Claude Code skills
git clone https://github.com/raullenchai/Rapid-MLXLast scanned: 11/28/2026
{
"issues": [
{
"file": "README.md",
"line": 12,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://rapidmlx.com/install.sh | bash\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-11-28T21:41:10.237Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}Rapid-MLX is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by raullenchai. 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. It has 4,191 GitHub stars.
Yes. Rapid-MLX passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/raullenchai/Rapid-MLX" and add it to your Claude Code skills directory (see the Installation section above).
Rapid-MLX is primarily written in Python. It is open-source under raullenchai on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Rapid-MLX against similar tools.
No comments yet. Be the first to share your thoughts!
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"))
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 re