Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM mcr.microsoft.com/playwright/python:latest
RUN pip install --no-cache-dir browserbase
23 changes: 23 additions & 0 deletions src/clawbench/runtime/harnesses/browserbase/run-browserbase.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

if [ -z "$BROWSERBASE_API_KEY" ]; then
echo "Error: BROWSERBASE_API_KEY environment variable is not set" >&2
exit 1
fi

if [ -z "$BROWSERBASE_PROJECT_ID" ]; then
echo "Error: BROWSERBASE_PROJECT_ID environment variable is not set" >&2
exit 1
fi

if [ $# -lt 1 ]; then
echo "Usage: $0 <task_file>" >&2
exit 1
fi

TASK_FILE="$1"

python "$SCRIPT_DIR/agent.py" "$TASK_FILE"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail

python -m pip install --upgrade pip
python -m pip install playwright browserbase
python -m playwright install