Skip to content

Instantly share code, notes, and snippets.

@fastmover
Created May 22, 2026 20:57
Show Gist options
  • Select an option

  • Save fastmover/00272c35020e48223e55a99b0067019c to your computer and use it in GitHub Desktop.

Select an option

Save fastmover/00272c35020e48223e55a99b0067019c to your computer and use it in GitHub Desktop.
# enable serve on local network in LM Studio server
# http://host.containers.internal:1234/v1/
podman run -it \
--name openhands-agent \
--security-opt label=disable \
-e WORKSPACE_MOUNT_PATH=$(pwd)/workspace \
-e LLM_PROVIDER="openai" \
-e LLM_MODEL="openai/google/gemma-4-e4b" \
-e LLM_API_KEY="sk-lmstudio" \
-e LLM_BASE_URL="http://host.containers.internal:1234/v1" \
-e DOCKER_HOST="unix:///var/run/docker.sock" \
-v $(pwd)/workspace:/opt/workspace_base:Z \
-v ~/.openhands:/.openhands:Z \
-v /run/user/$(id -u)/podman/podman.sock:/var/run/docker.sock:Z \
-p 3000:3000 \
ghcr.io/openhands/openhands:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment