Docs · Getting started
One line installs both apps.
Then a first run of each: Agents talks to an agent in a sandbox, Machines builds a machine from one file.
Before you start
- macOS or Linux. Machines makes each machine on a Mac.
- Docker running, for Agents: Docker Desktop or OrbStack.
- An agent runtime you already sign in to, such as Claude Code, for Agents.
Install
curl -fsSL https://spwn.sh/install.sh | bash267 lines of sh. It downloads the newest release from GitHub and checks each binary against the release’s checksums. It installs two commands, spwn-agents and spwn-machines (short: agents, machines). Both go to ~/.local/bin; the two aliases, and the PATH line if your shell needs it, go to your shell’s file. No sudo. On a terminal it then hands over to station init, passing it its own arguments, such as --name; with --no-init, or with no terminal, it prints that command instead.
Commands below are written with the binaries’ names, spwn and station. spwn-agents and spwn-machines, and their aliases agents and machines, run the same commands.
Agents: a first agent
spwn authOpens a dashboard of the agent runtimes you sign in to, where you sign in or pick one. Spwn has no account of its own.
spwn initScaffolds a project in the current folder: spwn.yaml, spwn.lock, the agent spwn/agents/neo/, and examples of a skill, a tool, a hook and a command. It adds .spwn/ to .gitignore.
spwn agent neoBuilds neo’s image, brings up its world, a sandboxed Docker container, if it is not running, and opens a session with neo.
Machines: a first machine
station initMakes this computer known to Machines: it names it, asking the name on a terminal, and writes Machines’ block in ~/.zshrc. It installs no app and asks no password. The installer runs it on a terminal; run it yourself after --no-init or an install with no terminal.
~/.config/station/machinefiles/qa.machine.yamlmachinefile: station.machinefile/v1 name: qa machine: kind: workspace system: { os: ubuntu, version: '24.04', arch: arm64 } extends: [base-ubuntu] apps: - { name: node, version: '24' }Describes the machine in one file: a Linux workspace on Machines’ own base-ubuntu, with Node 24 added. Machines reads your Machinefiles from this folder.
station images build qaBuilds the image the file makes, on this Mac. A command that needs tart, the hypervisor behind the VMs, offers to install it first.
station machines create qa-1 --from qaMakes the workspace qa-1 from that image, sized as the file says, and prints each step as it passes: Running, Has an address, SSH answers.
Stop or remove it
spwn down destroys a world; the agent and its mind stay. spwn agent rm neo removes the agent and its mind.
On Machines, station machines stop keeps a VM’s disk; station machines delete removes it.
To remove the commands, delete spwn, station, spwn-agents and spwn-machines from ~/.local/bin, and the lines under # Added by spwn installer in your shell’s file.
Next
- Every Machines command
- Every Agents command
- Start a project and its first agent
spwn init - Talk to an agent
spwn agent neo - Save a world and come back to it
spwn world snap save - Fork an agent
spwn agent fork - Remove an agent and its mind
spwn agent rm - Machines, the concept
- Agents, the concept
- The seven principles
- Why Spwn exists