Agent guide · rapid-mlx 0.10.3 · ← Back to README

Cursor

Cursor is a closed-source IDE that supports a custom OpenAI base URL for its chat/composer surface. Point it at rapid-mlx and every model the server hosts becomes selectable inside the editor.

Wire: /v1/chat/completions (IDE chat/composer path) · Setup: Cursor Settings → Models → OpenAI Base URL · Matrix cell: no dedicated cell (Cursor's agent path is locked to Cursor's backend — see gotcha below).

Install

Download from cursor.com (closed-source vendor binary).

Config

Settings → Models → Add Model, then:

OpenAI API Base:  http://localhost:8000/v1
API Key:          not-needed
Model name:       default          # or any served alias (qwen3.5-9b-4bit, gemma-4-12b-4bit, …)

The default chat/composer flow honors this custom URL for OpenAI-shape endpoints. Cursor's agent/composer mode uses tool calls automatically — rapid-mlx handles them natively with tool-trained families (Qwen 3.5/3.6, Gemma 4, gpt-oss).

Run

$ rapid-mlx serve qwen3.6-35b-4bit \
    --tool-call-parser qwen3_coder_xml --enable-auto-tool-choice

Then open Cursor and pick default (or the served alias) from the model dropdown. All chat / composer requests now route to http://localhost:8000/v1.

Gotchas

See also