convoy stop <swarm> [<agent>]What it does
Sends {"reason": "stopped from the CLI"} to the server and prints the resulting status. It acts on the latest run.
convoy stop <swarm>callsPOST /v1/swarms/{name}:stop. Every non-terminal agent is stopped: processes are killed and tokens revoked. The run ends as Stopped with reasonstopped, andconvoy runmay then start a new run of that name.convoy stop <swarm> <agent>callsPOST /v1/swarms/{name}/agents/{agent}:stop. The agent’s children are stopped first, depth first, then the agent. The rest of the swarm keeps running.
Both are idempotent: stopping something already in a terminal state succeeds and changes nothing.
Examples
$ convoy stop edge_chips
swarm "edge_chips" run 3 STOPPED (stopped), spend $4.87$ convoy stop edge_chips researcher[tenstorrent]
agent "researcher[tenstorrent]" stoppedFree the name, then start over:
$ convoy stop edge_chips && convoy runNotes
Stopping the whole swarm is the only way to replace a running one, because convoy run refuses with swarm_active. A run stopped by a human has end reason stopped. Runs stopped by the server itself end with budget or max_runtime. Outputs already produced are kept and readable with convoy status --run N.
The agent form needs the caller to be the CLI, the overseer, or the agent’s parent. The CLI always qualifies.
Exit codes
| Code | Cause |
|---|---|
0 | Stopped, or already in a terminal state |
1 | Unknown swarm or agent (404), or server unreachable |
2 | Missing argument |
API endpoints
POST /v1/swarms/{name}:stopPOST /v1/swarms/{name}/agents/{agent}:stop