This message was deleted.
# feedback
d
This message was deleted.
🚀 1
👏🏽 1
👏 6
g
@wooden-umbrella-84098 here is an example
i pushed a lingish prompt into standard input
and this is what CLI rendered - just the tail end
w
👍 reporting
@gorgeous-horse-69467 can you share the exact command you used to start OpenHands CLI? I'm meeting with the CLI team now
g
we start it from docker client
Copy code
container_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
                )
Copy code
openhands_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"}
w
oh wow OK, I see And you're using CLI instead of headless because you want to pass additional messages to the agent after it's done some work?
g
yes
we have a chat to the user also in our app that allows to follow up
which relays messages into the agent
so basically we have our own head
plus headless in docker mode is just too slow