spawn/lambda
Sprite 91c466c008 refactor: add trap cleanup for temp files in agent scripts
- Add trap 'rm -f "${ENV_TEMP}"' EXIT after mktemp creation
- Scripts with DOTENV_TEMP get combined trap for both files
- Remove manual rm calls that are now redundant
- Prevents temp file leaks on early script exit (errors, signals)
- Affects 67 agent scripts across all providers

Impact: Prevents /tmp pollution in production deployments
Score: 90 (Impact: 9, Confidence: 10, Risk: 1)
2026-02-08 03:15:48 +00:00
..
lib refactor: quote sleep delay variables for safety 2026-02-08 02:50:08 +00:00
aider.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
amazonq.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
claude.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
cline.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
codex.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
gemini.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
goose.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
interpreter.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
nanoclaw.sh refactor: add trap cleanup for temp files in agent scripts 2026-02-08 03:15:48 +00:00
openclaw.sh refactor: add pipefail to error handling flags 2026-02-08 02:34:45 +00:00
README.md Add E2B + Modal sandbox providers, restructure README (#22) 2026-02-07 14:11:04 -08:00

Lambda Cloud

Lambda GPU Cloud instances via REST API. Lambda Cloud

GPU cloud, uses 'ubuntu' user. Manual tool install (no cloud-init).

Agents

Claude Code

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/claude.sh)

OpenClaw

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/openclaw.sh)

NanoClaw

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/nanoclaw.sh)

Aider

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/aider.sh)

Goose

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/goose.sh)

Codex CLI

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/codex.sh)

Open Interpreter

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/interpreter.sh)

Gemini CLI

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/gemini.sh)

Amazon Q CLI

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/amazonq.sh)

Cline

bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/cline.sh)

Non-Interactive Mode

LAMBDA_SERVER_NAME=dev-mk1 \
LAMBDA_API_KEY=your-key \
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
  bash <(curl -fsSL https://openrouter.ai/lab/spawn/lambda/claude.sh)