mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-26 11:00:38 +00:00
spawn <agent> <cloud> --repo user/template Clones https://github.com/user/template.git to ~/project on the VM, parses spawn.md (YAML frontmatter), and applies its custom-setup contract: - `setup`: oauth (open URL + wait for Enter), cli_auth (run on VM), api_key (no-echo prompt → /etc/spawn/secrets, sourced from .bashrc), command (run on VM) - `mcp_servers`: env values stay as ${NAME} placeholders so secrets never end up in the template repo. Replay routes through the existing skills.ts helpers (Claude settings.json, Cursor mcp.json, Codex config.toml) — no `node -e` injection. - `setup_commands`: run inside ~/project When the clone succeeds, the agent launches with `cd ~/project && ...` so the user lands in their template's working directory. Reconnect via `spawn last` replays the same launchCmd. Built-in steps (github auth, auto-update, etc.) stay in the CLI --steps flag — spawn.md only handles custom setup that Spawn doesn't know about natively. Bumps CLI to 1.0.22. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| shared | ||