mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-30 12:04:31 +00:00
Completed ENV_TEMP pattern extraction across remaining providers: 1. Modal: gptme.sh (1 script) - uses inject_env_vars_local 2. GCP: all 10 agent scripts - uses inject_env_vars_ssh 3. Fly.io: all 11 agent scripts - uses new inject_env_vars_fly - Added inject_env_vars_fly() to fly/lib/common.sh - Handles both .bashrc and .zshrc (Fly-specific requirement) 4. Sprite: amazonq, cline, gemini (3 scripts) - uses inject_env_vars_sprite Total scripts converted in this commit: 25 Total scripts converted in Round 25 Task #1: 78 scripts Each conversion replaces 11-15 lines of temp file management with a single function call that handles creation, permissions, content generation, upload, sourcing, and cleanup. The only remaining ENV_TEMP patterns are DOTENV_TEMP in nanoclaw scripts, which are agent-specific .env files and should remain as-is. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .githooks | ||
| .github/workflows | ||
| aws-lightsail | ||
| cli | ||
| digitalocean | ||
| docs | ||
| e2b | ||
| fly | ||
| gcp | ||
| hetzner | ||
| lambda | ||
| linode | ||
| modal | ||
| shared | ||
| sprite | ||
| test | ||
| vultr | ||
| .shellcheckrc | ||
| AUTONOMOUS_REFACTORING_COMPLETE.md | ||
| CLAUDE.md | ||
| improve.sh | ||
| manifest.json | ||
| README.md | ||
| REFACTORING_SUMMARY.md | ||
Spawn
Launch any agent on any cloud, powered by OpenRouter.
Install
curl -fsSL https://openrouter.ai/lab/spawn/cli/install.sh | bash
Usage
spawn # Interactive picker
spawn <agent> <cloud> # Launch directly
spawn list # Show the full matrix
Examples
spawn claude sprite # Claude Code on Sprite
spawn aider hetzner # Aider on Hetzner Cloud
spawn goose digitalocean # Goose on DigitalOcean
spawn codex vultr # Codex CLI on Vultr
Commands
| Command | Description |
|---|---|
spawn |
Interactive agent + cloud picker |
spawn <agent> <cloud> |
Launch agent on cloud directly |
spawn <agent> |
Show available clouds for an agent |
spawn list |
Full agent x cloud matrix |
spawn agents |
List all agents |
spawn clouds |
List all cloud providers |
Without the CLI
Every combination also works as a one-liner:
bash <(curl -fsSL https://openrouter.ai/lab/spawn/{cloud}/{agent}.sh)
Non-Interactive
Skip all prompts with environment variables:
OPENROUTER_API_KEY=sk-or-v1-xxxxx \
spawn claude sprite
Each cloud has its own env vars for auth — see the cloud's README.
Matrix
| Sprite | Hetzner | DigitalOcean | Vultr | Linode | Lambda | Lightsail | GCP | E2B | Modal | Fly.io | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Claude Code | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| OpenClaw | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| NanoClaw | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Aider | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Goose | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Codex CLI | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Interpreter | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Gemini CLI | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Amazon Q | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Cline | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| gptme | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Development
git clone https://github.com/OpenRouterTeam/spawn.git
cd spawn
git config core.hooksPath .githooks