# Web UI

> convoyd serves a browser UI on its own port. It shows every swarm and run as a live graph of agents and topics, each agent's reasoning and tool calls, and the message board, with the same controls as the CLI.

convoyd serves a web UI at `/` on the same port as its API. It is built into the `convoyd` binary, so there is nothing else to install or run. It covers every swarm on the server and every past run, not only live ones. A finished run opens in the same views, showing its final state.

## Open it

Start convoyd, then open `http://127.0.0.1:7070/`, or run:

```console
$ convoy ui                 # the list of swarms
$ convoy ui edge_chips      # the latest run of edge_chips
```

convoyd logs the address at start: `{"msg":"web ui","ui":"http://127.0.0.1:7070/"}`. See [convoy ui](/docs/cli/ui/).

| Page | Path |
| --- | --- |
| Swarms | `/` |
| Runs of a swarm | `/s/{swarm}` |
| A run's graph | `/s/{swarm}/r/{run}` |
| A run's board | `/s/{swarm}/r/{run}/board` |
| One agent | `/s/{swarm}/r/{run}/a/{agent}` |

`{run}` is a run number or `latest`. Agent names with brackets, such as `researcher[nvidia]`, are URL-encoded.

## Views

### Swarms

One row per swarm: its latest run's number and status, start time and duration, spend against the budget, and agent counts by status. Rows refresh every 5 seconds while a run is going. A row opens the latest run's graph, and the swarm's page lists every run.

### Graph

A run's agents and topics as a live graph. The header shows the goal, the status, elapsed time against `max_runtime`, spend against `max_cost_usd`, the `done_when` text, and a **Stop swarm** button.

Agents are cards colored by status, with their model, turns, spend, and the tool they are calling while they run. The overseer has its own border. Topics are a different shape, with their message counts. `for_each` instances of one agent are grouped in a frame named after the block.

| Edge | Between | Style | Meaning |
| --- | --- | --- | --- |
| Dependency | agent to agent | solid grey | The agent waits for the other's output, through `inputs` or `depends_on` |
| Spawn | parent to child | dashed purple | The parent created the child with `create_agent` |
| Publish | agent to topic | blue, wider with more messages | The agent published to the topic |
| Read | topic to agent | teal, wider with more messages read | The agent read the topic with `read_topic` |
| Watch | topic to agent | dotted, faint teal | The agent watches the topic but has read nothing from it yet |

A pending run shows the declared graph with every agent grey. As the run goes, spawned agents appear next to their parents and runtime topics join the topic lane, and existing nodes keep their places. A dot travels from sender to topic for each message, and on to the recipient when it is addressed. The legend toggles each edge type.

Clicking an agent opens it in a side panel. Clicking a topic opens the board filtered to it.

### Agent

The header shows the agent's status, model, parent and children, dependencies, turns of `max_turns`, tokens and spend, timing, and end reason. **Stop agent** stops it and its children; **Message** opens the composer addressed to it.

| Tab | Shows |
| --- | --- |
| Transcript | The agent's turns: what woke each one, its assistant text, reasoning, tool calls with their results, and errors. Follows the live tail |
| Messages | Everything the agent sent and everything addressed to it |
| Spec | Prompt, tools, writes, watches, output type, inputs, `can_spawn`, and the system prompt |
| Output | The `finish` payload |
| Progress | Its `report_progress` summaries |
| Logs | The runner's log lines |

Swarm tools link out from the transcript: a `publish` call to its message on the board, a `create_agent` call to the child, a `finish` call to the Output tab.

### Board

Topics on the left, with their writers and watchers. Messages in the middle in sequence order, with sender, recipient, replies, and filters. On the right, a matrix of who talks to whom: one row per sender, one column per topic or addressed agent, each cell a message count. A second mode shows each agent's read position on each topic.

The composer posts as `human` to any topic, optionally addressed to one agent, like [`convoy say`](/docs/cli/say/).

## Transcripts

Each runner streams its agent's transcript to convoyd while the agent works, and convoyd stores it with the run.

| Item | What it is |
| --- | --- |
| `system` | The system prompt, once |
| `input` | What started each turn: the task, a continue nudge, or the unread summary |
| `text` | Assistant text |
| `reasoning` | Thinking or reasoning summaries, when the model produces them |
| `tool_call` | A tool the model called, with its arguments |
| `tool_result` | What the tool returned |
| `error` | An error that ended a turn |

Items appear when the SDK finishes each block; text is not streamed token by token. A field over 64 KB (256 KB for the system prompt) is cut and marked with its original size. Tool names are Convoy's names on every SDK, such as `web_search` and `publish`.

Reasoning appears only when the model returns it. Without it, the text between tool calls is usually a good account of the agent's thinking.

A transcript holds everything the agent's tools returned. If an agent's `bash` prints an environment variable or a file with a secret, the transcript has it. Only people can read transcripts: runner tokens get 403 `people_only`, so one agent cannot read another's.

A transcript failure never affects the agent: the runner retries, then drops the batch and logs it. The run's board and events stay the record of what happened.

## Access

The UI calls the same [HTTP API](/docs/architecture/api/) as the CLI, as `human`.

- **Local, no token.** With `--token` unset, a browser on the same machine needs no login. convoyd refuses tokenless requests whose `Host` is not `localhost` or a loopback address, and requests another site's page sends, so a web page you visit cannot stop your swarms or message your agents.
- **With `--token`.** The UI asks for the token once and keeps it in the browser. It is sent as `Authorization: Bearer`, never in a URL. Sign out clears it. The UI refuses an agent's runner token.

Every UI page is served with a content security policy that allows only convoyd's own scripts and forbids framing.

The controls are the CLI's: stop the swarm, stop an agent, post a message. They act on the latest run while it is active.

## Headless servers

`--no-ui` (or `CONVOYD_NO_UI=1`) leaves the UI off. The API is unchanged, and `convoy ui` reports that the server does not serve it.

## Try it without a model

A checkout of the repository has a demo swarm that runs on the runner's scripted fake driver, with no model and no API key. It needs Go and the runner's environment (`cd runner && uv sync`).

```sh
webui/e2e/demo/serve.sh        # convoyd on port 7071, then the demo swarm
```

Open `http://127.0.0.1:7071/s/edge_chips/r/latest`. The run takes about 45 seconds: three researchers publish findings, a writer waits for them, spawns a fact checker and sends drafts to a critic, and the critic approves the second draft. Run the script again for a fresh run.

## Related

- [convoyd](/docs/runtime/)
- [HTTP API](/docs/architecture/api/)
- [convoy watch](/docs/cli/watch/)
