> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getunbound.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delivery

> See the branches and pull requests your AI tools produced, and what they cost

`unbound delivery` reads **Analytics → Delivery** from the terminal. It shows the branches AI coding tools worked on, the pull requests they opened, how those pull requests ended, and the AI spend behind each one.

Delivery is in **Beta** and may not be enabled for your organization. It needs **Analytics · View** over the whole organization, as the built-in **Admin** and **Analytics Viewer** roles have. A role scoped to its reportees, such as **Manager**, can't use it. See [Role access](https://docs.getunbound.ai/cli/authentication.md#role-access).

## Commands

| Command | What it shows |
| - | - |
| `summary` | The headline numbers for the period |
| `branches` | Every AI branch, with its pull request, ticket, PR category, cost and sessions |
| `branch <id>` | One branch in full: its pull request, ticket, cost, timeline and sessions. Take the ID from `branches` |
| `users` | The people with AI branches or pull requests, with what they raised, merged and spent |
| `teams` | The same, one row per department |
| `spend` | AI spend split by pull request outcome, or by PR category |
| `repos` | The repositories with AI branches or pull requests. Use these names for `--repo` |

```bash theme={null}
unbound delivery summary --time-window SEVEN_DAYS
unbound delivery branches --outcome merged --sort cost
unbound delivery branch 4821
unbound delivery users --sort merge_rate_pct --team Platform
unbound delivery teams --sort with_ticket_pct
unbound delivery spend --by work-group --pr-state merged
```

A pull request is counted when an AI tool opened it itself. Pull requests a developer opens by hand don't appear here.

Merge counts and cost per merged pull request need GitHub connected under **Settings → Integrations** (see [Integrations](https://docs.getunbound.ai/dashboard/settings#integrations)). Without it, `users` and `teams` show the columns they can fill.

## Time range

Every command except `branch` takes a time range.

| Flag | Value |
| - | - |
| `--time-window <w>` | `ONE_DAY`, `THREE_DAYS`, `SEVEN_DAYS`, `FOURTEEN_DAYS` or `THIRTY_DAYS`. Default `THIRTY_DAYS` |
| `--start`, `--end` | A custom range as `YYYY-MM-DD`, at most 31 days long and within the last 31 days. Use both or neither, and not with `--time-window` |

## Filters

`summary`, `branches`, `users`, `teams` and `spend` take these filters. Each takes a comma-separated list.

| Flag | Filters by |
| - | - |
| `--user <ids>` | User IDs (see `unbound users list`) |
| `--team <names>` | Department names |
| `--manager <names>` | Manager names |
| `--tool <types>` | AI tool, using the exact type names, e.g. `CLAUDE_CODE,CURSOR` |
| `--repo <repos>` | Repositories as `owner/repo` |

`branches`, `users` and `teams` also take:

| Flag | Filters by |
| - | - |
| `--ticket-status <statuses>` | `done`, `in_progress`, `todo`, `canceled`, `unsynced`, `untracked` |
| `--work-group <groups>` | PR category: `build`, `fix`, `improve`, `infra_ops`, `unknown` |
| `--search <text>` | Free text |

`branches` alone takes `--outcome <outcome>`: `merged`, `in_review`, `closed`, `no_pr` or `pr_raised`.

Branches are placed in the time range by when they were first seen. With `--work-group`, they are placed by when their pull request merged, or opened if it hasn't merged.

## Sorting and paging

| Command | `--sort` columns | Default |
| - | - | - |
| `branches` | `first_seen`, `cost` | `first_seen` |
| `users` | `prs_raised`, `prs_merged`, `merge_rate_pct`, `ai_spend`, `cost_per_merged_pr`, `cost_per_pr`, `last_active` | `ai_spend` |
| `teams` | `active_ai_users`, `ai_branches`, `prs_raised`, `prs_merged`, `merge_rate_pct`, `ai_spend`, `cost_per_merged_pr`, `cost_per_pr`, `with_ticket_pct` | `ai_spend` |

`--order` is `desc` (default) or `asc`. Page through results with `--page <n>` and set the page size with `--page-size <n>`: 10 rows by default, up to 100.

## Spend

`spend` splits AI spend by pull request outcome by default. Pass `--by work-group` to split it by PR category instead, and narrow that view with `--pr-state`: `all` (default), `merged`, `open` or `no_pr`.

## Output

The default is a table sized to your terminal; `--wide` prints full values instead of clipping them. Every command takes `--json` and prints the full response, which is the better choice for scripts:

```bash theme={null}
unbound delivery branches --outcome merged --json | jq '.results[] | {name, pr: .pr.number, cost}'
```

> [!NOTE]
>
> Requires CLI 1.24.0 or later.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.