spawn/sh/sprite
A 52addf16e5
fix: remove BASH_SOURCE usage from all cloud agent scripts (Fixes #2285) (#2289)
All 42 agent scripts across 6 clouds used BASH_SOURCE[0] with dirname
for local checkout detection. This breaks curl|bash execution because
BASH_SOURCE resolves to /dev/fd/XX instead of a real path.

Remove the BASH_SOURCE-based SCRIPT_DIR detection and the "Local checkout"
code path from all scripts. The SPAWN_CLI_DIR env var (used by e2e tests)
is the correct mechanism for running from source. Local cloud scripts
that previously lacked SPAWN_CLI_DIR support now have it.

Agent: security-auditor

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-07 14:12:10 -05:00
..
.claude/rules refactor: move all shell scripts to /sh directory (#1843) 2026-02-23 21:14:54 -08:00
claude.sh fix: remove BASH_SOURCE usage from all cloud agent scripts (Fixes #2285) (#2289) 2026-03-07 14:12:10 -05:00
codex.sh fix: remove BASH_SOURCE usage from all cloud agent scripts (Fixes #2285) (#2289) 2026-03-07 14:12:10 -05:00
hermes.sh fix: remove BASH_SOURCE usage from all cloud agent scripts (Fixes #2285) (#2289) 2026-03-07 14:12:10 -05:00
kilocode.sh fix: remove BASH_SOURCE usage from all cloud agent scripts (Fixes #2285) (#2289) 2026-03-07 14:12:10 -05:00
openclaw.sh fix: remove BASH_SOURCE usage from all cloud agent scripts (Fixes #2285) (#2289) 2026-03-07 14:12:10 -05:00
opencode.sh fix: remove BASH_SOURCE usage from all cloud agent scripts (Fixes #2285) (#2289) 2026-03-07 14:12:10 -05:00
README.md refactor: move all shell scripts to /sh directory (#1843) 2026-02-23 21:14:54 -08:00
zeroclaw.sh fix: remove BASH_SOURCE usage from all cloud agent scripts (Fixes #2285) (#2289) 2026-03-07 14:12:10 -05:00

Sprite

Sprites.dev managed VMs with CLI. Sprite

Agents

Claude Code

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

OpenClaw

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

ZeroClaw

bash <(curl -fsSL https://openrouter.ai/labs/spawn/sprite/zeroclaw.sh)

Codex CLI

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

OpenCode

bash <(curl -fsSL https://openrouter.ai/labs/spawn/sprite/opencode.sh)

Kilo Code

bash <(curl -fsSL https://openrouter.ai/labs/spawn/sprite/kilocode.sh)

Non-Interactive Mode

SPRITE_NAME=dev-mk1 \
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
  bash <(curl -fsSL https://openrouter.ai/labs/spawn/sprite/claude.sh)