dry-autumn-33122
03/28/2025, 4:47 PMgorgeous-horse-69467
04/21/2025, 6:08 PMgorgeous-horse-69467
04/21/2025, 6:08 PMgorgeous-horse-69467
04/21/2025, 6:09 PMwooden-umbrella-84098
04/21/2025, 6:28 PMwooden-umbrella-84098
04/23/2025, 2:16 PMgorgeous-horse-69467
04/23/2025, 2:37 PMgorgeous-horse-69467
04/23/2025, 2:37 PMcontainer_found = client.containers.run(
f"docker.all-hands.dev/all-hands-ai/openhands:{OPENHANDS_VERSION}",
command="python -m openhands.core.cli", # Run CLI command directly
name=f"openhands-app-{container_id}",
environment=environment,
volumes=volumes,
extra_hosts=extra_hosts,
stdin_open=True,
tty=True,
detach=True
)gorgeous-horse-69467
04/23/2025, 2:37 PMopenhands_model = f"litellm_proxy/{model_requested_short}"
environment = {
"SANDBOX_RUNTIME_CONTAINER_IMAGE": OPENHANDS_IMAGE,
"SANDBOX_RM_ALL_CONTAINERS": "false",
"SANDBOX_KEEP_RUNTIME_ALIVE": "false",
"SANDBOX_TIMEOUT": "600",
"WORKSPACE_MOUNT_PATH": WORKSPACE_MOUNT_PATH,
#"SANDBOX_DOCKER_RUNTIME_KWARGS": "{\"network\": \"docker_archipelago\"}",
"LLM_MODEL": openhands_model,
"LLM_BASE_URL": LLM_BASE_URL,
"LLM_API_KEY": LLM_API_KEY,
"DEBUG_LLM": "false",
#"DEBUG_RUNTIME": "true",
#"DEBUG": "true",
"LOG_TO_FILE": "true",
"TRAJECTORIES_PATH": TRAJECTORIES_PATH
}
volumes = {
WORKSPACE_MOUNT_PATH: {"bind": "/opt/workspace_base", "mode": "rw"},
"/var/run/docker.sock": {"bind": "/var/run/docker.sock", "mode": "rw"},
f"{WORKSPACE_MOUNT_PATH}/.openhands.toml": {"bind": "/root/.openhands.toml", "mode": "rw"},
}
extra_hosts = {"host.docker.internal": "host-gateway"}wooden-umbrella-84098
04/23/2025, 3:00 PMgorgeous-horse-69467
04/23/2025, 3:49 PMgorgeous-horse-69467
04/23/2025, 3:49 PMgorgeous-horse-69467
04/23/2025, 3:50 PMgorgeous-horse-69467
04/23/2025, 3:50 PMgorgeous-horse-69467
04/23/2025, 3:50 PM