Skip to main content
The TraceRoot CLI wraps the TraceRoot API so you can work with your project directly from the terminal — list, inspect, and export traces, then pipe the JSON into whatever comes next. It is built for AI coding agents and power users who prefer the command line. Full source and reference live in the traceroot-cli repo.

Install

Authenticate

This validates your project API key and saves it locally, so later commands need no flags. Create API keys in TraceRoot Cloud or your self-hosted dashboard. For CI or scripts, set environment variables instead — the same ones the SDKs use:
.env
Confirm the credentials resolve to the right place:

Inspect and export traces

Read evaluations

The CLI also reads your offline evaluations — the datasets you run against and the runs that scored them, so a run id no longer has to come from the web app.
See From the terminal for what each read shows, and for the dataset commands.

Command reference

Add --json to any command for machine-readable output, or run traceroot <command> --help for the full flag list.

What’s next

Tracing

Instrument your app so traces show up for the CLI to read.

Evaluations from the Terminal

Read datasets, evaluations, and past runs.

TraceRoot Cloud

Create API keys and open traces in the web app.