Quickstart
Install
Section titled “Install”npm install -g spawnfileVerify:
spawnfile --helpCreate an Agent
Section titled “Create an Agent”spawnfile initThis creates a Spawnfile manifest and starter markdown docs in the current directory. The generated docs (SOUL.md, IDENTITY.md, AGENTS.md) are tailored to the selected runtime’s personality and capabilities:
my-agent/|-- Spawnfile|-- IDENTITY.md|-- SOUL.md\-- AGENTS.mdTo scaffold for a specific runtime:
spawnfile init --runtime tinyclawEdit the Spawnfile
Section titled “Edit the Spawnfile”Open Spawnfile and set your agent’s name and runtime:
spawnfile_version: "0.1"kind: agentname: my-assistantruntime: openclaw
docs: identity: IDENTITY.md soul: SOUL.md system: AGENTS.md
execution: model: primary: provider: anthropic name: claude-sonnet-4-5 auth: method: claude-code workspace: isolation: isolated sandbox: mode: workspaceWrite Your Agent’s Identity
Section titled “Write Your Agent’s Identity”Edit the markdown docs:
- SOUL.md — personality, voice, tone
- IDENTITY.md — who the agent is, self-description
- AGENTS.md — operating instructions and conventions
These are plain markdown files. The runtime loads them into the agent’s context.
Validate
Section titled “Validate”spawnfile validateThis checks the manifest schema, file references, and graph structure without compiling.
Compile
Section titled “Compile”spawnfile compile --out ./distThe compiler emits runtime-native config and workspace files:
dist/|-- runtimes/| \-- openclaw/| \-- agents/| \-- my-assistant/| |-- openclaw.json| \-- workspace/| |-- IDENTITY.md| |-- SOUL.md| \-- AGENTS.md\-- spawnfile-report.jsonBuild and Run
Section titled “Build and Run”Once compiled, you can build a Docker image and run it with auth:
spawnfile auth sync --profile dev --env-file .envspawnfile build --tag my-assistantspawnfile run --tag my-assistant --auth-profile devSee Docker Packaging for the full build and auth workflow.
What’s Next
Section titled “What’s Next”- Write a Spawnfile — full manifest reference
- Agent Docs — understand document roles
- Skills & MCP — add skills and tool connections
- Teams — define multi-agent teams
- Compiling — understand the compile pipeline
- Docker Packaging — build and run containers with auth