Crewai
CrewAI is a cutting-edge framework for orchestrating autonomous AI agents.
Opik integrates with CrewAI to log traces for all CrewAI activity.
Getting started
First, ensure you have both opik
and crewai
installed:
In addition, you can configure Opik using the opik configure
command which will prompt you for the correct local server address or if you are using the Cloud platform your API key:
Logging CrewAI calls
To log a CrewAI pipeline run, you can use the track_crewai
. This callback will log each CrewAI call to Opik:
Each run will now be logged to the Opik platform:

Cost Tracking
The track_crewai
integration automatically tracks token usage and cost for all supported LLM models used during CrewAI agent execution.
Cost information is automatically captured and displayed in the Opik UI, including:
- Token usage details
- Cost per request based on model pricing
- Total trace cost
View the complete list of supported models and providers on the Supported Models page.