Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions openhands/usage/llms/local-llms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ Download and install the LM Studio desktop app from [lmstudio.ai](https://lmstud

![image](./screenshots/06_lm_studio_start_server.png)

<Warning>
**Linux users:** By default, LM Studio only listens on `127.0.0.1` (localhost). If OpenHands runs inside a Docker container, it cannot reach `127.0.0.1` on the host — even with `--add-host host.docker.internal:host-gateway`.

To fix this, enable **"Serve on Local Network"** in LM Studio's server settings. This switches the bind address to `0.0.0.0`, making the server reachable from Docker.

You can verify connectivity from inside the container:
```bash
docker exec -it openhands-app curl -s http://host.docker.internal:1234/v1/models
```
If this returns the model list, the connection is working. If it hangs or errors, LM Studio is still bound to localhost only.
</Warning>

### 5. Start OpenHands

1. Check [the installation guide](/openhands/usage/run-openhands/local-setup) and ensure all prerequisites are met before running OpenHands, then run:
Expand Down
Loading