Skip to main content

1. Get API Keys

Create API Keys either with TraceRoot Cloud or Self-Hosting.

2. Install the SDK

3. Set Environment Variables

.env

4. Instrument Your Code

Add a single line at the start of your application to instrument all OpenAI API calls.
For full SDK details, see the Python SDK or TypeScript SDK.

5. View Your Traces

Open TraceRoot Cloud (or your self-hosted dashboard), navigate to your project, and you’ll see the full span hierarchy, token usage, cost, and timing. Prefer the terminal? The TraceRoot CLI lists, inspects, and exports the same traces without leaving your shell.

What’s Next?

Python SDK

Full API reference for the Python SDK.

TypeScript SDK

Full API reference for the TypeScript SDK.

AI Agent

Auto-debug failing traces with the built-in AI agent.

CLI

Read and export your traces from the terminal.