summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Troisi <[email protected]>2025-04-24 01:18:02 +0000
committerSeth Troisi <[email protected]>2025-04-23 18:22:58 -0700
commitbf6e809abf062948f5a098e1d22e64c81d4ab12f (patch)
tree41a3d5da6a5025c08c6f3cc17208c92fbf95345c
parent31045e6086ae804b4ca8a76e04eb4dc4cfabbb0d (diff)
Pass GEMINI_API_KEY env variable to sandbox
-rwxr-xr-xscripts/start_sandbox.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/start_sandbox.sh b/scripts/start_sandbox.sh
index 81651a0d..ac8fe6e7 100755
--- a/scripts/start_sandbox.sh
+++ b/scripts/start_sandbox.sh
@@ -46,7 +46,12 @@ run_args+=(--name "$IMAGE-$INDEX" --hostname "$IMAGE-$INDEX")
run_args+=(--env "SANDBOX=$IMAGE-$INDEX")
# pass TERM and COLORTERM to container to maintain terminal colors
-run_args+=(--env "TERM=${TERM:-}" --env "COLORTERM=${COLORTERM:-}")
+run_args+=(--env TERM --env COLORTERM)
+
+# set GEMINI_API_KEY environment variable if it exists
+if [ -n "${GEMINI_API_KEY:-}" ]; then
+ run_args+=(--env GEMINI_API_KEY)
+fi
# enable debugging via node --inspect-brk (and $DEBUG_PORT) if DEBUG is set
node_args=()