DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to trace every LLM and tool call in your app with Opik

Wrap functions with @track so each call, including nested ones, shows up as a trace you can inspect.

Short answer: Install the SDK with pip install opik; then run opik configure and enter your server address or Comet API key and workspace; Decorate your functions with @track from Opik. All steps.

  • Top pick
  • Software and DevOps
  • Beginner
  • 30 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

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

  1. Install the SDK with pip install opik
  2. Run opik configure and enter your server address or Comet API key and workspace
  3. Decorate your functions with @track from Opik
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer