Skip to content

πŸ™Œ OpenHands: AI-Driven Development

chore: env for installing third party providers (#9767)

Ivan Dagelicdfeab9f76722
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