From dfeab9f767220e0186d8be1dba27b8889a1531a9 Mon Sep 17 00:00:00 2001 From: Ivan Dagelic Date: Thu, 31 Jul 2025 17:20:06 +0200 Subject: [PATCH] chore: env for installing third party providers (#9767) Signed-off-by: Ivan Dagelic Co-authored-by: Graham Neubig --- containers/app/entrypoint.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/containers/app/entrypoint.sh b/containers/app/entrypoint.sh index fe26f92fca..54d3d127cc 100644 --- a/containers/app/entrypoint.sh +++ b/containers/app/entrypoint.sh @@ -23,6 +23,18 @@ if [ -z "$WORKSPACE_MOUNT_PATH" ]; then unset WORKSPACE_BASE fi +if [[ "$INSTALL_THIRD_PARTY_RUNTIMES" == "true" ]]; then + echo "Downloading and installing third_party_runtimes..." + echo "Warning: Third-party runtimes are provided as-is, not actively supported and may be removed in future releases." + + if pip install 'openhands-ai[third_party_runtimes]' -qqq 2> >(tee /dev/stderr); then + echo "third_party_runtimes installed successfully." + else + echo "Failed to install third_party_runtimes." >&2 + exit 1 + fi +fi + if [[ "$SANDBOX_USER_ID" -eq 0 ]]; then echo "Running OpenHands as root" export RUN_AS_OPENHANDS=false