What do you want to do?
3 use cases
-
Trace every LLM and tool call in your app
Wrap functions with @track so each call, including nested ones, shows up as a trace you can inspect.
View prompt
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.
-
Score answers for hallucination with an LLM judge
Use the built-in Hallucination metric to check whether an output is supported by its context.
View prompt
Using comet-ml/opik, score 20 question, answer and context triples from <my RAG logs> with the Hallucination metric and list the five lowest scoring answers.
-
Self-host Opik on your own machine
Clone the repo and start the full platform with the Opik.sh script, then point the SDK at it.
View prompt
Self-host comet-ml/opik with `./opik.sh`, verify it with `./opik.sh --verify`, send one test trace from <my script>, and confirm it appears at localhost:5173.
Quick start with Opik
- Check you have what it needs: 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`.
- Open comet-ml/opik on GitHub and read the README and license.
- 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
These steps come from our top use case, Trace every LLM and tool call in your app, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for comet-ml/opik
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 freeAbout this repo
- Who it is forDevelopers and teams shipping LLM features who need to see what their agents did and measure quality before and after changes.
- Why it is hot23k stars, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/comet-ml/opik ยท Back to Hot repos
Requirements
- 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`
Add this badge to your README
Maintain Opik? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/comet-ml-opik/?utm_source=github&utm_medium=badge&utm_campaign=comet-ml-opik)
HTML
<a href="https://dedupedai.com/use-cases/comet-ml-opik/?utm_source=github&utm_medium=badge&utm_campaign=comet-ml-opik"><img src="https://dedupedai.com/badge/comet-ml/opik.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Opik
What is Opik?
Opik is an open-source platform to trace, evaluate and monitor LLM applications and agents. A @track decorator logs nested calls as traces, LLM-as-a-judge metrics such as Hallucination score outputs, datasets and experiments compare versions, and the whole platform can be self-hosted with Docker Compose or used on Comet.com, with an MCP setup so coding agents can read traces. It is an open-source project on GitHub: https://github.com/comet-ml/opik.
How do I use Opik?
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. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Opik for?
Developers and teams shipping LLM features who need to see what their agents did and measure quality before and after changes.
What can I do with Opik?
3 use cases so far, for example: Trace every LLM and tool call in your app; Score answers for hallucination with an LLM judge; Self-host Opik on your own machine. Each has steps and a copy-paste agent prompt.
What do I need to run Opik?
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`.
What are alternatives to Opik?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is Opik safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.