cURL
curl --request POST \ --url http://localhost:63372/api/captain/agents \ --header 'Content-Type: application/json' \ --cookie captain_session= \ --data ' { "id": "coder", "name": "Code Helper", "default": false, "workspace": "./agents/coder", "provider": "anthropic", "model": "claude-sonnet-4-5-20250929", "max_iterations": 20 } '
{ "ok": true, "id": "coder" }
Create a new agent. Automatically scaffolds workspace directories (SOUL.md, MEMORY.md, USER.md, skills/, .mcp.json).
HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.
"coder"
"Code Helper"
false
"./agents/coder"
"anthropic"
"claude-sonnet-4-5-20250929"
20
Agent created
true