Skip to content
Deployment
Skill

/codex

Create child cloud VMs with AI coding agents using the spawn CLI

From plugin
spawn
2527 skills

Claude Code

$ npx -y skills add OpenRouterLabs/spawn --skill codex --agent claude-code

SKILL.md

codex.SKILL.md
name: spawn
description: Create child cloud VMs with AI coding agents using the spawn CLI
allowed-tools: Bash

Spawn — Create Child VMs

You have the `spawn` CLI installed. Use it to provision cloud VMs with AI agents.

Provision a Child VM

spawn <agent> <cloud> --headless --output json --prompt "task description"

**Agents:** claude, codex, cursor, openclaw, opencode, kilocode, hermes, junie **Clouds:** hetzner, digitalocean, aws, gcp, sprite

Returns JSON: `{"status":"success","ip_address":"...","ssh_user":"root","server_id":"..."}`

Running Prompts on Child VMs

`--headless` only provisions — to run work on the child, SSH in with `bash -lc`:

# Claude Code (use -p, NOT --print or --headless)
ssh -o StrictHostKeyChecking=accept-new root@<ip> "bash -lc 'claude -p --dangerously-skip-permissions \"your prompt\"'"

# Codex CLI
ssh -o StrictHostKeyChecking=accept-new root@<ip> "bash -lc 'codex --quiet \"your prompt\"'"

IMPORTANT — do NOT waste tokens rediscovering these:

  • **Always use `bash -lc`** — agent binaries are in `~/.local/bin/` which is only on PATH in login shells
  • **Claude uses `-p`** for non-interactive output (NOT `--print`, NOT `--headless`)
  • **Add `--dangerously-skip-permissions`** to skip approval prompts on child VMs
  • **Never try `which claude` or `find`** to locate binaries — they are always at `~/.local/bin/<agent>`
  • **Never create non-root users** to work around permission issues — just use `-p`

Managing Children

  • `spawn list --json` — see running children
  • `spawn delete --name <name> --yes` — tear down a child VM (headless)
  • `spawn tree` — see the full spawn tree

Context

  • You are running inside a spawned VM (SPAWN_DEPTH is set)
  • Cloud credentials are pre-configured — no auth prompts
  • OpenRouter billing is shared with the parent
Read more
@openrouterlabs
Ships withspawn

Launch any AI agent on any cloud with a single command. Coding agents, research agents, self-hosted AI tools — Spawn deploys them all. All models powered by OpenRouter. (ALPHA software, use at your own risk!) 10 agents. 8 clouds. 79 working combinations.

Stars on GitHub

Momentum

stars in total
252
Star history of OpenRouterLabs/spawn on GitHub, a chart by star-history.com

Other skills on spawn.

pcl

pcl

Delete stale git branches (local + remote) that have no open PR, and prune worktrees.

More skills from other plugins.

configuring-horizon

configuring-horizon

Use this skill whenever the user mentions Horizon by name in a Laravel context. Covers the full Horizon lifecycle: installing…

coolify13d66k
@coollabsio@coollabsioInstall Skill
vercel-cli

vercel-cli

Guides deployment, configuration, and troubleshooting with the Vercel CLI. Use when operating Vercel projects or resources…

vercel2w16k
@vercel@vercelInstall Skill
skypilot

skypilot

Use when launching cloud VMs, Kubernetes pods, or Slurm jobs for GPU/TPU/CPU workloads, training or fine-tuning models on cloud…

@skypilot-org@skypilot-orgInstall Skill
pinme

pinme

Use this skill when the user mentions "pinme", or needs to upload files, store to IPFS, create/publish/deploy websites or…

pinme2mo3.8k
@glitternetwork@glitternetworkInstall Skill

Questions about codex.

Which coding agents can use codex?
codex installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.