# Run Claude Code with auto-detected toolchain
spawn .# Run Codex instead
spawn . codex
# Full auto mode (no permission prompts)
spawn .--yolo# Mount additional directories
spawn .--mount ~/shared-libs --mount ~/data
# Mount a directory read-only
spawn .--read-only ~/reference-docs
# Pass environment variables
spawn .--envANTHROPIC_API_KEY=sk-ant-...
# Use an env file
spawn .--env-file ~/.config/spawn/env
# Override the auto-detected toolchain
spawn .--toolchain rust
spawn .--toolchain js
# Override the container image entirely
spawn .--image my-custom-image:latest
# Allocate more resources
spawn .--cpus 8 --memory 16g
# Debug: drop into a shell
spawn .--shell# See what container command spawn is running
spawn .--verbose
Build container images. Omit the toolchain to build all images (base is built first automatically since other images depend on it).
spawn build # Build all images
spawn build base # Build the base image
spawn build rust # Build the Rust toolchain image
spawn build cpp # Build the C++ toolchain image
spawn build go # Build the Go toolchain image
spawn build js # Build the JS/TS toolchain image
Options
Option
Description
--cpus <n>
CPU cores for the builder container (default: 4)
--memory <size>
Builder container memory (default: 8g)
--verbose
Show build commands
spawn image
spawn image list # List spawn-* images
spawn image list --all# List all images including non-spawn ones
spawn image rm spawn-rust:latest spawn-go:latest # Remove images
spawn image rm only removes spawn-* images and refuses to remove spawn-base (since other images depend on it).
spawn list / stop / exec
spawn list # List running containers
spawn stop <id># Stop a running container
spawn exec <id>--ls# Run a command in a running container
spawn shell <id># Open /bin/bash in a running container
spawn doctor # Check local setup and workspace detection