skillfed

opik

Comet tool for logging and evaluating LLM traces

opik v2.2.29 3.7M downloads/30d#2,523 on PyPI21,388
Permissive license Apache 2.0 License Active released

What it is and what it does

Opik is a Python SDK and full-stack platform for observing, evaluating, and optimizing LLM applications and AI agents. It wraps functions with a `@track` decorator to automatically log traces of LLM calls, nested function calls, and agent activity, capturing full execution trees for multi-step workflows. The platform includes evaluation tools—datasets, experiments, and LLM-as-a-judge metrics—for testing hallucinations, moderation, and RAG quality. It also provides prompt management, a playground for experimentation, CI/CD integration via pytest, and production dashboards for monitoring feedback scores and token usage.

The package is built by Comet and released under Apache 2.0, meaning you can self-host the entire backend in your own infrastructure. It supports modern Python versions (3.10–3.14) and integrates with popular LLM frameworks. The SDK depends on litellm, openai, pydantic, httpx, and other standard libraries for tracing, configuration, and API communication.

Use it for:

  • Log and inspect full execution traces of multi-step agents and LLM pipelines during development and in production.
  • Evaluate LLM outputs for hallucinations, factual accuracy, and moderation using LLM-as-a-judge metrics.
  • Test RAG systems by measuring answer relevance and context precision across datasets and experiments.
  • Integrate LLM evaluation into CI/CD pipelines using pytest to validate prompts and models on every commit.
  • Monitor production LLM applications by tracking trace counts, token usage, and feedback scores over time.
  • Manage and version prompts, then experiment with different models and parameters in a shared playground.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Opik is an open-source LLM observability and evaluation platform that logs traces of LLM calls, agents, and pipelines, then evaluates them with datasets, experiments, and LLM-as-a-judge metrics.

Yes. Opik is actively maintained with no known vulnerabilities and offers low install friction. It is genuinely open-source (Apache 2.0) with a self-hostable full platform, not just a client SDK. If you are building LLM agents or need observability and evaluation for LLM applications, this is a solid choice—especially if you want to avoid vendor lock-in or need to keep traces within your own infrastructure.

Install

opik on PyPI

pip

pip install opik

uv

uv add opik

poetry

poetry add opik

Installing opik

Before you install

Low install friction with a pure-Python wheel. Active maintenance with a recent release. Requires Python 3.10+. Depends on 19 runtime packages including litellm, openai, and pydantic, which are widely used and stable.

License in practice

Apache 2.0 licensed and permissive. The full platform—server backend, web application, tracing, evaluation, and prompt management—is free to self-host with no data leaving your environment, not just the client SDK.

Quickstart

pip install opik
opik configure

from opik import track

@track
def my_function(input: str) -> str:
    return input

my_function("test")

Requires Python 3.10 or later. The `opik configure` step sets up connection to a backend (cloud or self-hosted); without it, tracing may not persist.

Verify before relying

  • Whether the self-hosted platform deployment requires additional system dependencies or infrastructure beyond the Python package.
  • Performance characteristics and scalability limits when self-hosting at scale (the description mentions 40M+ traces/day capability).
  • Whether all integrations mentioned (Google ADK, Autogen, Flowise AI) are included in this package version or require separate setup.

Package facts

License Apache 2.0 License (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 19 — boto3-stubs, click, httpx, rapidfuzz, litellm, openai, pydantic-settings, pydantic, pytest, rich, sentry_sdk, tenacity, tqdm, uuid6, jinja2, watchfiles, tree-sitter, tree-sitter-javascript, tree-sitter-typescript
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Downloads 3,695,539/month — #2,523 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opik-2.2.29-py3-none-any.whl

Keywords: opik

Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

llm observability tracingai agent evaluation platformprompt management and testingllm-as-a-judge evaluationproduction llm monitoringtrace logging for agentsrag evaluation metrics
llm-observabilityagent-tracingevaluation-framework

More Artificial Intelligence packages

Further reading