---
title: rpk ai trace list
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: rpk/rpk-ai/rpk-ai-trace-list
page-component-name: agentic-data-plane
page-version: master
page-component-version: master
page-component-title: Agentic Data Plane
page-relative-src-path: rpk/rpk-ai/rpk-ai-trace-list.adoc
page-edit-url: https://github.com/redpanda-data/adp-docs/edit/main/modules/reference/pages/rpk/rpk-ai/rpk-ai-trace-list.adoc
description: "List traces of agent runs and AI gateway calls, newest first unless <code>--order-by</code> says otherwise. The filter flags build ListTraces' AIP-160 filter: values within one flag are ORed, different flags are ANDed, and <code>--filter</code> is ANDed with all of them."
page-git-created-date: "2026-10-26"
page-git-modified-date: "2026-10-26"
page-generated-sources:
  - include: streaming:reference:partial$rpk-ai/rpk-ai-trace-list.adoc
    generator: rpk-docs
    version: null
    source: the rpk command help in redpanda-data/streaming-enterprise
page-generated-content: partial
---

# rpk ai trace list

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [agentic-data-plane-full.txt](https://docs.redpanda.com/agentic-data-plane-full.txt)

<!-- Source: https://docs.redpanda.com/agentic-data-plane/reference/rpk/rpk-ai/rpk-ai-trace-list.md -->

List traces of agent runs and AI gateway calls, newest first unless `--order-by` says otherwise.

The filter flags build ListTraces' AIP-160 filter: values within one flag are ORed, different flags are ANDed, and `--filter` is ANDed with all of them. The server allows one constraint per field, so `--filter` must not repeat a field a flag already sets. `--since` is required and the window is at most 30 days, so no listing reads all of history.

`--limit` caps the traces printed (default 50, at most 1000), read in pages of up to 100. `-o json` and `-o yaml` print the ListTracesResponse.

> 📝 **NOTE**
>
> This command was introduced in ai version 0.2.94.

## Usage

```bash
rpk ai trace list [flags]
```

## Examples

This section provides examples of how to use `rpk ai trace list`.

Failed runs and runs with a failed tool call in the last day

```bash
rpk ai trace list --since 24h --errors
```

One agent’s running traces

```bash
rpk ai trace list --since 24h --agent support --status running
```

Most expensive traces this week

```bash
rpk ai trace list --since 7d --order-by "usage.cost.total_microcents desc" --limit 10
```

## Flags

| Value | Type | Description |
| --- | --- | --- |
| `--agent` | string | agent name or uid. _(New in 0.2.100)_ |
| `--conversation` | string | conversation id. _(New in 0.2.100)_ |
| `--errors` | bool | failed runs and runs with a failed tool call. _(New in 0.2.100)_ |
| `--filter` | string | raw AIP-160 filter, ANDed with the flags above. |
| `--limit` | int | maximum traces to print, 1 to 1000. _(New in 0.2.100)_ |
| `--order-by` | string | AIP-132 order_by, for example, `duration desc`. |
| `--since` | string | traces started at or after, as RFC 3339 or a duration ago (15m, 24h, 7d); required and at most 30d before `--until`. _(New in 0.2.100)_ |
| `--status` | strings | running, completed, error or incomplete (`repeatable`). _(New in 0.2.100)_ |
| `--until` | string | traces started before: RFC 3339 or a duration ago. _(New in 0.2.100)_ |
| `--user` | strings | caller email or end-user id (`repeatable`). _(New in 0.2.100)_ |

## Global flags

| Value | Type | Description |
| --- | --- | --- |
| `--config` | string | Redpanda or `rpk` config file; default search paths are `~/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`. |
| `-X, --config-opt` | stringArray | Override `rpk` configuration settings; `-X help` for detail or `-X list` for terser detail. |
| `--ignore-profile` | bool | Ignore `rpk.yaml` and `redpanda.yaml`; use default settings. |
| `--profile` | string | `rpk` profile to use. |
| `-v, --verbose` | bool | Enable verbose logging. |