# convoy status

> Print a run's status, elapsed time, spend against budget, end reason, and one row per agent. Use --json for scripts and --runs for history.

```text
convoy status <swarm> [--run <N>] [--runs] [--json]
```

## What it does

Calls `GET /v1/swarms/{name}` and `GET /v1/swarms/{name}/agents` for the latest run, or run N with `--run`. It prints a header, the goal, an agent table, and the latest overseer progress note.

```console
$ convoy status edge_chips
swarm edge_chips   run 3   RUNNING   elapsed 00:41:12 / 4h   spend $4.12 / $20.00   agents 7 (running 2, idle 4, done 1)
goal: Ship a sourced 10-page market report on edge inference chips

AGENT                 STATUS   TURNS  PROVIDER   SPEND   LAST PROGRESS
researcher[cerebras]  done     12     anthropic  $0.61   published 9 findings
researcher[groq]      idle     8      anthropic  $0.48   waiting on patent search results
writer                running  3      openai     $0.92   drafting section 2
critic                idle     1      anthropic  $0.70   reviewed draft 1, score 0.6
overseer              idle     4      anthropic  $0.31   all researchers productive

progress (latest): 3 of 4 researchers done; writer has started.
```

## Reading the output

| Field | Meaning |
| --- | --- |
| elapsed | Time since the run started, against `max_runtime` |
| spend | The run's total against `max_cost_usd`, or `spend $4.12 (no limit)` when unset. Priced from each turn's reported tokens |
| STATUS | Agent status: pending, running, idle, stuck, done, stopped, failed. See [Agents and turns](/docs/concepts/agents/) |
| TURNS | Turns the agent has taken |
| LAST PROGRESS | The agent's latest `report_progress` summary |

Turns in flight finish after the limit is reached, so total spend can exceed `max_cost_usd`. It is shown as is.

For an ended run, the header shows the end status and reason:

```console
$ convoy status edge_chips --run 2
swarm edge_chips   run 2   STOPPED (budget)   elapsed 02:13:50 / 4h   spend $20.38 / $20.00   agents 7 (done 4, stopped 3)
```

Possible endings: `DONE`, `STOPPED (budget)`, `STOPPED (max_runtime)`, `STOPPED (stopped)` for a human stop, and `FAILED (failed)` or `FAILED (server_restart)`.

## Flags

| Flag | Meaning |
| --- | --- |
| `--run N` | Read run N instead of the latest |
| `--runs` | List every run of the swarm |
| `--json` | Print one merged JSON object |

## Run history

```console
$ convoy status edge_chips --runs
RUN  STATUS   END REASON  STARTED              ELAPSED   SPEND
3    running  -           2026-11-05 12:04:02  00:41:12  $4.12
2    stopped  budget      2026-11-04 09:30:11  02:13:50  $20.38
1    done     done        2026-11-03 16:02:44  01:05:09  $11.77
```

## JSON

`--json` merges the two responses. It always includes `run`, `status`, `end_reason` (null while running), `started_at`, `ended_at`, `elapsed_seconds`, `spend_usd`, `max_cost_usd` (null when unset), and per agent `spend_usd`, `turns`, `status`, and `output` once the agent has finished.

```console
$ convoy status edge_chips --json | jq '{status, end_reason, spend_usd, max_cost_usd}'
{
  "status": "running",
  "end_reason": null,
  "spend_usd": 4.12,
  "max_cost_usd": 20
}
```

This is the form for comparing runs, for example the team and solo arms of the [Commit0 example](/docs/examples/commit0/).

## Exit codes

| Code | Cause |
| --- | --- |
| `0` | Status printed, whatever the run's own status |
| `1` | Unknown swarm (404), unknown run, or server unreachable |
| `2` | Missing swarm argument |

## API endpoints

- `GET /v1/swarms/{name}?run=N`
- `GET /v1/swarms/{name}/agents?run=N`
- `GET /v1/swarms/{name}/runs` for `--runs`

## Related

- [convoy watch](/docs/cli/watch/) for a live view.
- [Budgets and limits](/docs/concepts/budgets/)
- [Swarms and runs](/docs/concepts/swarms/)
