bt view is an interactive terminal UI for browsing logs, traces, and spans. Use it to inspect individual requests, drill into LLM conversation threads, and navigate span hierarchies. The thread and waterfall subcommands render a single trace non-interactively, which is useful for scripting and coding agents.
Keyboard shortcuts
| Key | Action |
|---|---|
↑ / ↓ | Navigate rows |
Enter | Open trace |
/ | Edit search |
r | Refresh |
t | Toggle span / thread view |
← / → | Switch detail panes |
Ctrl+k, Enter | Open current item in browser |
Backspace / Esc | Go back |
q | Quit |
Flags
| Flag | Description |
|---|---|
--window <DURATION> | Relative time window (e.g. 30m, 3d; default: 1h) |
--since <TIMESTAMP> | Absolute lower bound (overrides --window) |
--search <TEXT> | Free-text search |
--filter <EXPR> | SQL filter expression |
--list-mode <MODE> | summary (default) or spans — one row per span |
--limit <N> | Rows to fetch (default: 50) |
--url <URL> | Open a specific Braintrust URL directly |
--non-interactive | Print results without the interactive interface |
--json | Output as JSON (available on bt view logs, bt view trace, and bt view span) |
--object-ref <REF> | Target a specific object (project_logs:<id>, experiment:<id>, dataset:<id>) |
bt view thread
Print a trace’s LLM conversation as a single ordered transcript. Braintrust’s trace preprocessor collapses repeated messages across LLM spans into one thread, so you can inspect a conversation without opening each span individually.bt view trace: --trace-id <ID> (alias --root-span-id), --url <URL> (or a positional URL), or --object-ref <REF> with --project-id.
bt view waterfall
Render a trace waterfall showing each span’s offset and duration within the trace, along with model, token, cost, and cache details such as prompt cache hit percentage when available. Use thetimeline alias for parity with the Braintrust app’s Timeline tab.
bt view trace.