aloof-island-48601
06/07/2026, 7:09 PMmodern-fireman-99755
06/08/2026, 8:41 AMdocker ps --filter "name=oh-agent-server-" --format '{{.Names}}'
Then from inside it:
docker exec -it <oh-agent-server-...> curl -s <http://host.docker.internal:1234/v1/models>
⢠If this fails: it's networking (points 2ā3).
⢠If it succeeds: jump to point 4.
⢠If docker ps shows no oh-agent-server- container, your local backend is running the agent in-process inside openhands-app ā in that case run the same curl from inside the openhands-app container.)
2. Make sure LM Studio is bound to 0.0.0.0, not 127.0.0.1.
In LM Studio's Developer/Server tab, enable "Serve on Local Network" (and make sure the server is on). If it's only listening on 127.0.0.1, the Mac's loopback isn't reachable from a Docker container even via
host.docker.internal. Confirm on the Mac with: lsof -iTCP -sTCP:LISTEN -P | grep 1234 ā you want to see *:1234 or 0.0.0.0:1234, not 127.0.0.1:1234.
3. Check the Mac firewall.
System Settings ā Network ā Firewall. Either turn it off briefly to test, or allow incoming connections for LM Studio.
4. Double-check your OpenHands LLM settings (Advanced enabled) match the docs exactly:
⢠Custom Model: openai/qwen/qwen3.6-35b-a3b . The openai/ prefix is required so LiteLLM uses the OpenAI-compatible path.
⢠Base URL: <http://host.docker.internal:1234/v1> . The /v1 suffix is important.
⢠API Key: anything non-empty, e.g. local-llm (LiteLLM rejects an empty key even though LM Studio doesn't check it).aloof-island-48601
06/08/2026, 9:15 AMmodern-fireman-99755
06/08/2026, 9:38 AMThe only thing that's a bit strange is that LM studio seems to be reachable at 192.168.178.52 even though serving on local network. Shouldn't this be 0.0.0.0I believe the
192.168.178.52 you see is just LM Studio's UI showing a routable IP, under the hood it should still be bound to 0.0.0.0 .
Since you've confirmed LM Studio is reachable at 192.168.178.52:1234, point OpenHands straight at that instead of `host.docker.internal`:
Base URL: <http://192.168.178.52:1234/v1>
However, I'm not super expert in LM studio. Perhaps, @calm-artist-7206 know something more.aloof-island-48601
06/12/2026, 9:39 AMmodern-fireman-99755
06/12/2026, 9:59 AM