Docs
Sign in

Launch a crew with explicit model picks.

POST/api/v1/crews/selection

Scopecrews

The timeline records the key ID, action and outcome.

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

projectIdstringrequired

The project the crew works on. At least 5 characters.

goalstringrequired

What the crew should do. At least 1 character.

modeenumrequired

direct runs the tasks you list (or the goal, with repeatGoal); managed lets a manager plan the tasks and merge them into one pull request.

requestedSize1–100 | "auto"required

Requested workers. auto lets a managed crew's plan decide.

tasksarray

Direct mode: the jobs. Empty in managed mode, where the manager plans them. Default empty.

ShowHide 4 fields

titlestringrequired

A short name for the task, shown on the timeline and the pull request. At least 1 character.

instructionsstringrequired

What the agent should do: the whole brief it is given for this task. At least 1 character.

roleenum

The kind of agent that does it. One of manager, builder, tester, reviewer, researcher, integrator. Default builder.

requiresobject

What the machine must have to run it. Left out, any machine the crew may use. Default {"tools":[]}.

ShowHide 3 fields

osenum

Only machines with this operating system. One of macos, linux.

xcodeboolean

Only machines with Xcode installed.

toolsarray

Command names the machine must have (as the node reports them), such as xcodebuild or docker. Default empty.

repeatGoalboolean

Direct mode shortcut: run the goal itself as N identical independent jobs. Default false.

placementobject

allowLocal and allowCloud choose paired machines, cloud VMs or both; deniedNodeIds leaves machines out. Default {"policy":"lowest_cost","deniedNodeIds":[],"allowCloud":true,"allowLocal":true}.

ShowHide 5 fields

policyenum

pinned runs only on pinnedNodeId. lowest_cost and fastest place the same way today: paired machines before cloud workers, the one with the most free slots first. Default lowest_cost.

pinnedNodeIdstring

Run every agent on this one machine (a machine id). No cloud worker is used. At least 5 characters.

deniedNodeIdsarray

Machine ids the crew may not use. Default empty.

allowCloudboolean

The crew may start cloud VMs, within its limits. Default true.

allowLocalboolean

The crew may use your paired machines. Default true.

limitsobjectrequired

budgetUsd and maxVms are hard caps on cloud compute for this crew; timeoutMinutes is its time limit.

ShowHide 7 fields

budgetUsdnumber

Hard cap on cloud compute spend for this crew, in dollars. A launch may leave it out: the server then uses 5 US dollars, or the install's cloud budget cap when that is lower (GET /capabilities, limits.defaultCrewBudgetUsd). ≥ 0. Default 5.

maxVms0–100required

The most cloud VMs this crew may have open at once. 0 starts none.

timeoutMinutesintegerrequired

The crew's time limit in minutes. When it passes, the crew fails with "Timed out". Time spent waiting for your approval of a plan is not counted. > 0.

maxRetries0–5

How many times a failed agent is run again before its task fails. Default 1.

reviewobject

Review, re-plan and reviewer bounds. Absent: each bound takes the default shown below.

ShowHide 8 fields

managerReviewboolean

Managed crews: the manager reviews the merged, checked result before anything is delivered. Default true.

reviewerenum

An independent reviewer agent before the crew's pull request (managed) or each task's pull request (direct). "auto": only when the launch named a reviewer connection or reviewer model. One of auto, on, off. Default auto.

followUpRounds0–5

How many times the crew may go back for follow-up work (a manager review or a reviewer asking for changes). Default 2.

replans0–3

Managed crews: re-plan turns after a task fails for good or its merge cannot be resolved. Default 1.

maxAddedTasks0–20

Tasks the crew may add after its first plan, by review, re-plan and reviewer together. Default 5.

planApprovalboolean

Managed crews: after the manager's plan is checked, the crew waits for the founder to approve it before any task starts or any builder machine is used. Absent: off. Refused on a direct crew.

planRevisions0–10

With planApproval: how many times the founder may send the plan back for changes. Absent: 3.

steers0–50

Managed crews: how many steering messages the founder may send the manager after the plan is made (POST /crews/{id}/steer). Absent: 10. 0 turns steering off.

ciFixobject

Wake an agent when a GitHub check fails on one of this crew's task pull requests. Absent: off.

ShowHide 2 fields

enabledboolean

Start a fix task when a check fails. Default false. Default false.

maxAttempts1–5

Fix tasks per pull request at most, whatever happens. Default 2.

toolUsd0–10000

Hard cap on this crew's tool spend through Monid, in dollars: every call's ceiling is reserved against it before the call. Separate from budgetUsd (cloud compute) and from model use. Absent: the workspace's default (PUT /tools/monid/limits, crewUsd).

presetstring

A name kept with the crew. The server stores it and does nothing else with it.

selectionobjectrequired

A launch's model choices. builder is always named: the server never picks a connection. A role left out uses the builder's pick (expandSelection). Defaults may prefill a form; they never enter a launch on their own.

ShowHide 3 fields

builderobjectrequired

One role's explicit choice: which named connection, which harness, which model, which options.

ShowHide 4 fields

connectionIdstringrequired

The connection this role's agents use, by id (GET /connections). Named every time: the server never picks one. At least 5 characters.

harnessenumrequired

The coding agent program that runs the model. A machine runs it only when that harness is installed there. One of claude-code, pi, codex, opencode.

modelstringrequired

The model this role's agents use, as the connection's provider names it. 1 to 200 characters.

optionsobject

The model's options for this role. Default {}.

ShowHide 1 field

effortenum

How much reasoning the model spends, where its harness lets you choose. Left out, the harness's default. One of low, medium, high, xhigh, max.

managerobject

One role's explicit choice: which named connection, which harness, which model, which options.

ShowHide 4 fields

connectionIdstringrequired

The connection this role's agents use, by id (GET /connections). Named every time: the server never picks one. At least 5 characters.

harnessenumrequired

The coding agent program that runs the model. A machine runs it only when that harness is installed there. One of claude-code, pi, codex, opencode.

modelstringrequired

The model this role's agents use, as the connection's provider names it. 1 to 200 characters.

optionsobject

The model's options for this role. Default {}.

ShowHide 1 field

effortenum

How much reasoning the model spends, where its harness lets you choose. Left out, the harness's default. One of low, medium, high, xhigh, max.

reviewerobject

One role's explicit choice: which named connection, which harness, which model, which options.

ShowHide 4 fields

connectionIdstringrequired

The connection this role's agents use, by id (GET /connections). Named every time: the server never picks one. At least 5 characters.

harnessenumrequired

The coding agent program that runs the model. A machine runs it only when that harness is installed there. One of claude-code, pi, codex, opencode.

modelstringrequired

The model this role's agents use, as the connection's provider names it. 1 to 200 characters.

optionsobject

The model's options for this role. Default {}.

ShowHide 1 field

effortenum

How much reasoning the model spends, where its harness lets you choose. Left out, the harness's default. One of low, medium, high, xhigh, max.

Response.

201 Created · CrewView

422 validation_failed
Each schema error appears in details.