mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 16:39:50 +00:00
* feat: convert daytona/ cloud provider from Bash to TypeScript Replaces fragile bash SSH workarounds with structured TypeScript. Converts 341-line lib/common.sh and 6 agent scripts to TS/Bun. Fixes #1679 Agent: ux-engineer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: update test assertions for daytona TypeScript conversion Add daytona to TS_CLOUDS set and lower cloud count thresholds since daytona no longer has a bash lib/common.sh. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: address security review - path traversal, command injection, test counts - Add path traversal rejection (reject '..') in uploadConfigFile and uploadFile - Use single quotes around remotePath in shell commands to prevent expansion - Add strict remotePath validation to uploadConfigFile (allowlist regex) - Update TS_CLOUDS sets across all test files for daytona TS conversion - Adjust upload-file-security test count expectations for TS migrations Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: update test assertions for TS-converted cloud providers After converting daytona and digitalocean from Bash to TypeScript, the number of bash-based cloud libs dropped. Updated expected counts: - cloud-lib-source-chain: >= 6 to >= 5 - cloud-error-guidance create_server: >= 5 to >= 4 - upload-file-security SSH clouds: >= 4 to >= 3 - shared-common-post-session SSH clouds: >= 4 to >= 3 Agent: pr-maintainer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| claude.sh | ||
| codex.sh | ||
| kilocode.sh | ||
| openclaw.sh | ||
| opencode.sh | ||
| README.md | ||
| zeroclaw.sh | ||
Daytona
Daytona sandboxed environments for AI code execution. Daytona
Sub-90ms sandbox creation. True SSH support via
daytona ssh. RequiresDAYTONA_API_KEYfrom https://app.daytona.io.
Agents
Claude Code
bash <(curl -fsSL https://openrouter.ai/labs/spawn/daytona/claude.sh)
OpenClaw
bash <(curl -fsSL https://openrouter.ai/labs/spawn/daytona/openclaw.sh)
ZeroClaw
bash <(curl -fsSL https://openrouter.ai/labs/spawn/daytona/zeroclaw.sh)
Codex CLI
bash <(curl -fsSL https://openrouter.ai/labs/spawn/daytona/codex.sh)
OpenCode
bash <(curl -fsSL https://openrouter.ai/labs/spawn/daytona/opencode.sh)
Kilo Code
bash <(curl -fsSL https://openrouter.ai/labs/spawn/daytona/kilocode.sh)
Non-Interactive Mode
DAYTONA_SANDBOX_NAME=dev-mk1 \
DAYTONA_API_KEY=your-api-key \
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
bash <(curl -fsSL https://openrouter.ai/labs/spawn/daytona/claude.sh)
Environment Variables
| Variable | Description | Default |
|---|---|---|
DAYTONA_API_KEY |
Daytona API key | (prompted) |
DAYTONA_SANDBOX_NAME |
Sandbox name | (prompted) |
DAYTONA_CLASS |
Sandbox class (e.g. small, medium, large) |
small |
DAYTONA_CPU |
Number of vCPUs (overrides --class) |
(unset) |
DAYTONA_MEMORY |
Memory in MB (overrides --class) |
(unset) |
DAYTONA_DISK |
Disk size in GB (overrides --class) |
(unset) |
OPENROUTER_API_KEY |
OpenRouter API key | (OAuth or prompted) |
Note: Daytona rejects explicit
--cpu/--memory/--diskflags when using snapshots. UseDAYTONA_CLASSinstead. If explicit resource flags fail due to snapshot conflict, spawn automatically retries with--class small.