› cavi-ai/
GitHub ↗

Runtimes

A provider is the coding-agent host that invokes mlx-agent. A runtime loads and executes model weights. Installing a provider adapter does not install a runtime. Choose one for the model format and task you intend to run.

RuntimeRole in mlx-agentConventional port
mlx_lmNative text serving; default text conversion, LoRA, and fusion path8080
mlx-vlmNative vision/language serving and media tasks8083
LM StudioDesktop-managed models with a local OpenAI-compatible server1234
OllamaRuntime-managed models and tags through its local API11434
LiteLLMRouter over explicitly configured backends4000

Ports are defaults or conventions, not proof that a server is running. Use inspect-host, runtime inventory, and serve status as appropriate. Serve's --port and Fleet's --port-map role=port allow explicit choices.

Native MLX servers#

serve start launches mlx_lm or mlx-vlm with reviewed arguments and local weights. The executable must already be installed. --path selects a local directory; --repo selects a cached repository. Text adapters use --adapter-path. See Serve for JIT, launchd, memory policy, and process ownership.

Managed desktop and tag runtimes#

LM Studio and Ollama manage loading and downloads. Select a compatible model in the runtime first. Use its advertised identifier for benchmarks and verification; a Hub repository ID and an Ollama tag are not interchangeable.

Detection and configuration rendering do not establish runtime support for arbitrary Hub repositories or every modality. Review the runtime's model support and your actual inventory.

Local routers#

A loopback LiteLLM endpoint can forward to a remote or paid provider. mlx-agent checks route locality before treating it as local for verification. Review the router configuration and selected model mapping. A local socket alone does not prove local inference.

Fleet emits a bounded router configuration; it does not start LiteLLM or load the referenced model servers.

Optional task backends#

Backends manage locked converter and task-runner environments, separate from an always-running HTTP server. Local inference covers speech, classification, media description, image generation, and video generation.

Reference packs shipped in src/mlx_agent/resources/references/ cover quantization, model families, and serving troubleshooting. Compare performance on your actual host with Bench.