opik
Opik — Observability for LLM Agents
Integrating with Opik always means adding all three components unless the user explicitly asks for only one:
- Tracing — instrument LLM calls with the appropriate integration or
@opik.track - Entrypoint — mark the top-level function with
entrypoint=Truefor Local Runner and UI integration - Agent Configuration — externalize all tunable parameters into
opik.Config: model names, temperatures, top_p, max_tokens, all prompts and prompt templates, and any other runtime parameters the user may want to compare or optimize
Setup
Environment Config Decision Tree
Before adding Opik config, inspect the project's existing config approach. Follow this decision tree exactly:
-
Check for existing
.env/.env.localfiles anddotenvusage in code.- If the project loads a
.envfile (viapython-dotenv,dotenv, or framework auto-loading): appendOPIK_API_KEYandOPIK_WORKSPACEto that same file. Do NOT create a separate config file. - If there is a
.env.exampleor.env.sample: also update it with the new Opik vars (using placeholder values) so future developers know which vars are needed.
- If the project loads a
-
If no
.envfile exists:
More from comet-ml/opik-skills
instrument
Add Opik tracing to an existing codebase. Detects language (Python/TypeScript), identifies LLM frameworks, adds appropriate decorators and integrations, marks entrypoints, and wires up environment config. Use for "instrument my code", "add opik tracing", "add observability", or "trace my agent".
157agent-config
Opik Agent Configuration — Blueprints, get_agent_config() with selectors, environment tags, Prompt/ChatPrompt fields, deploy_to(), MaskIDs, and config lifecycle.
5agent-ops
Agent lifecycle — architecture, configuration (Blueprints), Local Runner, evaluation, threads, production monitoring. Use for "evaluate my agent", "connect my agent", "configure my agent", "add guardrails".
5opik-connect
Opik Connect (Local Runner) — pair your local agent with the Opik browser UI for Python and TypeScript.
5instrument-typescript
Adding Opik observability to TypeScript/JS LLM apps — track() with entrypoint and explicit params for Local Runner, framework integrations.
5evaluation-suites
Opik Evaluation Suites — assertions, execution policies, CI integration. Replaces old Datasets API.
5