Discover / LLM Ops & Observability
Opik
by comet-mlPython
Open-source LLM evaluation, tracing, and monitoring by Comet.
Maturity: stable because 3y old, 2.2.12 released 4d ago. Derived from release and commit history, not a rating.
- Stars
- 21k
- Forks
- 1.7k
- Downloads / mo
- 3.5M
- Last commit
- 2026-08-03
- License
- Apache-2.0
- Open issues
- 162
Market and trust evidence
Edition not yet matchedNo exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.
Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.
In practice
Written by AI from this repository’s README · high confidenceLLM app behaviour is invisible in development and production, so regressions are found by users rather than tests.
Use it when
Use it when you need traces, datasets and LLM as a judge metrics for an agent or RAG app you can self host.
Not the right pick when
It is a full platform with a server to run, which is more than you need for a single script you only want to trace once.
Capabilities
- deep tracing of LLM calls, conversations and agent activity
- datasets, experiments and LLM as a judge metrics
- Opik Agent Optimizer SDK to improve prompts and agents
- production dashboards and online evaluation rules
- Opik Guardrails for safer AI practices
- PyTest integration to evaluate LLM pipelines in CI/CD
Cost: Free and open source
Install
Derived from the published package name in the repository, not from a model.
Video walkthroughs
Getting Started With Opik LLM Observability: How To Log Your First Trace
Opik Tutorial | Best Practices for Evaluating AI Agent Conversations w/ Thread-Level Expert Feedback
Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-03. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.
What the repository ships
Detected from the actual files in the repository root.
Latest release 2.2.12
Published 2026-07-30
What's Changed
- [NA] [BE] Persist per-block subcategory on cipx_spend_blocks by @petrotiurin in https://github.com/comet-ml/opik/pull/7657
- [OPIK-7542] [QA] fix: retarget Optimization Studio POM at the new-run side panel by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/7669
- [OPIK-7532] [QA] chore: normalise the annotation-queues area tag to plural by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/7676
- [OPIK-7532] [QA] feat: capability coverage map — taxonomy, spec tags, and tag-lint PR gate by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/7678
- [OPIK-7512] [FE] fix: Optimization Studio display cleanups — dead Pass rate column, {{variable}} rendering, Rerun label by @awkoy in https://github.com/comet-ml/opik/pull/7655
Full Changelog: https://github.com/comet-ml/opik/compare/2.2.11...2.2.12
Tags
README
<div align="center"><b><a href="README.md">English</a> | <a href="readme_CN.md">简体中文</a> | <a href="readme_ES.md">Español</a> | <a href="readme_FR.md">Français</a> | <a href="readme_DE.md">Deutsch</a></b></div>
<h1 align="center" style="border-bottom: none">
<div>
<a href="https://www.comet.com/site/products/opik/?from=llm&utm_source=opik&utm_medium=github&utm_content=header_img&utm_campaign=opik"><picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/comet-ml/opik/refs/heads/main/apps/opik-documentation/documentation/static/img/logo-dark-mode.svg">
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/comet-ml/opik/refs/heads/main/apps/opik-documentation/documentation/static/img/opik-logo.svg">
<img alt="Comet Opik logo" src="https://raw.githubusercontent.com/comet-ml/opik/refs/heads/main/apps/opik-documentation/documentation/static/img/opik-logo.svg" width="200" />
</picture></a>
<br>
Opik: Open-Source LLM Observability, Evaluation & AI Agent Tracing
</div>
</h1>
<p align="center">
<b>Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring.</b> Built by <a href="https://www.comet.com?from=llm&utm_source=opik&utm_medium=github&utm_content=what_is_opik_link&utm_campaign=opik">Comet</a>. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.
</p>
<div align="center">
<!-- Quick Start -->
</div>
<p align="center">
<a href="https://www.comet.com/site/products/opik/?from=llm&utm_source=opik&utm_medium=github&utm_content=website_button&utm_campaign=opik"><b>Website</b></a> •
<a href="https://chat.comet.com"><b>Slack Community</b></a> •
<a href="https://x.com/Cometml"><b>Twitter</b></a> •
<a href="https://www.comet.com/docs/opik/changelog"><b>Changelog</b></a> •
<a href="https://www.comet.com/docs/opik/?from=llm&utm_source=opik&utm_medium=github&utm_content=docs_button&utm_campaign=opik"><b>Documentation</b></a>
</p>
<p align="center"><sub>Last updated: 2026-07-17</sub></p>
<div align="center" style="margin-top: 1em; margin-bottom: 1em;">
<a href="#-what-is-opik">🚀 What is Opik?</a> • <a href="#-quick-start">⚡ Quick Start</a> • <a href="#-how-opik-compares">📊 How Does Opik Compare?</a> • <a href="#-frequently-asked-questions">❓ FAQ</a> • <a href="#%EF%B8%8F-opik-server-installation">🛠️ Opik Server Installation</a> • <a href="#-opik-client-sdk">💻 Opik Client SDK</a> • <a href="#-logging-traces-with-integrations">📝 Logging Traces</a><br>
<a href="#-llm-as-a-judge-metrics">🧑⚖️ LLM as a Judge</a> • <a href="#-evaluating-your-llm-application">🔍 Evaluating your Application</a> • <a href="#-star-us-on-github">⭐ Star Us</a> • <a href="#-contributing">🤝 Contributing</a>
</div>
<br>
Opik platform screenshot (thumbnail)
<a id="-what-is-opik"></a>
🚀 What is Opik?
Opik covers the full LLM application lifecycle, from the first trace in development to production monitoring, for teams building LLM apps and AI agents. Key offerings include:
- AI Agent Tracing & Observability: Deep tracing of LLM calls, conversation logging, and agent activity, with full trace trees for multi-step agents and tool calls.
- LLM Evaluation: Datasets, experiments, and LLM-as-a-judge metrics for hallucination detection, moderation, and RAG assessment.
- Prompt & Agent Optimization: The Opik Agent Optimizer SDK to improve prompts and agents.
- Production-Ready Monitoring: Scalable dashboards and online evaluation rules.
- Opik Guardrails: Features to help you implement safe and responsible AI practices.
- CI/CD Evaluation: A PyTest integration to test LLM pipelines on every commit.
<br>
Key capabilities include:
- Development & Tracing:
- Track all LLM calls and traces with detailed context during development and in production (Quickstart).
- Extensive 3rd-party integrations for easy observability: Seamlessly integrate with a growing list of frameworks, supporting many of the largest and most popular ones natively (including recent additions like Google ADK, Autogen, and Flowise AI). (Integrations)
- Annotate traces and spans with feedback scores via the Python SDK or the UI.
- Experiment with prompts and models in the Prompt Playground.
- Evaluation & Testing:
- Automate your LLM application evaluation with Datasets and Experiments.
- Leverage powerful LLM-as-a-judge metrics for complex tasks like hallucination detection, moderation, and RAG assessment (Answer Relevance, Context Precision).
- Integrate evaluations into your CI/CD pipeline with our PyTest integration.
- Production Monitoring & Optimization:
- Log high volumes of production traces: Opik is designed for scale (40M+ traces/day).
- Monitor feedback scores, trace counts, and token usage over time in the Opik Dashboard.
- Utilize Online Evaluation Rules with LLM-as-a-Judge metrics to identify production issues.
- Leverage Opik Agent Optimizer and Opik Guardrails to continuously improve and secure your LLM applications in production.
Who it's for: ML engineers building LLM-powered agents, AI teams moving from prototype to production, and engineering teams that need open-source, self-hostable observability they can run in their own environment.
Why open source matters here: Opik is Apache-2.0 licensed and free to self-host: the full platform, backend included, not just a client SDK. The repository includes the server backend, web application, tracing, datasets, experiments, evaluations, prompt management, online evaluation, and agent optimization components, all under Apache-2.0. You can run LLM observability inside your own infrastructure with no data leaving your environment and no Enterprise sales conversation required.
[!TIP]
If you are looking for features that Opik doesn't have today, please raise a new Feature request 🚀
<br>
<a id="-quick-start"></a>
⚡ Quick Start
Install the Python SDK and configure it:
pip install opik
opik configure
Wrap any function with the @track decorator to start logging traces:
from opik import track
@track
def my_function(input: str) -> str:
return input
Every call to my_function is now logged to Opik, including nested calls, so this works for full agent and pipeline traces, not just single LLM calls. See the Quickstart guide for the TypeScript SDK and other setup options.
<br>
<a id="-how-opik-compares"></a>
📊 How Does Opik Compare?
Opik competes in the LLM observability / AI agent evaluation category alongside LangSmith, Arize (Phoenix and Arize AX), Weights & Biases (Weave), Langfuse, and Braintrust.
| Capability | Opik | LangSmith | Phoenix | Arize AX | Weights & Biases (Weave) | Langfuse | Braintrust |
|---|---|---|---|---|---|---|---|
| Open source | Yes, Apache-2.0 (full platform) | No | Source-available (Elastic License 2.0, not OSI-approved) | No | Open-source SDK/toolkit; self-managed platform requires a commercial license | MIT-licensed core platform; commercial enterprise modules | No |
| Self-hosted deployment | Yes | Enterprise only | Yes | Enterprise only | Enterprise only for Weave itself | Yes, core | Enterprise only |
| Free tier available (cloud or self-hosted) | Yes, both | Yes, cloud | Yes, self-hosted | Yes, cloud | Yes, cloud | Yes, both | Yes, cloud |
| Agent / multi-step tracing | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| LLM-as-a-judge evaluation | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
| Prompt management | Yes | Yes | Partly | Partly | Partly | Yes | Yes |
| Framework-agnostic | Yes | Partly, built around LangChain | Yes | Yes | Yes | Yes | Yes |
When teams choose Opik: Opik's full observability, evaluation, and optimization platform is Apache-2.0 licensed and free to self-host. Unlike closed platforms whose self-hosted deployment requires an Enterprise plan, Opik can be deployed without a commercial license, and it's framework-agnostic so it won't lock you into a single agent ecosystem. See the table above for where self-hosting and licensing differ across alternatives.
<br>
<a id="-frequently-asked-questions"></a>
❓ Frequently Asked Questions
Is Opik open source?
Opik is licensed under Apache 2.0. Its server, web application, and core observability and evaluation capabilities can be self-hosted without a commercial license.
Can I self-host Opik?
Yes. Opik can be deployed locally or in your own infrastructure using the documented self-hosting options.
Does Opik support AI agent tracing?
Yes. Opik captures multi-step traces containing LLM calls, tool executions, retrieval steps, and other agent activity.
Does Opik support LLM evaluation?
Yes. Opik supports datasets, experiments, code-based metrics, LLM-as-a-judge evaluation, and online evaluation.
Is Opik tied to a specific agent framework?
No. Opik is framework-agnostic and supports its SDK, OpenTelemetry, and framework-specific integrations.
<br>
<a id="%EF%B8%8F-opik-server-installation"></a>
🛠️ Opik Server Installation
Get your Opik server running in minutes. Choose the option that best suits your needs:
Option 1: Comet.com Cloud (Easiest & Recommended)
Access Opik instantly without any setup. Ideal for quick starts and hassle-free maintenance.
👉 Create your free Comet account
Option 2: Self-Host Opik for Full Control
Deploy Opik in your own environment. Choose between Docker for local setups or Kubernetes for scalability.
Self-Hosting with Docker Compose (for Local Development & Testing)
This is the simplest way to get a local Opik instance running. Note the new ./opik.sh installation script:
On Linux or Mac Environment:
# Clone the Opik repository
git clone https://github.com/comet-ml/opik.git
# Navigate to the repository
cd opik
# Start the Opik platform
./opik.sh
On Windows Environment:
# Clone the Opik repository
git clone https://github.com/comet-ml/opik.git
# Navigate to the repository
cd opik
# Start the Opik platform
powershell -ExecutionPolicy ByPass -c ".\\opik.ps1"
Service Profiles for Development
The Opik installation scripts now support service profiles for different development scenarios:
# Start full Opik suite (default behavior)
./opik.sh
# Start only infrastructure services (databases, caches etc.)
./opik.sh --infra
# Start infrastructure + backend services
./opik.sh --backend
# Enable guardrails with any profile
./opik.sh --guardrails # Guardrails with full Opik suite
./opik.sh --backend --guardrails # Guardrails with infrastructure + backend
Use the --help or --info options to troubleshoot issues. Dockerfil
Truncated. Read the full README on GitHub ↗