privacy. Prompts and outputs are logged to the Opik server; self-host it if they contain sensitive data.
Who it is forA developer debugging an agent that sometimes gives wrong answers.
The problemWithout traces you cannot see which step of a multi-step agent went wrong.
The outcomeFull agent and pipeline traces logged to Opik for every call.
What you need first
- Python with pip; install with `pip install opik`
- An Opik server: Comet.com cloud, or self-hosted with Docker (Kubernetes and Helm for larger setups)
- Optional: uv for `uvx opik mcp configure`
Steps
- Install the SDK with
pip install opik - Run
opik configureand enter your server address or Comet API key and workspace - Decorate your functions with @track from Opik
- Run the app and open the traces; use one of the integrations such as LangChain or LiteLLM if you already use them
Prompt for your agent
Using comet-ml/opik, install it with `pip install opik`, run `opik configure`, add @track to the main functions of <my LLM app>, run it once, and summarize the trace tree that was logged.
Caveat. This card is written from the comet-ml/opik README, not from a test run by Deduped. Before you start, make sure you have Python with pip. Check the repo for newer instructions before you rely on these steps.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for comet-ml/opik and "Trace every LLM and tool call in your app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer