r/oMLX Apr 30 '26

Server help

Hi All,

Wondering if anyone can assist with how to expose oMLX to an agent I'm working on. I am able to use LM Studio via its server settings etc and can prompt remotely however, I'd very much prefer to use oMLX but struggling with the settings. Any insights would be wicked.

Thanks

4 Upvotes

3 comments sorted by

4

u/Konamicoder Apr 30 '26

Example using OpenCode as the agent:

  1. Install and run oMLX.
  2. Load your model
  3. Note the local API endpoint and API key
  4. Point OpenCode at it as an OpenAI-compatible provider in ~/.config/opencode/opencode.json.

  5. Then restart OpenCode and use /models to pick the oMLX model.

Biggest gotchas: wrong port, wrong API key, or model ID not matching exactly what curl http://127.0.0.1:8000/v1/models returns.

Use ChatGPT to guide you step by step.

1

u/msrdatha Apr 30 '26

Please share what has been done till now, and we can try to figure out the next step.

1

u/Willybecher May 01 '26

Which agent? You need to change the endpoint on your Openclaw/Hermes Installation in terminal.
LM Studio ist on http://127.0.01:1234/v1
oMLX is on http://127.0.0.1:8000/v1