Skip to main content
Automatically capture agent roles, tasks, crew executions, and tool invocations within the CrewAI framework.

Install

Set up

Usage

Once initialized, crew and agent executions are captured automatically:

Verify

Run your code and confirm the trace arrives:
  1. In the TraceRoot UI: Navigate to Tracing > Traces in TraceRoot Cloud. You should see a trace with root span Crew_<id>.kickoff; naming the crew with Crew(name=...) uses that name instead.
  2. Via the CLI: Run traceroot traces list to inspect your recent traces from the terminal.

What gets captured

Limitations

  • CrewAI delegates LLM generation to underlying providers (e.g., OpenAI, Anthropic). Initializing your provider integration (such as Integration.OPENAI) alongside CrewAI is recommended for accurate token usage and cost calculation.

Run the example

Clone the repo and run a complete agent end-to-end.

Python

Run the Python example

Next steps

Python SDK Reference

Explore the full Python SDK reference and instrumentation options.

Cost Tracking

Learn how TraceRoot calculates token costs and tracks model spend.