spawndocs

The CLI

Drive spawn from the terminal, configure it with flags or environment variables, and run the server.

spawn is driven from the terminal. The TUI is the primary surface for orchestrating parallel coding agents, and everything starts from the command line in the monorepo.

Getting started

Install dependencies

Install everything in the monorepo first.

Terminal
bun install

Launch the TUI

Run the TUI from the repo root. This is the primary surface.

Terminal
bun dev:tui

Explore the options

Pass --help to any spawn command to see all available options.

Terminal
bun dev:tui --help

Configuration options

Every option is settable as a command-line flag or as an environment variable, so you can wire spawn into shells, scripts, and service managers however you prefer.

CLI flagEnv varNotes
--mode <web|desktop>SPAWN_MODERuntime mode.
--port <number>SPAWN_PORTHTTP/WebSocket port.
--host <address>SPAWN_HOSTBind interface/address.
--base-dir <path>SPAWN_HOMEBase directory.
--dev-url <url>VITE_DEV_SERVER_URLDev web URL redirect/proxy target.
--no-browserSPAWN_NO_BROWSERDisable auto-open browser.
--auth-token <token>SPAWN_AUTH_TOKENWebSocket auth token. Use for standard CLI and remote-server flows.
--bootstrap-fd <fd>SPAWN_BOOTSTRAP_FDRead a one-shot bootstrap envelope from an inherited file descriptor during startup.

Running the server

For remote and production use, build everything first, then launch the server as the built app rather than in Vite dev redirect mode.

Terminal
bun run build
bun run --cwd apps/server start -- --host 0.0.0.0 --port 3773 --auth-token "$TOKEN" --no-browser

To open spawn from another device, see Remote access. For what the server actually does, see the gateway.

On this page