📦comet-ml / opik
← 返回首页
Debug, evaluate, and monitor your LLM applications, RAG systems, and agentic workflows with comprehensive tracing, automated evaluations, and production-ready dashboards.
⚖️ Apache-2.0#open-source#langchain#openai#playground#prompt-engineering🌐 www.comet.com📅 创建于 2023-05-10🔄 更新于 2026-10-29
🔗 GitHub Python

📄 仓库 README

在 GitHub 查看 ↗
来自 GitHub 仓库自述文件 · 版权归原作者所有

Comet Opik logo
Opik: Open-Source LLM Observability, Evaluation & AI Agent Tracing

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

[![Python SDK](https://img.shields.io/pypi/v/opik)](https://pypi.org/project/opik/) [![License](https://img.shields.io/github/license/comet-ml/opik)](https://github.com/comet-ml/opik/blob/main/LICENSE) [![Build](https://github.com/comet-ml/opik/actions/workflows/build_apps.yml/badge.svg)](https://github.com/comet-ml/opik/actions/workflows/build_apps.yml)

Website • Slack Community • Twitter • Changelog • Documentation

Last updated: 2026-07-17


Opik platform screenshot (thumbnail)

🚀 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.


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 🚀


⚡ 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.

Connect your coding agent

Let Claude Code, Cursor, VS Code Copilot, Codex or opencode read your traces, score outputs and run evaluations from chat. One command sets it up. It needs uv and no SDK:

uvx opik mcp configure

Add to Cursor Install in VS Code

The badges and the add-mcp fallback below target Opik Cloud; the command above also handles self-hosted deployments. Other MCP clients on Opik Cloud: `npx add-mcp http

📈 近 7 天 Star 趋势

每日新增 Star(柱)与累计 Star(线)· 数据来自 GitHub

🏆 排名变化趋势

在各榜单中的排名历史(数字越小越靠前)

📋 历史上榜记录

每次快照的详细数据
日期 榜单 排名 周期新增 总 STAR