The Agent Operating System
systemd for AI agents
Logo source: assets/logo.svg
Quick Start β’ Features β’ Architecture β’ Docs β’ Enterprise β’ Community
Your AI agent can think. But can it act?
Every team building agents today faces the same challenge: agents need to execute code, browse the web, manage files, remember context, and coordinate with other agents. The current solutions are fragmented, insecure, and impossible to observe.
Without spawn:
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Your LLM ββββββΆβ 47 Deps ββββββΆβ Prayers β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β β β
βΌ βΌ βΌ
"Execute "Maybe it's "It deleted
this code" secure?" my files"
With spawn:
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Your LLM ββββββΆβ spawn ββββββΆβ Production β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β β β
βΌ βΌ βΌ
"Execute "Sandboxed, "Full trace,
this code" isolated" $0.003 cost"
# macOS / Linux
curl -sSL https://spawn.dev/install | sh
# Homebrew
brew install spawndev/tap/spawn
# Go
go install spawn.dev/cmd/spawn@latest
# Docker
docker pull ghcr.io/spawndev/spawn:latest# Initialize a new agent
spawn init my-researcher
# Edit the configuration
cd my-researcher && cat agent.yamlapiVersion: spawn.dev/v1
kind: Agent
metadata:
name: researcher
spec:
model:
provider: anthropic
name: claude-sonnet-4-20250514
goal: |
Research the given topic and produce a comprehensive
report saved to ./output/report.md
capabilities:
web:
enabled: true
code:
enabled: true
languages: [python]
files:
enabled: true
mounts:
- path: /output
mode: rw# Run the agent
spawn run --topic "quantum computing breakthroughs 2025"
# Watch it think, browse, code, and write β all sandboxedThat's it. Your agent now has secure access to the web, code execution, and file management.
Every agent runs in an isolated sandbox with configurable security policies.
| Runtime | Isolation Level | Performance | Use Case |
|---|---|---|---|
| gVisor | High | ~5% overhead | Production default |
| Firecracker | Maximum | ~10% overhead | Multi-tenant, untrusted |
| Docker | Medium | Native | Development |
| Native | None | Native | Testing only |
spec:
sandbox:
runtime: gvisor
seccomp: strict
network: egress-only
readOnlyRoot: trueEvery capability your agent needs, batteries included.
|
Code Execution capabilities:
exec:
languages: [python, node, bash, rust]
timeout: 5m
memory: 512Mi
|
Web Access capabilities:
net:
allowlist: ["*.wikipedia.org"]
rateLimit: 100/min
browser:
headless: true
stealth: true
|
|
File System capabilities:
fs:
mounts:
- path: /data
source: s3://bucket
mode: ro
|
Memory capabilities:
memory:
vector: { dimensions: 1536 }
graph: { enabled: true }
ttl: 24h
|
|
Tools (MCP Compatible) capabilities:
tools:
mcp:
- uri: "http://localhost:3000"
builtin:
- calculator
- json_parser
|
Secrets capabilities:
secrets:
inject:
- name: API_KEY
source: vault://secret/key
|
First-class support for agent-to-agent communication.
# researcher.yaml
spec:
mesh:
channels:
- name: findings
type: pubsub
topic: research.findings
---
# writer.yaml
spec:
mesh:
channels:
- name: findings
type: pubsub
topic: research.findings
subscribe: true# Run a swarm
spawn run researcher.yaml writer.yaml reviewer.yaml
# Visualize the topology
spawn mesh topology --watch ββββββββββββββ
β Researcher β
ββββββββ¬ββββββ
β findings
ββββββββΌββββββ
β Writer β
ββββββββ¬ββββββ
β drafts
ββββββββΌββββββ
β Reviewer β
ββββββββββββββ
See everything your agents do. Debug anything.
# Stream logs
spawn logs --follow
# View traces
spawn trace list
spawn trace view tr_abc123
# Decision replay
spawn replay tr_abc123 --step-by-stepBuilt-in dashboards:
- Real-time agent status
- Token usage and costs
- Capability utilization
- Error tracking
spec:
observability:
traces:
enabled: true
sampleRate: 1.0
metrics:
enabled: true
exporters: [prometheus, datadog]
logs:
level: debug
format: jsonNever get surprised by LLM bills again.
spec:
resources:
costLimit:
hourly: 1.00
daily: 10.00
monthly: 100.00
action: pause # pause, notify, or terminate# View real-time costs
spawn cost --watch
# Agent: researcher
# Session: 2h 14m
# Tokens: 847,293 (in: 612,847 / out: 234,446)
# Cost: $2.34
# Limit: $10.00/day (23.4%)βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SPAWN DAEMON β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β CONTROL PLANE β β
β β β β
β β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β β
β β β Scheduler β β Supervisor β β Registry β β Gateway β β β
β β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββββ β β
β β β β β β β β
β βββββββββββΌβββββββββββββββββΌβββββββββββββββββΌβββββββββββββββββΌββββββββββ β
β β β β β β
β βββββββββββΌβββββββββββββββββΌβββββββββββββββββΌβββββββββββββββββΌββββββββββ β
β β AGENT MESH β β
β β β β
β β βββββββββββββββ βββββββββββββββ βββββββββββββββ β β
β β β Agent A βββββββΊβ Agent B βββββββΊβ Agent C β β β
β β ββββββββ¬βββββββ ββββββββ¬βββββββ ββββββββ¬βββββββ β β
β β ββββββββββββββββββββ¬ββ΄βββββββββββββββββββ¬ββ β β
β β βΌ β β β
β β Message Bus (NATS) β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββ β
β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββ β
β β CAPABILITY LAYER β β
β β β β
β β ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ β β
β β β exec β β fs β β net β β memory β βbrowser β β tools β β β
β β ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ ββββββββββ β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β ββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββ β
β β ISOLATION LAYER β β
β β gVisor β Firecracker β Docker β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key Design Principles:
- Single Binary β No runtime dependencies, one binary to rule them all
- Security First β Every agent sandboxed by default, no exceptions
- Observable β Full tracing of every decision, tool call, and state change
- Cloud Native β Kubernetes-ready, scales horizontally
- Protocol Agnostic β Works with any LLM provider
| Resource | Description |
|---|---|
| Quick Start Guide | Get running in 5 minutes |
| Configuration Reference | Complete YAML specification |
| Capabilities Guide | Deep dive into each capability |
| Security Model | Sandbox internals and policies |
| Multi-Agent Patterns | Building agent swarms |
| API Reference | REST and gRPC documentation |
| Deployment Guide | Production deployment patterns |
| Troubleshooting | Common issues and solutions |
apiVersion: spawn.dev/v1
kind: Agent
metadata:
name: deep-researcher
spec:
model:
provider: anthropic
name: claude-sonnet-4-20250514
system: |
You are a thorough research assistant. For each topic:
1. Search the web for authoritative sources
2. Extract and verify key facts
3. Synthesize findings into a structured report
capabilities:
net:
enabled: true
browser:
enabled: true
fs:
mounts:
- path: /output
mode: rw
memory:
vector:
dimensions: 1536apiVersion: spawn.dev/v1
kind: Agent
metadata:
name: code-assistant
spec:
model:
provider: anthropic
name: claude-sonnet-4-20250514
capabilities:
exec:
languages: [python, node, bash]
timeout: 5m
fs:
mounts:
- path: /workspace
source: ./project
mode: rw
tools:
builtin:
- git
- lsp# pipeline.yaml β Three agents working together
---
apiVersion: spawn.dev/v1
kind: Agent
metadata:
name: planner
spec:
goal: Break down complex tasks into subtasks
mesh:
publish: [tasks]
---
apiVersion: spawn.dev/v1
kind: Agent
metadata:
name: executor
spec:
goal: Execute assigned subtasks
mesh:
subscribe: [tasks]
publish: [results]
capabilities:
exec:
enabled: true
---
apiVersion: spawn.dev/v1
kind: Agent
metadata:
name: reviewer
spec:
goal: Review and validate results
mesh:
subscribe: [results]spawn run pipeline.yaml --task "Build a REST API for user management"Managed spawn infrastructure with enterprise features.
| Feature | Cloud | Self-Hosted |
|---|---|---|
| Managed infrastructure | β | β |
| SSO / SAML | β | β |
| Audit logging | β | β |
| SOC 2 Type II | β | β |
| HIPAA compliance | β | β |
| Custom SLAs | β | β |
| 24/7 support | β | Optional |
| Air-gapped deployment | β | β |
Security & Compliance
- Advanced RBAC with attribute-based policies
- Complete audit trail
- Data residency controls
- Custom security policies
- Penetration test reports
Operations
- High availability deployment
- Disaster recovery
- Automated backups
- Custom retention policies
Integration
- LDAP/Active Directory
- Okta, Auth0, Azure AD
- Splunk, Datadog, New Relic
- PagerDuty, Opsgenie
- Custom webhooks
Performance comparison on standard agent tasks:
| Metric | spawn | LangChain | AutoGPT | CrewAI |
|---|---|---|---|---|
| Cold start | 180ms | 2.4s | 5.1s | 1.8s |
| Memory overhead | 45MB | 280MB | 520MB | 190MB |
| Tool execution | 12ms | 89ms | 156ms | 67ms |
| Sandbox overhead | 5% | N/A | N/A | N/A |
| Max concurrent agents | 10,000+ | ~100 | ~20 | ~200 |
Security comparison:
| Feature | spawn | Others |
|---|---|---|
| Code sandbox | gVisor/Firecracker | None/Docker |
| Network isolation | Per-agent policies | None |
| File system isolation | Virtual FS + quotas | Shared |
| Secret management | Vault integration | Env vars |
| Audit logging | Complete | Partial |
- Core agent lifecycle
- All capabilities (exec, fs, net, memory, browser, tools)
- gVisor sandbox
- Multi-agent mesh
- REST/gRPC API
- Observability stack
- Firecracker microVM support
- Distributed scheduling
- Agent checkpointing
- Live migration
- Agent memory consolidation
- Learning from traces
- Automatic tool discovery
- Cost optimization engine
- Visual workflow builder
- Marketplace for capabilities
- Enterprise SSO
- Multi-region deployment
We love contributions! See CONTRIBUTING.md for guidelines.
Quick contribution guide:
# Fork and clone
git clone https://github.com/YOUR_USERNAME/spawn.git
cd spawn
# Install dependencies
make setup
# Run tests
make test
# Run locally
make run
# Submit PRAreas we need help:
- π Translations
- π Documentation
- π§ͺ Test coverage
- π Capability plugins
- π¨ Dashboard UI
Used in production by teams at
spawn is Apache 2.0 licensed.
Built with β€οΈ for the AI agent ecosystem
If spawn helps your team ship agents faster, consider sponsoring the project.

