自托管需先启动 Docker 容器(./opik.sh),默认访问 localhost:5173;SDK 需先运行 opik configure 配置服务地址或 API key;本地自托管可在代码中调用 opik.configure(use_local=True)
opik
comet-mlApache-2.0活跃维护面向 LLM 应用、RAG 和 Agent 工作流的可观测与评测平台,提供全链路追踪、自动评估和生产级监控看板,帮团队定位问题并持续优化效果。
Debug, evaluate, and monitor your LLM applications, RAG systems, and agentic workflows with comprehensive tracing, automated evaluations, and production-ready dashboards.
pip install opik
opik configureREADME 未说明具体硬件要求;自托管通过 Docker 容器运行,另有 Kubernetes/Helm 部署方式
开源 LLM 可观测与评测平台,追踪 Agent 调用、跑自动化评估并做生产监控
面向 LLM 应用、RAG 和 Agent 工作流的可观测与评测平台,提供全链路追踪、自动评估和生产级监控看板,帮团队定位问题并持续优化效果。
核心能力
- 用完整 trace 树追踪多步 Agent 与工具调用
- 支持 LLM-as-a-judge 指标检测幻觉、审核与 RAG 评估
- 用数据集与实验自动化评测 LLM 应用
- 提供 PyTest 集成把评测接入 CI/CD 流水线
- 内置 Prompt Playground 调试提示词与模型
容易踩的坑
- 2.2.143最新正式版2026-11-06 · 2026-11-06 08:48 UTC
What's Changed
- [OPIK-8934] [SDK] fix: Prompt() and ChatPrompt() use the default project by @thiagohora in https://github.com/comet-ml/opik/pull/9458
- [OPIK-9097] [BE] feat: map ClickHouse TOO_MANY_BYTES to a clean 400 and cap free-form SQL bytes read by @liyaka in https://github.com/comet-ml/opik/pull/9430
- chore(deps): Lock file maintenance by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9455
- [OPIK-8732] [BE] [FE] feat: service account token auth with plain-text token replies by @miguelgrc in https://github.com/comet-ml/opik/pull/9446
- [OPIK-9101] [BE] feat: add an organization context with a default organization by @aadereiko in https://github.com/comet-ml/opik/pull/9378
- [NA] [BE] feat: always persist online-evaluation monitoring traces by @alexkuzmik in https://github.com/comet-ml/opik/pull/7317
- [OPIK-9127] [BE] feat: filter experiments by evaluation method by @JetoPistola in https://github.com/comet-ml/opik/pull/9456
- [OPIK-8712] [BE] feat: score online-eval Decision rules with gpt-6-luna through OpenAI's Decisions API by @alexkuzmik in https://github.com/comet-ml/opik/pull/9357
- [OPIK-9153] [FE] refactor: remove "Set a guardrail" button from the Logs page by @jverre in https://github.com/comet-ml/opik/pull/9466
- [issue-9403] [SDK] fix: don't log a false error for threads with no feedback scores by @quetion667 in https://github.com/comet-ml/opik/pull/9404
- [OPIK-8274] [BE] perf: late-materialize default-sorted experiment item compare pages by @thiagohora in https://github.com/comet-ml/opik/pull/9402
- [OPIK-8801] [CI] fix: speed up e2e image cleanup and stop orphaning e2e manifests by @JetoPistola in https://github.com/comet-ml/opik/pull/8962
- [DND-2054] [HELM] fix: skip recursive fsGroup chown on ClickHouse volumes by @GuySaar8 in https://github.com/comet-ml/opik/pull/9450
- [DND-2055] [HELM] docs: set S3_OBJECT_DISK_PATH before enabling the cold tier by @GuySaar8 in https://github.com/comet-ml/opik/pull/9467
- chore(deps): Update python:3.12.16-slim Docker digest to 4840d51 by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9470
- [issue-9322] [SDK] fix: do not log skipped llm_unit tests as failed in the pytest plugin by @gjreddy in https://github.com/comet-ml/opik/pull/9323
- [NA] [CI] chore: move the remaining Node 22 jobs to Node 26 by @GuySaar8 in https://github.com/comet-ml/opik/pull/9438
- [OPIK-8546] [FE] fix: count annotators by person, not by score key by @jverre in https://github.com/comet-ml/opik/pull/9474
- chore(deps): Update nginx:1.30.6-alpine-slim Docker digest to e5249ed by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9475
- [OPIK-9040] [SDK] fix: report traces the SDK drops at shutdown, on 429 and on queue overflow by @miguelgrc in https://github.com/comet-ml/opik/pull/9298
- [DND-1973] [BE] fix: pin jetty/hc.client5 loggers to INFO (log-hygiene hardening) by @liyaka in https://github.com/comet-ml/opik/pull/9379
- [OPIK-8802] [CI] fix: skip E2E image cleanup on fork PR close by @JetoPistola in https://github.com/comet-ml/opik/pull/8960
Full Changelog: https://github.com/comet-ml/opik/compare/2.2.142...2.2.143
- 2.2.1422026-11-05 · 2026-11-05 14:10 UTC
查看更新说明
What's Changed
- [issue-3411] [FE] feat: open any LLM span in the playground by @anishmehta24 in https://github.com/comet-ml/opik/pull/8725
- chore(deps): Update python:3.12.16-slim Docker digest to e695ab1 by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9463
- [issue-9381] [SDK] fix: treat a non-object LLMJudge verdict as a parse failure by @unshDee in https://github.com/comet-ml/opik/pull/9400
- [OPIK-9055] [BE] fix: reject project names over 150 characters by @thiagohora in https://github.com/comet-ml/opik/pull/9308
- [OPIK-9058] [BE] fix: read a thread page's messages from its first and last traces only by @thiagohora in https://github.com/comet-ml/opik/pull/9314
New Contributors
- @unshDee made their first contribution in https://github.com/comet-ml/opik/pull/9400
Full Changelog: https://github.com/comet-ml/opik/compare/2.2.141...2.2.142
- 2.2.1412026-11-05 · 2026-11-05 11:09 UTC
查看更新说明
What's Changed
- [NA] [FE] fix: add the missing space in the 80% plan-limits banner by @JetoPistola in https://github.com/comet-ml/opik/pull/9433
- [OPIK-9067] [SDK] fix: agentic judge submits its verdict through a tool by @petrotiurin in https://github.com/comet-ml/opik/pull/9385
- [issue-9334] [SDK] fix: reuse tests-dataset items for llm_unit tests without expected_output or metadata by @gjreddy in https://github.com/comet-ml/opik/pull/9335
- [OPIK-9118] [FE] chore: migrate opik-frontend to zod 4 and @hookform/resolvers 5 by @ferc in https://github.com/comet-ml/opik/pull/9431
- [issue-9336] [SDK] fix: let evaluate_threads evaluate more than 1000 threads by @quetion667 in https://github.com/comet-ml/opik/pull/9337
- [OPIK-7079] [BE] feat: query experiment items across all dataset experiments by @JetoPistola in https://github.com/comet-ml/opik/pull/9263
- [OPIK-8706] [BE] refactor: drop the unused PartialSpanCreated event by @thiagohora in https://github.com/comet-ml/opik/pull/9437
- [OPIK-8995] [BE] fix: bound the user-facing log queue so it can't fill the heap by @GuySaar8 in https://github.com/comet-ml/opik/pull/9275
- chore(deps): Update dependency @hookform/resolvers to v6 by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9421
- chore(deps): Update dependency openai to <=3.42.1 by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9449
- [NA] [SDK] [DOCS] Update automatically OpenAPI spec and Fern code by @CometActions in https://github.com/comet-ml/opik/pull/9451
- [NA] [BE][FE] chore: sync provider model definitions by @CometActions in https://github.com/comet-ml/opik/pull/9453
- chore(deps): Update base images (non-major) by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9454
- [OPIK-8927] [BE] fix: cap Gemini 4 Argon's max output tokens at Google's 32,768 by @aadereiko in https://github.com/comet-ml/opik/pull/9432
- [issue-9376] [SDK] fix: re-sync the dedup cache after a failed dataset insert by @ericdelorefice in https://github.com/comet-ml/opik/pull/9393
- [DND-1779] [FE] chore: move the frontend toolchain to vite 8 and vitest 5 by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/9394
Full Changelog: https://github.com/comet-ml/opik/compare/2.2.140...2.2.141
- 2.2.1402026-11-04 · 2026-11-04 14:12 UTC
查看更新说明
What's Changed
- [NA] [BE] fix: keep ClickHouse query log comments to plain text by @miguelgrc in https://github.com/comet-ml/opik/pull/9375
- [OPIK-9052] [BE] fix: price upper-case model names like lower-case ones by @aadereiko in https://github.com/comet-ml/opik/pull/9309
- [NA] [SDK] [DOCS] Update automatically OpenAPI spec and Fern code by @CometActions in https://github.com/comet-ml/opik/pull/9338
- chore(deps): Update e2e npm by @comet-ci-bot[bot] in https://github.com/comet-ml/opik/pull/9343
- chore(deps): Update dependency litellm to v1.100.4 [SECURITY] by @comet-ci-bot[bot] in https://github.com/comet-ml/opik/pull/9279
- chore(deps): Update base images (non-major) by @comet-ci-bot[bot] in https://github.com/comet-ml/opik/pull/9383
- chore(deps): Update Python SDK cooldown caps by @comet-ci-bot[bot] in https://github.com/comet-ml/opik/pull/9380
- [NA] [GHA] PR linter: skip the two new Renovate bots by @GuySaar8 in https://github.com/comet-ml/opik/pull/9401
- chore(deps): Update dependency uuid to v13 [SECURITY] by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9415
- chore(deps): Update dependency @sentry/react to v11 by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9422
- chore(deps): Update dependency @types/diff to v8 by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9424
- chore(deps): Update dependency @types/uuid to v11 by @comet-renovate-security[bot] in https://github.com/comet-ml/opik/pull/9425
- [OPIK-9029] [BE] fix: tolerate a span id in more than one project in SpanDAO.getById by @thiagohora in https://github.com/comet-ml/opik/pull/9311
- [OPIK-9053] [BE] fix: keep an OTel batch whose top-level spans belong to an existing trace by @thiagohora in https://github.com/comet-ml/opik/pull/9312
- [OPIK-8706] [BE] refactor: drop the span weeks listener and spanWeeksWriteEnabled by @thiagohora in https://github.com/comet-ml/opik/pull/9025
- [issue-9326] [SDK] fix: report failed trace exports in the export CLI by @feiiiiii5 in https://github.com/comet-ml/opik/pull/9327
- chore(deps): Update github actions (major) (major) by @comet-ci-bot[bot] in https://github.com/comet-ml/opik/pull/9389
- chore(deps): Update github actions (non-major) by @comet-renovate[bot] in https://github.com/comet-ml/opik/pull/9410
- [NA] [SDK] fix: normalize drifted judge verdicts and escape quotes in the evaluate_threads filter by @uttamdeb in https://github.com/comet-ml/opik/pull/9107
- [NA] [INFRA] chore: cap litellm below breaking releases and keep ClickHouse on LTS by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/9429
- [NA] [HELM] fix: update chart image tags and regenerate the chart README by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/9397
- [NA] [BE][FE] chore: sync provider model definitions by @CometActions in https://github.com/comet-ml/opik/pull/9417
- [NA] [FE] fix: update yaml to 2.8.3 and keep "<<" quoted in YAML output by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/9382
- [OPIK-8927] [FE] feat: Gemini and Vertex AI on the catalog settings panel by @aadereiko in https://github.com/comet-ml/opik/pull/9198
New Contributors
- @comet-renovate-security[bot] made their first contribution in https://github.com/comet-ml/opik/pull/9415
- @comet-renovate[bot] made their first contribution in https://github.com/comet-ml/opik/pull/9410
Full Changelog: https://github.com/comet-ml/opik/compare/2.2.139...2.2.140
- 2.2.1392026-11-03 · 2026-11-03 16:40 UTC
查看更新说明
What's Changed
- [OPIK-7791] [QA] e2e specs for release 2.2.118, 2.2.119, 2.2.120, 2.2.121, 2.2.122, 2.2.125, 2.2.128, 2.2.130, 2.2.131, 2.2.132, 2.2.133, 2.2.134, 2.2.136, 2.2.137 by @comet-ci-bot[bot] in https://github.com/comet-ml/opik/pull/9181
- [OPIK-8651] [FE] feat: search within a thread in the thread side panel by @JetoPistola in https://github.com/comet-ml/opik/pull/9329
- [OPIK-8748] [SDK] fix: LLM judges on gpt-6 and Claude 4.7+/5.x stop sending refused sampling params by @aadereiko in https://github.com/comet-ml/opik/pull/9154
- [DND-2005] [INFRA] fix: cap ClickHouse file log size by @GuySaar8 in https://github.com/comet-ml/opik/pull/9315
- [DND-2027] [INFRA] fix: bump ClickHouse to 26.3.62.3 (CVE-2026-116366) by @GuySaar8 in https://github.com/comet-ml/opik/pull/9316
- [NA] [SDK] [CI] feat: cap the Python SDK's direct dependencies at releases at least 3 days old by @alexkuzmik in https://github.com/comet-ml/opik/pull/9273
- [issue-9139] [SDK] fix: reject failed judge scores in jury consensus by @Jacqueline122 in https://github.com/comet-ml/opik/pull/9140
- [NA] [BE][FE] chore: sync provider model definitions by @CometActions in https://github.com/comet-ml/opik/pull/9365
- [NA] [BE] Update model prices file by @CometActions in https://github.com/comet-ml/opik/pull/9364
- [OPIK-9086] [FE] fix: a removed Ollie iframe can no longer crash the page with "reading 'setItem'" by @JetoPistola in https://github.com/comet-ml/opik/pull/9363
- [NA] [QA] test(e2e): clear the t1/t2 failures and cut real LLM spend to one daily canary by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/9372
- [NA] [INFRA] fix: run E2E smoke on frontend dependency PRs; stop label runs cancelling each other by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/9373
- [OPIK-4331] [BE][FE] fix: let Bedrock providers call Claude (Anthropic Messages) and Nova (Converse) by @aadereiko in https://github.com/comet-ml/opik/pull/9294
- [issue-3493] [BE] [FE] [SDK] feat: filter traces and threads by comments by @anishmehta24 in https://github.com/comet-ml/opik/pull/8724
- [NA] [SDK] fix: restore textstat's language after Readability scores by @anishmehta24 in https://github.com/comet-ml/opik/pull/8721
- [issue-8589] [SDK] fix: compare dicts, lists and sets by content in Equals by @gjreddy in https://github.com/comet-ml/opik/pull/9305
- [issue-9089] [SDK] fix: keep streamed tool calls in LiteLLM traces by @pcbeingused333 in https://github.com/comet-ml/opik/pull/9092
- [OPIK-8722] [FE] feat: show a banner for orgs with an expired Pro trial by @JetoPistola in https://github.com/comet-ml/opik/pull/9332
- [OPIK-9084] [INFRA] chore: use treeless sparse checkout in test-env trigger by @JetoPistola in https://github.com/comet-ml/opik/pull/9352
- [OPIK-9083] [INFRA] chore: use blobless partial clone where workflows diff or list files by @JetoPistola in https://github.com/comet-ml/opik/pull/9351
- [OPIK-6676] [CI] feat: add betterleaks secret scanning pre-commit hook by @JetoPistola in https://github.com/comet-ml/opik/pull/9324
- [NA] [FE] fix: build the frontend's nginx stage on alpine-slim plus the otel module by @AndreiCautisanu in https://github.com/comet-ml/opik/pull/9377
- [NA] [DOCS] fix: describe the Python evaluator execution strategies accurately by @miguelgrc in https://github.com/comet-ml/opik/pull/9306
- [OPIK-9082] [INFRA] chore: use shallow checkout in workflows that don't read git history by @JetoPistola in https://github.com/comet-ml/opik/pull/9350
New Contributors
- @Jacqueline122 made their first contribution in https://github.com/comet-ml/opik/pull/9140
- @gjreddy made their first contribution in https://github.com/comet-ml/opik/pull/9305
Full Changelog: https://github.com/comet-ml/opik/compare/2.2.138...2.2.139
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
🚀 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
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 https://www.comet.com/opik/api/v1/mcp --name opik-mcp. Details, troubleshooting and FAQ are in the MCP server guide.
📊 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.
❓ 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.
🛠️ 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"
Installation Script Options
The opik.sh and opik.ps1 scripts support the following options:
# 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
# Build the containers from source before starting
./opik.sh --build
# Check that all containers are healthy
./opik.sh --verify
# Stop all containers
./opik.sh --stop
# Stop all containers and remove all Opik data volumes
# WARNING: ALL OPIK DATA WILL BE LOST
./opik.sh --clean
# Show all available options
./opik.sh --help
Use the --help or --info options to troubleshoot issues. Dockerfiles now ensure containers run as non-root users for enhanced security. Once all is up and running, you can now visit localhost:5173 on your browser! For detailed instructions, see the Local Deployment Guide.
Self-Hosting with Kubernetes & Helm (for Scalable Deployments)
For production or larger-scale self-hosted deployments, Opik can be installed on a Kubernetes cluster using our Helm chart. Click the badge for the full Kubernetes Installation Guide using Helm.
💻 Opik Client SDK
Opik provides a suite of client libraries and a REST API to interact with the Opik server. This includes SDKs for Python and TypeScript, plus first-party OpenTelemetry support: any language with an OpenTelemetry SDK — including Java, Ruby, and .NET — can send traces to Opik. For detailed API and SDK references, see the Opik Client Reference Documentation.
Python SDK Quick Start
To get started with the Python SDK:
Install the package:
# install using pip
pip install opik
# or install with uv
uv pip install opik
Configure the python SDK by running the opik configure command, which will prompt you for your Opik server address (for self-hosted instances) or your API key and workspace (for Comet.com):
opik configure
[!TIP] You can also call
opik.configure(use_local=True)from your Python code to configure the SDK to run on a local self-hosted installation, or provide API key and workspace details directly for Comet.com. Refer to the Python SDK documentation for more configuration options.
You are now ready to start logging traces using the Python SDK.
📝 Logging Traces with Integrations
The easiest way to log traces is to use one of our direct integrations. Opik supports a wide array of frameworks, including recent additions like Google ADK, Autogen, AG2, and Flowise AI:
| Integration | Description | Documentation |
|---|---|---|
| ADK | Log traces for Google Agent Development Kit (ADK) | Documentation |
| AG2 | Log traces for AG2 LLM calls | Documentation |
| Agent Spec | Log traces for Agent Spec calls | Documentation |
| AIsuite | Log traces for aisuite LLM calls | Documentation |
| Agno | Log traces for Agno agent orchestration framework calls | Documentation |
| Anthropic | Log traces for Anthropic LLM calls | Documentation |
| Autogen | Log traces for Autogen agentic workflows | Documentation |
| Bedrock | Log traces for Amazon Bedrock LLM calls | Documentation |
| BeeAI (Python) | Log traces for BeeAI Python agent framework calls | Documentation |
| BeeAI (TypeScript) | Log traces for BeeAI TypeScript agent framework calls | Documentation |
| BytePlus | Log traces for BytePlus LLM calls | Documentation |
| Claude Code | Log traces for Claude Code sessions via the Opik plugin | GitHub |
| Cloudflare Workers AI | Log traces for Cloudflare Workers AI calls | Documentation |
| Cohere | Log traces for Cohere LLM calls | Documentation |
| CrewAI | Log traces for CrewAI calls | Documentation |
| Cursor | Log traces for Cursor conversations | Documentation |
| DeepSeek | Log traces for DeepSeek LLM calls | Documentation |
| Dify | Log traces for Dify agent runs | Documentation |
| DSPY | Log traces for DSPy runs | Documentation |
| Fireworks AI | Log traces for Fireworks AI LLM calls | Documentation |
| Flowise AI | Log traces for Flowise AI visual LLM builder | Documentation |
| Gemini (Python) | Log traces for Google Gemini LLM calls | Documentation |
| Gemini (TypeScript) | Log traces for Google Gemini TypeScript SDK calls | Documentation |
| Groq | Log traces for Groq LLM calls | Documentation |
| Guardrails | Log traces for Guardrails AI validations | Documentation |
| Haystack | Log traces for Haystack calls | Documentation |
| Harbor | Log traces for Harbor benchmark evaluation trials | Documentation |
| Instructor | Log traces for LLM calls made with Instructor | Documentation |
| LangChain (Python) | Log traces for LangChain LLM calls | Documentation |
| LangChain (JS/TS) | Log traces for LangChain JavaScript/TypeScript calls | Documentation |
| LangGraph | Log traces for LangGraph executions | Documentation |
| Langflow | Log traces for Langflow visual AI builder | Documentation |
| LiteLLM | Log traces for LiteLLM model calls | Documentation |
| LiveKit Agents | Log traces for LiveKit Agents AI agent framework calls | Documentation |
| LlamaIndex | Log traces for LlamaIndex LLM calls | Documentation |
| Mastra | Log traces for Mastra AI workflow framework calls | Documentation |
| MCP Server (opik-mcp) | Drive Opik from Claude Code, Cursor, or VS Code via Model Context Protocol | Documentation |
| Microsoft Agent Framework (Python) | Log traces for Microsoft Agent Framework calls | Documentation |
| Microsoft Agent Framework (.NET) | Log traces for Microsoft Agent Framework .NET calls | Documentation |
| Mistral AI | Log traces for Mistral AI LLM calls | Documentation |
| n8n | Log traces for n8n workflow executions | Documentation |
| Novita AI | Log traces for Novita AI LLM calls | Documentation |
| Ollama | Log traces for Ollama LLM calls | Documentation |
| OpenAI (Python) | Log traces for OpenAI LLM calls | Documentation |
| OpenAI (JS/TS) | Log traces for OpenAI JavaScript/TypeScript calls | Documentation |
| OpenAI Agents | Log traces for OpenAI Agents SDK calls | Documentation |
| OpenClaw | Log traces for OpenClaw agent runs | Documentation |
| OpenRouter | Log traces for OpenRouter LLM calls | Documentation |
| OpenTelemetry | Log traces for OpenTelemetry supported calls | Documentation |
| OpenWebUI | Log traces for OpenWebUI conversations | Documentation |
| Pipecat | Log traces for Pipecat real-time voice agent calls | Documentation |
| Predibase | Log traces for Predibase LLM calls | Documentation |
| Pydantic AI | Log traces for PydanticAI agent calls | Documentation |
| Ragas | Log traces for Ragas evaluations | Documentation |
| Semantic Kernel | Log traces for Microsoft Semantic Kernel calls | Documentation |
| Smolagents | Log traces for Smolagents agents | Documentation |
| Spring AI | Log traces for Spring AI framework calls | Documentation |
| Strands Agents | Log traces for Strands agents calls | Documentation |
| Together AI | Log traces for Together AI LLM calls | Documentation |
| TrueFoundry | Log traces for TrueFoundry AI Gateway LLM calls | Documentation |
| TypeSafe AI | Log traces for TypeSafe AI (Jev) System One calls | Documentation |
| Vercel AI SDK | Log traces for Vercel AI SDK calls | Documentation |
| VoltAgent | Log traces for VoltAgent agent framework calls | Documentation |
| WatsonX | Log traces for IBM watsonx LLM calls | Documentation |
| xAI Grok | Log traces for xAI Grok LLM calls | Documentation |
[!TIP] If the framework you are using is not listed above, feel free to open an issue or submit a PR with the integration.
If you are not using any of the frameworks above, you can also use the track function decorator to log traces:
import opik
opik.configure(use_local=True) # Run locally
@opik.track
def my_llm_function(user_question: str) -> str:
# Your LLM code here
return "Hello"
[!TIP] The track decorator can be used in conjunction with any of our integrations and can also be used to track nested function calls.
🧑⚖️ LLM as a Judge metrics
The Python Opik SDK includes a number of LLM as a judge metrics to help you evaluate your LLM application. Learn more about it in the metrics documentation.
To use them, simply import the relevant metric and use the score function:
from opik.evaluation.metrics import Hallucination
metric = Hallucination()
score = metric.score(
input="What is the capital of France?",
output="Paris",
context=["France is a country in Europe."]
)
print(score)
Opik also includes a number of pre-built heuristic metrics as well as the ability to create your own. Learn more about it in the metrics documentation.
🔍 Evaluating your LLM Applications
Opik allows you to evaluate your LLM application during development through Datasets and Experiments. The Opik Dashboard offers enhanced charts for experiments and better handling of large traces. You can also run evaluations as part of your CI/CD pipeline using our PyTest integration.
⭐ Star Us on GitHub
If you find Opik useful, please consider giving us a star! Your support helps us grow our community and continue improving the product.
🤝 Contributing
There are many ways to contribute to Opik:
- Submit bug reports and feature requests
- Review the documentation and submit Pull Requests to improve it
- Speaking or writing about Opik and letting us know
- Upvoting popular feature requests to show your support
To learn more about how to contribute to Opik, please see our contributing guidelines.