This commit is contained in:
A 2026-06-08 10:17:30 +02:00 committed by GitHub
commit fe3084f649
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 50 additions and 2 deletions

View file

@ -519,7 +519,7 @@
"sandbox/junie": "implemented",
"sandbox/pi": "implemented",
"sandbox/cursor": "implemented",
"sandbox/t3code": "missing",
"sandbox/t3code": "implemented",
"hetzner/claude": "implemented",
"hetzner/openclaw": "implemented",
"hetzner/codex": "implemented",

View file

@ -0,0 +1,17 @@
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
# Base packages
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
curl git ca-certificates build-essential unzip zsh && \
rm -rf /var/lib/apt/lists/*
# Node.js 22 via n
RUN curl --proto '=https' -fsSL https://raw.githubusercontent.com/tj/n/master/bin/n | bash -s install 22
# T3 Code
RUN npm install -g t3
CMD ["/bin/sleep", "inf"]

View file

@ -20,6 +20,7 @@ spawn hermes sandbox
spawn junie sandbox
spawn cursor sandbox
spawn pi sandbox
spawn t3code sandbox
```
Or run directly without the CLI:
@ -34,6 +35,7 @@ bash <(curl -fsSL https://openrouter.ai/labs/spawn/sandbox/hermes.sh)
bash <(curl -fsSL https://openrouter.ai/labs/spawn/sandbox/junie.sh)
bash <(curl -fsSL https://openrouter.ai/labs/spawn/sandbox/cursor.sh)
bash <(curl -fsSL https://openrouter.ai/labs/spawn/sandbox/pi.sh)
bash <(curl -fsSL https://openrouter.ai/labs/spawn/sandbox/t3code.sh)
```
## Requirements
@ -53,5 +55,5 @@ The `sandbox` cloud reuses the `local` orchestrator with a Docker-wrapped runner
## Notes
- Agents that need a Docker image: `claude`, `codex`, `cursor`, `hermes`, `junie`, `kilocode`, `openclaw`, `opencode`, `pi`. The container images are built from `sh/docker/<agent>.Dockerfile`.
- Agents that need a Docker image: `claude`, `codex`, `cursor`, `hermes`, `junie`, `kilocode`, `openclaw`, `opencode`, `pi`, `t3code`. The container images are built from `sh/docker/<agent>.Dockerfile`.
- For host-native execution (no container), use the [`local`](../local/README.md) cloud instead.

29
sh/sandbox/t3code.sh Normal file
View file

@ -0,0 +1,29 @@
#!/bin/bash
set -eo pipefail
# Thin shim for the `sandbox` cloud: runs the agent inside a throwaway Docker
# container on this machine. Ensures bun is available, then runs bundled
# sandbox.js (local source or from the GitHub release).
_ensure_bun() {
if command -v bun &>/dev/null; then return 0; fi
printf '\033[0;36mInstalling bun...\033[0m\n' >&2
curl -fsSL --proto '=https' --show-error https://bun.sh/install?version=1.3.9 | bash >/dev/null || { printf '\033[0;31mFailed to install bun\033[0m\n' >&2; exit 1; }
export PATH="$HOME/.bun/bin:$PATH"
command -v bun &>/dev/null || { printf '\033[0;31mbun not found after install\033[0m\n' >&2; exit 1; }
}
_ensure_bun
# SPAWN_CLI_DIR override — force local source (used by e2e tests)
if [[ -n "${SPAWN_CLI_DIR:-}" && -f "$SPAWN_CLI_DIR/packages/cli/src/sandbox/main.ts" ]]; then
exec bun run "$SPAWN_CLI_DIR/packages/cli/src/sandbox/main.ts" t3code "$@"
fi
# Remote — download bundled sandbox.js from GitHub release
SANDBOX_JS=$(mktemp)
trap 'rm -f "$SANDBOX_JS"' EXIT
curl -fsSL --proto '=https' "https://github.com/OpenRouterTeam/spawn/releases/download/sandbox-latest/sandbox.js" -o "$SANDBOX_JS" \
|| { printf '\033[0;31mFailed to download sandbox.js\033[0m\n' >&2; exit 1; }
exec bun run "$SANDBOX_JS" t3code "$@"