Skip to content

FAQ

What you’ll learn: Answers to the most common questions about OpenSpawn — what it is, how to use it, how it applies to real industry scenarios, and how agents interact with it.

TL;DR for agents: OpenSpawn is a coordination layer. You define an org in ORG.md, run openspawn start, and agents communicate via MCP tools at POST /mcp. If you’re blocked, escalate up the chain. If you’re done, task_complete.


These are the questions people ask most often. Longer answers are in the sections below.

#QuestionShort answer
1What is OpenSpawn?An open-source coordination layer for AI agent orgs — defined in one markdown file (ORG.md).
2Do I need to rewrite my agents?No. OpenSpawn connects to existing agents via MCP, A2A, or REST.
3Do I need API keys to try it?No. npx openspawn init my-org && openspawn start works offline with simulated agents.
4What do I need installed?Node 18+, Python 3.12+, and uv. Docker optional (production only).
5My ORG.md agents aren’t showing up — why?Check heading depths (H3 for departments, H4 for roles) and use bold-key metadata: - **Level:** 6. Check startup logs.
6I get Invalid credentials from the API.Clock skew or wrong signature message format. See Auth Errors.
7Why is my task stuck and won’t transition?DONE and CANCELLED are terminal — create a new task. IN_PROGRESS → DONE is invalid; go through REVIEW first.
8How do I fix port conflicts?lsof -i :3456 (MCP) or lsof -i :3333 (sandbox), kill the process, or start with --port.
9The dashboard goes blank / SSE drops.Proxy timeout. Set proxy_read_timeout 86400s (nginx) or flush_interval -1 (Caddy).
10How do I debug a broken setup?Check startup logs → check port → inspect data/openspawn.db → see Troubleshooting Guide.

OpenSpawn is an open-source coordination layer for AI agent organizations. You define your entire agent org — roles, hierarchy, culture, policies — in a single markdown file (ORG.md). OpenSpawn parses it, assigns agents, routes tasks through the hierarchy, and provides a real-time dashboard.

It is infrastructure, not a framework: it works with any agent stack (OpenClaw, LangGraph, CrewAI, AutoGen, raw API calls).

Q2: How is OpenSpawn different from CrewAI or LangGraph?

Section titled “Q2: How is OpenSpawn different from CrewAI or LangGraph?”
CrewAI / LangGraph = agent frameworks (how you BUILD agents)
OpenSpawn = coordination layer (how you ORGANIZE agents)
  • CrewAI/LangGraph define how agents execute tasks
  • OpenSpawn defines who does what, who they report to, what they can spend, and who approves decisions

They’re designed to work together, not replace each other.

Q3: Do I need to rewrite my agents to use OpenSpawn?

Section titled “Q3: Do I need to rewrite my agents to use OpenSpawn?”

No. OpenSpawn connects to your existing agents via standard protocols:

  • MCP (Model Context Protocol) — for tool calls
  • A2A (Agent-to-Agent) — for inter-org communication
  • REST — for direct API calls

Your agents keep running as-is. OpenSpawn adds the coordination layer on top.

No. Demo/simulation mode works out of the box:

Terminal window
npx openspawn init my-org --template=saas-onboarding --non-interactive
cd my-org
openspawn start
# Open http://localhost:8787

You’ll see the full coordination flow with simulated agents, no API keys needed.

Yes. MIT open source. Self-hosted. No usage fees.

Optional: paid hosted tier (in development) for teams that don’t want to self-host.


  • Required:
    • Node.js 18+ (node --version)
    • Python 3.12+ (python3 --version)
    • uv (uv --version) — Python package manager
  • Optional:
    • Docker — for production deployment with PostgreSQL (not needed locally)
Terminal window
openspawn init my-org --template=saas-onboarding --yes
cd my-org
openspawn start
  • init — scaffolds ORG.md, agent workspaces, and config
  • start — boots the Python API (FastAPI + SQLite), seeds agents, spawns Claude Code subprocesses, starts the asyncio scheduler

Agent status, tasks, and org health are visible in the dashboard at http://localhost:8787.

What's your domain?
├── Customer success / SaaS → saas-onboarding
├── Infrastructure / DevOps → incident-response
├── Legal → contract-review
├── Finance / Compliance → compliance-monitoring
├── Gaming / live service → game-live-ops
├── E-commerce / retail → catalog-management
└── Healthcare / life sciences → clinical-trials

All templates are starting points — edit the generated ORG.md freely.

Q9: What is openclaw-patch.json and what do I do with it?

Section titled “Q9: What is openclaw-patch.json and what do I do with it?”

openclaw-patch.json is a ready-to-apply patch for your OpenClaw gateway’s agents.list. It contains entries with:

  • id — agent identifier (lowercase hyphenated name)
  • modelopus for L7+ agents, sonnet for L6 and below
  • workspace — agent workspace path
  • tools.profile: "full" — full tool access
  • subagents.allowAgents — for manager agents (L7+ with direct reports)
  • default: true — on the highest-level agent

To apply: copy the entries from openclaw-patch.json into your OpenClaw agents.list config, then restart the gateway.

ORG.md is validated automatically when openspawn start boots the API. The seeder parses your org definition, checks hierarchy consistency, and reports errors in the startup logs before spawning agents.

Common errors and fixes:

ErrorFix
Missing Structure sectionAdd ## Structure with at least one agent
Agent reports to unknown agentCheck Reports to matches an agent name exactly
No top-level agentOne agent must have Reports to: Human Principal
Circular reporting chainNo agent can report to itself or create a loop

# My Org
## Structure
### Boss — Leader
- **Level:** 10
- **Reports to:** Human Principal

That’s it. One heading, one agent, one level, one reporting line.

LevelRole typePermissions
L1-L5WorkersExecute tasks
L6SeniorsReview and approve work
L7-L9LeadsCreate tasks, spawn agents, manage teams
L10ExecutivesTop of hierarchy
SectionPurposeRequired?
## IdentityName, mission, values — ambient context for all agentsNo
## CultureCommunication norms, escalation speed, presetNo
## StructureAgent roles and hierarchyYes
## PoliciesBudget limits, caps, permissionsNo
## PlaybooksStep-by-step procedures for common scenariosNo

Presets are shorthand for configuring communication norms. Use one line:

## Culture
preset: agency
PresetEscalationProgressBest for
startupImmediateFrequentSmall fast teams
enterpriseBatched (hourly)On phase changeLarge orgs with process
agencyImmediateEvery tickClient work with deadlines
researchDelayedOn requestExploration, long tasks
militaryImmediateEvery tickZero-ambiguity operations
remote-asyncDelayedOn requestDistributed async teams

SQLite is the default for local development — zero config, no Docker. openspawn start creates data/openspawn.db automatically.

PostgreSQL is recommended for production. Run npx openspawn init --deploy to generate a docker-compose.yml, then set DATABASE_URL to switch.

ConcernSQLite (local)PostgreSQL (production)
SetupZero configDocker or managed DB
ConcurrencySingle-writerFull MVCC
Persistencedata/openspawn.dbVolume-backed
Memory/pgvecWorksBetter performance
MigrationAutomatic via seederAlembic migrations

No. The asyncio scheduler replaces Redis for background jobs (SLA monitoring, escalation, status sync). Redis is no longer required in any mode.

Q14.7: Do I need Docker for local development?

Section titled “Q14.7: Do I need Docker for local development?”

No. openspawn start boots a Python API with SQLite — no containers needed. Docker is only required for production PostgreSQL deployments.


Q15: How do agents interact with OpenSpawn?

Section titled “Q15: How do agents interact with OpenSpawn?”

Via MCP tools at POST /mcp. Authentication is HMAC — set AGENT_ID and AGENT_SECRET env vars.

Core workflow:

agent_list → see who's in the org
task_create → assign work to another agent
task_claim → atomically claim an open task
task_complete → mark work done with results
escalation_create → flag a blocker to your manager
message_send → send TASK/RESULT/ESCALATION/DECISION
credits_balance → check your budget
org_status → full org overview

Full tool reference: docs/mcp-reference.md

No. task_claim is atomic — only one agent wins the claim, the other gets an error. This prevents duplicate work by design.

tool: task_claim { task_id: "abc123", agent_id: "data-migration-specialist" }

Q17: What happens when an agent is blocked?

Section titled “Q17: What happens when an agent is blocked?”
  1. Agent sends escalation_create to its direct manager (never skips the chain)
  2. Manager has 2 cycles to respond: unblock, reassign, or escalate further
  3. If unresolved after 2 levels, alert goes to the Human Principal

Q18: How do agents communicate efficiently?

Section titled “Q18: How do agents communicate efficiently?”

The Agent Communication Protocol defines 4 message types — no ACKs, no courtesy messages:

TypeDirectionWhen
TASKLead → WorkerWork assignment
RESULTWorker → LeadDeliverable notification
ESCALATIONWorker → LeadBlocker requiring help
DECISIONLead → WorkerResolves an escalation

Core rule: Silence = success. If an agent is working, it stays silent. Only message when blocked, assigning, delivering, or resolving.

Q19: What files do agents use to share state?

Section titled “Q19: What files do agents use to share state?”

Instead of sending messages, agents write to shared workspace files:

FileOwnerPurpose
PLAN.mdLead agentCurrent sprint plan with task assignments
RESULT.mdWorkersCompleted deliverables
HANDOFF.mdAny agentWork ready for next stage
REVIEW.mdReviewersFeedback and approvals
ESCALATION.mdAny agentComplex issues needing >3 turns

Q20: Can I use OpenSpawn for compliance monitoring?

Section titled “Q20: Can I use OpenSpawn for compliance monitoring?”

Yes. The compliance-monitoring template is purpose-built for fintech compliance teams. It models:

  • Transaction ingestion and normalization (Transaction Analyst)
  • AML/BSA rule application and OFAC screening (Rule Engine Agent)
  • SAR/CTR filing and regulatory reporting (Report Generator)
  • Compliance Lead oversight with human approval gates for all filings

The template includes a zero-tolerance OFAC escalation playbook and a full SAR filing workflow, with audit trails required for regulatory inspection.

Terminal window
openspawn init my-compliance-org --template=compliance-monitoring

Q21: How would I set up a contract review pipeline?

Section titled “Q21: How would I set up a contract review pipeline?”

Use the contract-review template. The pipeline flows:

  1. Clause Extractor reads the contract and categorizes all key clauses (liability, indemnification, IP, etc.)
  2. Risk Analyst compares each clause against your negotiation playbook and flags deviations
  3. Summary Writer produces an attorney-ready package with risk register and recommended redlines
  4. Senior Reviewer approves before delivery to business stakeholders
Terminal window
openspawn init my-legal-org --template=contract-review

Update the Policies section with your company’s specific playbook reference and risk thresholds.

Q22: Can I use OpenSpawn for customer onboarding?

Section titled “Q22: Can I use OpenSpawn for customer onboarding?”

Yes. The saas-onboarding template models a 48-hour enterprise onboarding track. Each new customer becomes a task in the onboarding org. The Onboarding Lead coordinates Data Migration, Integration Engineering, and Customer Success in parallel — with handoff protocols at each stage.

The template is designed so each customer’s onboarding is repeatable, documented, and trackable from kickoff to go-live.

Q23: How would I handle a production incident with OpenSpawn?

Section titled “Q23: How would I handle a production incident with OpenSpawn?”

Use the incident-response template. When an alert fires:

  1. Incident Commander activates and assigns Diagnostics and Comms agents simultaneously
  2. Diagnostics Agent pulls metrics, traces, and logs to identify root cause
  3. Remediation Agent executes fix with explicit Commander go-ahead
  4. Comms Agent keeps stakeholders informed throughout

The template uses the military culture preset — mandatory acks, every-5-minute progress updates, and immediate escalation. No silent failures.

Q24: Can I use OpenSpawn for a gaming live ops team?

Section titled “Q24: Can I use OpenSpawn for a gaming live ops team?”

Yes. The game-live-ops template covers:

  • 24/7 economy metric monitoring with guardrails (max 15% parameter change without approval)
  • Automated content generation on the weekly calendar
  • Player sentiment monitoring across app stores and social
  • Economy exploit response playbook with escalation thresholds
Terminal window
openspawn init my-game-org --template=game-live-ops

Q25: How does OpenSpawn handle regulatory compliance requirements like audit trails?

Section titled “Q25: How does OpenSpawn handle regulatory compliance requirements like audit trails?”

For regulated industries (fintech, healthcare, legal), the ORG.md Policies section can specify:

  • Audit trail requirements (every agent action logged with source reference and agent ID)
  • Human approval gates for specific action types
  • Data handling restrictions (what agents can read vs. write)
  • Mandatory quality checkpoints before phase transitions

The clinical-trials template is the most comprehensive example — it models 21 CFR Part 11 audit trail requirements and CDISC data standards compliance into the agent workflow.


Q26: Where do I go when something’s broken?

Section titled “Q26: Where do I go when something’s broken?”
  1. Check openspawn start logs — ORG.md validation runs automatically on boot
  2. Read the full Troubleshooting Guide — covers all error messages with exact fixes
  3. Check port conflicts: lsof -i :8787 (API/dashboard)
  4. Review auth: verify AGENT_ID / AGENT_SECRET, timestamp skew (±5 min window), and nonce uniqueness
  5. Check task state: DONE and CANCELLED are terminal — can’t be re-opened
  6. GitHub issues: https://github.com/openspawn/openspawn/issues

Common error → fix table:

ErrorFix
ORG.md not found at ...Run from the right directory or pass --dir
Unnamed Org in dashboardAdd # My Org Name as the first H1 in ORG.md
Invalid transition: {from} → {to}Check the task state machine
Request timestamp outside valid windowSync system clock: ntpdate -u pool.ntp.org
Nonce already usedGenerate a fresh UUID nonce per request
Invalid credentials (HMAC)Verify signature message format: METHOD+PATH+TIMESTAMP+NONCE+BODY
API key missing required scopeRegenerate key with correct scopes in dashboard
Cannot delegate to agent of equal or higher levelDelegation only flows downward in the hierarchy
EADDRINUSE :::3456Kill existing process on that port or use --port flag