This guide explains how to use a pure mlx_lm.server process managed by MLX Server Manager from Hermes Agent or another OpenAI-compatible client.
MLX Server Manager starts, stops, restarts, checks, and displays local server state. It does not proxy inference requests.
Use this guide when you want an OpenAI-compatible client to connect to the local endpoint started by MLX Server Manager.
The same connection values usually apply to Hermes Agent, custom scripts, and other clients that accept an OpenAI-compatible base URL, model ID, and API key placeholder.
Hermes Agent-specific provider names, config file locations, or extra headers can vary by setup. Use the values below according to your Hermes Agent configuration.
The inference path stays direct:
Hermes Agent or OpenAI-compatible client -> mlx_lm.server -> MLX model
MLX Server Manager is not in the inference request path. It manages the local mlx_lm.server process and provides connection settings for clients.
- A working local
mlx-lmenvironment. - A valid
mlx_lm.serverexecutable path configured in MLX Server Manager. - A model profile configured in MLX Server Manager.
- A local OpenAI-compatible client such as Hermes Agent.
- Local access to the selected host and port, usually
127.0.0.1:8080.
- Open MLX Server Manager.
- Confirm the selected Model Profile.
- Confirm the
mlx_lm.server executable pathin Settings. - Run Setup Diagnostics.
- Press Start.
- Wait for the status to become Ready.
For a baseline setup, leave Advanced Launch Options empty first. Add advanced options only after the simple launch path works.
MLX Server Manager uses /v1/models for readiness checks.
You can also verify from a terminal:
curl http://127.0.0.1:8080/v1/modelsIf this fails, fix readiness before configuring a client.
In MLX Server Manager, use Connection Settings to copy:
- Base URL
- Model ID
- OpenAI-compatible JSON config
curl /v1/modelscurl /v1/chat/completions
The copied chat-completions command is a client-side test example. MLX Server Manager itself does not execute /v1/chat/completions.
Configure your client as an OpenAI-compatible endpoint.
Depending on your Hermes Agent setup, this may involve a provider entry, local model entry, environment variables, or an app setting. Use the client-specific location that accepts these values:
- Base URL
- Model ID
- API key placeholder
If the client requires an API key, use a dummy local value such as not-required-local. Do not use a real hosted API key for this local endpoint.
MLX Server Manager can update a configured Hermes Agent YAML file with the selected model connection values.
The apply action updates only the Hermes model connection keys:
model.defaultmodel.providermodel.base_urlmodel.api_key
Before writing changes, MLX Server Manager creates a timestamped backup next to the original file. Other Hermes settings, such as agent, terminal, browser, toolset, checkpoint, and auxiliary configuration, are preserved.
This action does not start Hermes Agent, does not start an MLX server, does not proxy inference requests, and does not inspect Hermes runtime traffic.
Base URL:
http://127.0.0.1:8080/v1
Model:
unsloth/Qwen3.6-35B-A3B-UD-MLX-4bit
API Key:
not-required-local
curl http://127.0.0.1:8080/v1/modelscurl http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer not-required-local" \
-d '{
"model": "unsloth/Qwen3.6-35B-A3B-UD-MLX-4bit",
"messages": [
{
"role": "user",
"content": "Say hello in one sentence."
}
],
"chat_template_kwargs": {
"enable_thinking": false
}
}'This curl command is a connection test example for a client or terminal. MLX Server Manager does not run this request.
For Qwen-style models, some clients may need template options to control thinking behavior. If your request format supports it, you can include:
{
"chat_template_kwargs": {
"enable_thinking": false
}
}Whether this is needed depends on the model, server behavior, and client request format.
- Confirm MLX Server Manager shows Ready.
- Confirm the client uses the same host and port.
- Run Port Check in MLX Server Manager.
- Confirm no other process is using the selected port.
- The server may not be running.
- The client may be using the wrong port.
- The host may differ from the selected model profile.
- Confirm the client model name exactly matches the MLX Server Manager Model Profile
modelID. - Confirm the selected profile is the one currently running.
- If Restart required is shown, restart the managed server before testing the selected model.
Local mlx_lm.server does not require a hosted API key, but some clients require the field to be non-empty. Use a dummy value such as:
not-required-local
Do not put real API keys in local dummy config.
- The model may still be loading.
- The first request can be slower than later requests.
- Memory pressure can slow down local inference.
- Check MLX Server Manager Logs and Memory display.
- Leave Advanced Launch Options empty for the first successful baseline.
- Tune only after
/v1/modelsand a simple client request work. - Advanced options are workload-dependent and may not improve performance.
- Copy Preview can help review the exact launch command before saving or starting.
- Use
127.0.0.1by default. - Avoid exposing the local server to LAN or WAN unless you understand the risks.
- Treat
mlx_lm.serveras local development infrastructure. - Do not put real API keys in local dummy config.
- Do not commit local settings files such as
settings.jsonormodels.json. - Do not commit model files or Hugging Face cache contents.
- MLX Server Manager is not a Hermes Agent plugin.
- MLX Server Manager is not a proxy.
- MLX Server Manager is not a chat UI.
- MLX Server Manager is not a multi-backend router.
- MLX Server Manager is not a model downloader.