CLI
The Respan CLI lets you authenticate, integrate coding agents, query traces and logs, manage prompts and datasets, run evaluators, and more.
Setup
Install
Authenticate
Or interactively (opens a prompt to choose API key or browser login):
Check your auth status:
Profiles
Use named profiles to manage multiple environments:
Configuration
Integrate
Set up tracing for CLI coding agents with a single command. This installs hooks that capture every agent turn and send it to Respan.
Each command writes a hook script to ~/.respan/hooks/ and registers it with the agent’s config. See the CLI agents cookbook for details.
Flags
Features
Logs
Query and inspect LLM request logs (spans).
Traces
Query and inspect traces (groups of related spans).
Users
Manage customer/user records.
Prompts
Manage prompt templates and versions.
Datasets
Manage evaluation datasets and their spans.
Evaluators
Manage and run evaluators on datasets.
Experiments
Manage experiments for comparing prompt/model configurations.
Query options
These options work across all list commands.
Output formats
Pagination
Filtering
All list commands support --filter with the format field:operator:value: