# Opik by Comet

```json
{
  "name": "Opik by Comet",
  "slug": "opik",
  "url": "https://composio.dev/toolkits/opik",
  "markdown_url": "https://composio.dev/toolkits/opik.md",
  "logo_url": "https://logos.composio.dev/api/opik",
  "categories": [
    "ai & machine learning"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-29T05:37:49.486Z"
}
```

![Opik by Comet logo](https://logos.composio.dev/api/opik)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Opik by Comet MCP or direct API to inspect traces, analyze spans, review evaluations, and monitor LLM applications through natural language.

## Summary

Opik is Comet's open-source platform for tracing, evaluating, and monitoring LLM applications and AI agents.
It helps teams find failures, measure quality, and improve production AI systems.

## Categories

- ai & machine learning

## Toolkit Details

- Tools: 210

## Images

- Logo: https://logos.composio.dev/api/opik

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for Opik by Comet.
  - Setup:
    - Configure Api Key credentials for Opik by Comet.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Find failed traces from yesterday
- Compare evaluation scores across recent runs
- Inspect slow spans in production traces

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `OPIK_AGENT_CONFIGS_CREATE_AGENT_CONFIG` | Create optimizer config with initial blueprint | Creates a new optimizer config with initial blueprint. Fails if the project already has a config. |
| `OPIK_AGENT_CONFIGS_CREATE_BLUEPRINT_FROM_MASK` | Create blueprint from mask | Creates a new blueprint by applying a mask's changes on top of the latest blueprint for the project. |
| `OPIK_AGENT_CONFIGS_CREATE_OR_UPDATE_ENVS` | Create or update environments | Creates or updates environment-to-blueprint mappings |
| `OPIK_AGENT_CONFIGS_GET_BLUEPRINT_BY_ENV` | Retrieve blueprint by environment | Retrieves the blueprint associated with a specific environment |
| `OPIK_AGENT_CONFIGS_GET_BLUEPRINT_BY_ID` | Retrieve blueprint by ID | Retrieves a specific blueprint by its ID |
| `OPIK_AGENT_CONFIGS_GET_BLUEPRINT_BY_NAME` | Retrieve blueprint by name | Retrieves a specific blueprint by its name within a project |
| `OPIK_AGENT_CONFIGS_GET_BLUEPRINT_HISTORY` | Get blueprint history | Retrieves paginated blueprint history for a project |
| `OPIK_AGENT_CONFIGS_GET_DELTA_BY_ID` | Retrieve delta by blueprint ID | Retrieves only the changes (delta) introduced in a specific blueprint |
| `OPIK_AGENT_CONFIGS_GET_LATEST_BLUEPRINT` | Retrieve latest blueprint | Retrieves the latest blueprint for a project |
| `OPIK_AGENT_CONFIGS_SET_ENV_BLUEPRINT` | Set environment by blueprint name | Sets an environment to point to a blueprint identified by name |
| `OPIK_AGENT_CONFIGS_UPDATE_AGENT_CONFIG` | Add blueprint to existing config | Adds a new blueprint to an existing optimizer config. Fails if the project has no config yet. |
| `OPIK_AGENT_INSIGHTS_CREATE_JOB` | Create Agent Insights job | Creates the Agent Insights job for a project, disabled: the daily schedule stays off until the job is enabled with PATCH. 409 if one already exists. |
| `OPIK_AGENT_INSIGHTS_FIND_AGENT_INSIGHTS_ISSUES` | Find agent insights issues | Returns a paginated list of issues that have at least one detail row within the requested time window, with metrics aggregated over the window |
| `OPIK_AGENT_INSIGHTS_GET_ISSUE_BY_ID` | Get agent insights issue by id | Returns the issue together with its per-day breakdown within the requested time window |
| `OPIK_AGENT_INSIGHTS_GET_JOB` | Get Agent Insights job | Returns the Agent Insights job for the (workspace, project), or 404 if none exists. |
| `OPIK_AGENT_INSIGHTS_TRIGGER_JOB` | Trigger Agent Insights job | Triggers an immediate report run for an existing job (over the last 24h). Fire-and-forget; returns 202. 404 if none exists. |
| `OPIK_AGENT_INSIGHTS_UPDATE_AGENT_INSIGHTS_ISSUE` | Update agent insights issue status | Moves an issue through its lifecycle: open, resolved or closed. close_note is kept only with closed; any other status clears it |
| `OPIK_AGENT_INSIGHTS_UPDATE_GUIDANCE` | Update Agent Insights project guidance | Saves the project guidance sent to every Agent Insights run, creating the job (disabled) if the project has none. Empty or whitespace-only clears it. The guidance version is bumped only when the text changes. 404 while guidance is not enabled. |
| `OPIK_AGENT_INSIGHTS_UPDATE_JOB` | Update Agent Insights job | Partially updates the Agent Insights job for a project (e.g. status; never deletes). Returns the updated job, or 404 if none exists. |
| `OPIK_ALERTS_FIND_ALERTS` | Find alerts | Find alerts |
| `OPIK_ALERTS_GET_ALERT_BY_ID` | Get Alert by id | Get Alert by id |
| `OPIK_ALERTS_GET_WEBHOOK_EXAMPLES` | Get webhook payload examples | Get webhook payload examples for all alert event types, optionally filtered by alert type |
| `OPIK_ANNOTATION_QUEUES_ADD_ITEMS` | Add items to annotation queue | Add traces or threads to annotation queue |
| `OPIK_ANNOTATION_QUEUES_CREATE_ANNOTATION_QUEUE` | Create annotation queue | Create annotation queue for human annotation workflows |
| `OPIK_ANNOTATION_QUEUES_CREATE_ANNOTATION_QUEUE_BATCH` | Create annotation queue batch | Create multiple annotation queues for human annotation workflows |
| `OPIK_ANNOTATION_QUEUES_FIND_ANNOTATION_QUEUES` | Find annotation queues | Find annotation queues with filtering and sorting |
| `OPIK_ANNOTATION_QUEUES_GET_ANNOTATION_QUEUE_LOCKS` | Get all active locks for an annotation queue | Returns lock status for all actively locked items in the queue |
| `OPIK_ANNOTATION_QUEUES_GET_BY_ID` | Get annotation queue by id | Get annotation queue by id |
| `OPIK_ANNOTATION_QUEUES_LOCK_ANNOTATION_QUEUE_ITEM` | Create or extend annotation queue item lock | Claim an annotation queue item for the current user, or extend an existing lock |
| `OPIK_ANNOTATION_QUEUES_SEARCH_ANNOTATION_QUEUE_ITEMS` | Search annotation queue items | Returns queue membership metadata — how each item got into the queue — for the given item ids. A lookup rather than a listing: the caller renders the items table from the traces or threads API with its own sort and filters, so it asks for exactly the ids it is displaying. Ids that are not in the queue are omitted. |
| `OPIK_ANNOTATION_QUEUES_UPDATE_ANNOTATION_QUEUE` | Update annotation queue | Update annotation queue by id |
| `OPIK_ASSERTION_RESULTS_STORE_ASSERTIONS_BATCH` | Batch ingestion of assertion results | Batch ingestion of assertion results for traces or spans |
| `OPIK_ATTACHMENTS_ATTACHMENT_LIST` | Attachments list for entity | Attachments list for entity |
| `OPIK_AUTOMATION_EVALUATORS_CREATE` | Create automation rule evaluator | Create automation rule evaluator |
| `OPIK_AUTOMATION_EVALUATORS_GET_BY_ID` | Get automation rule evaluator by id | Get automation rule by id |
| `OPIK_AUTOMATION_EVALUATORS_GET_LOGS` | Get automation rule evaluator logs by id | Get automation rule evaluator logs by id |
| `OPIK_AUTOMATION_EVALUATORS_UPDATE` | Update Automation Rule Evaluator by id | Update Automation Rule Evaluator by id |
| `OPIK_AUTOMATION_RULE_EVALUATORS_FIND_EVALUATORS` | Find project Evaluators | Find project Evaluators |
| `OPIK_CHAT_COMPLETIONS_CREATE_CHAT_COMPLETIONS` | Create chat completions | Create chat completions |
| `OPIK_CHECK_ACCESS` | Check user access to workspace | Check user access to workspace |
| `OPIK_CHECK_GET_WORKSPACE_NAME` | User's default workspace name | User's default workspace name |
| `OPIK_CREATE_DATASET` | Create Dataset | Create a dataset or evaluation suite in the Default Project or a selected project. Supplying a project_name that does not exist also creates that project. |
| `OPIK_CREATE_EXPERIMENT` | Create Experiment | Create an experiment linked to a dataset and optionally to a project, dataset version, prompt versions, or optimization. Supplying a project_name that does not exist also creates that project. |
| `OPIK_CREATE_FEEDBACK_DEFINITION` | Create Feedback Definition | Create a numerical, categorical, or boolean feedback definition with type-specific details. |
| `OPIK_CREATE_PROJECT` | Create Project | Create a project in the connected Opik workspace. |
| `OPIK_CREATE_PROMPT` | Create Prompt | Create a prompt in the Default Project or a selected project, optionally with its initial template and metadata. Supplying a project_name that does not exist also creates that project. |
| `OPIK_CREATE_PROMPT_VERSION` | Create Prompt Version | Create an immutable version for a named prompt, creating the prompt when it does not already exist. |
| `OPIK_CREATE_SPANS` | Create Spans | Create one or more Opik spans in a single batch. |
| `OPIK_CREATE_TRACES` | Create Traces | Create one or more Opik traces in a single batch. |
| `OPIK_DASHBOARDS_CREATE_DASHBOARD` | Create dashboard | Create a new dashboard in a workspace |
| `OPIK_DASHBOARDS_FIND_DASHBOARDS` | Find dashboards | Find dashboards in a workspace |
| `OPIK_DASHBOARDS_GET_DASHBOARD_BY_ID` | Get dashboard by id | Get dashboard by id |
| `OPIK_DASHBOARDS_RUN_DASHBOARD_WIDGET_QUERY` | Run a saved widget query | Runs the query saved on an Ollie chart widget of this dashboard over the given date range and returns its rows. The query is read from the saved widget; the request carries no SQL. Returns 501 when Ollie or Custom Charts is not enabled for the workspace. |
| `OPIK_DASHBOARDS_UPDATE_DASHBOARD` | Update dashboard | Update dashboard by id. Partial updates are supported - only provided fields will be updated. |
| `OPIK_DATASETS_BATCH_UPDATE_DATASET_ITEMS` | Batch update dataset items | Update multiple dataset items |
| `OPIK_DATASETS_COMPARE_DATASET_VERSIONS` | Compare latest version with draft | Compare the latest committed dataset version with the current draft state. This endpoint provides insights into changes made since the last version was committed. The comparison calculates additions, modifications, deletions, and unchanged items between the latest version snapshot and current draft. |
| `OPIK_DATASETS_CREATE_DATASET_ITEMS_FROM_SPANS` | Create dataset items from spans | Create dataset items from spans with enriched metadata |
| `OPIK_DATASETS_CREATE_DATASET_ITEMS_FROM_TRACES` | Create dataset items from traces | Create dataset items from traces with enriched metadata |
| `OPIK_DATASETS_CREATE_VERSION_TAG` | Create version tag | Add a tag to a specific dataset version for easy reference (e.g., 'baseline', 'v1.0', 'production') |
| `OPIK_DATASETS_EXPAND_DATASET` | Expand dataset with synthetic samples | Generate synthetic dataset samples using LLM based on existing data patterns |
| `OPIK_DATASETS_GET_DATASET_BY_ID` | Get dataset by id | Get dataset by id |
| `OPIK_DATASETS_GET_DATASET_BY_IDENTIFIER` | Get dataset by name | Get dataset by name |
| `OPIK_DATASETS_GET_DATASET_EXPERIMENT_ITEMS_STATS` | Get experiment items stats for dataset | Get experiment items stats for dataset |
| `OPIK_DATASETS_GET_DATASET_EXPORT_JOB` | Get dataset export job status | Retrieves the current status of a dataset export job |
| `OPIK_DATASETS_GET_DATASET_ITEM_BY_ID` | Get dataset item by id | Get dataset item by id |
| `OPIK_DATASETS_GET_DATASET_ITEMS_OUTPUT_COLUMNS` | Get dataset items output columns | Get dataset items output columns |
| `OPIK_DATASETS_GET_DATASET_VERSION_BY_HASH` | Get dataset version by hash | Get a specific version by its version hash |
| `OPIK_DATASETS_LIST_DATASET_VERSIONS` | List dataset versions | Get paginated list of versions for a dataset, ordered by creation time (newest first) |
| `OPIK_DATASETS_LIST_ITEMS_WITH_EXPERIMENT_RESULTS` | Find dataset items with experiment items | Find dataset items with experiment items |
| `OPIK_DATASETS_PATCH_DATASET_ITEM` | Partially update dataset item by id | Partially update dataset item by id. Only provided fields will be updated. |
| `OPIK_DATASETS_RESTORE_DATASET_VERSION` | Restore dataset to a previous version | Restores the dataset to a previous version state by creating a new version with items copied from the specified version. If the version is already the latest, returns it as-is (no-op). |
| `OPIK_DATASETS_RETRIEVE_DATASET_VERSION` | Retrieve dataset version by name | Get a specific version by its version name (e.g., 'v1', 'v373'). This is more efficient than paginating through all versions for large datasets. |
| `OPIK_DATASETS_START_DATASET_EXPORT` | Start dataset CSV export | Initiates an asynchronous CSV export job for the dataset. Returns immediately with job details for polling. |
| `OPIK_DATASETS_UPDATE_DATASET` | Update dataset by id | Update dataset by id |
| `OPIK_DATASETS_UPDATE_DATASET_VERSION` | Update dataset version | Update a dataset version's change_description and/or add new tags |
| `OPIK_ENVIRONMENTS_CREATE_ENVIRONMENT` | Create environment | Create environment |
| `OPIK_ENVIRONMENTS_FIND_ENVIRONMENTS` | Find environments | Find environments for the workspace. Capped at the workspace limit (default 100). |
| `OPIK_ENVIRONMENTS_GET_ENVIRONMENT_BY_ID` | Get environment by id | Get environment by id |
| `OPIK_ENVIRONMENTS_UPDATE_ENVIRONMENT` | Update environment by id | Update environment by id |
| `OPIK_EXPERIMENTS_BATCH_UPDATE_EXPERIMENTS` | Batch update experiments | Update multiple experiments |
| `OPIK_EXPERIMENTS_CREATE_EXPERIMENT_ITEMS` | Create experiment items | Create experiment items |
| `OPIK_EXPERIMENTS_EXECUTE_EXPERIMENT` | Create and execute experiment | Creates experiments for each prompt variant and asynchronously processes all dataset items |
| `OPIK_EXPERIMENTS_EXPERIMENT_ITEMS_BULK` | Record experiment items in bulk | Record experiment items in bulk with traces, spans, and feedback scores. Maximum request size is 4MB. |
| `OPIK_EXPERIMENTS_FIND_EXPERIMENT_GROUPS` | Find experiment groups | Find experiments grouped by specified fields |
| `OPIK_EXPERIMENTS_FIND_EXPERIMENT_GROUPS_AGGREGATIONS` | Find experiment groups with aggregations | Find experiments grouped by specified fields with aggregation metrics |
| `OPIK_EXPERIMENTS_FIND_FEEDBACK_SCORE_NAMES` | Find Feedback Score names | Find Feedback Score names |
| `OPIK_EXPERIMENTS_GET_EXPERIMENT_BY_ID` | Get experiment by id | Get experiment by id |
| `OPIK_EXPERIMENTS_GET_EXPERIMENT_ITEM_BY_ID` | Get experiment item by id | Get experiment item by id |
| `OPIK_EXPERIMENTS_UPDATE_EXPERIMENT` | Update experiment by id | Update experiment by id |
| `OPIK_EXPORT_DATASET_AND_WAIT` | Export Dataset and Wait | Start an asynchronous CSV export of an Opik dataset and poll the strictly correlated job until it completes or fails. Returns completed job metadata, including the provider-side file path, without downloading the binary. |
| `OPIK_FEEDBACK_DEFINITIONS_GET_BY_ID` | Get feedback definition by id | Get feedback definition by id |
| `OPIK_FEEDBACK_DEFINITIONS_UPDATE_FEEDBACK_DEFINITION` | Update feedback definition by id | Update feedback definition by id |
| `OPIK_GENERATE_REPORT_AND_WAIT` | Generate Report and Wait | Trigger report generation for an Opik project and wait for that exact report to complete. |
| `OPIK_GET_PROJECT_BY_ID` | Get Project | Return one project by its Opik project ID. |
| `OPIK_GET_PROJECT_BY_NAME` | Retrieve project | Return one project by its exact name, optionally including project statistics. |
| `OPIK_INSIGHTS_VIEWS_CREATE_INSIGHTS_VIEW` | Create insights view | Create a new insights view in a workspace |
| `OPIK_INSIGHTS_VIEWS_FIND_INSIGHTS_VIEWS` | Find insights views | Find insights views in a workspace |
| `OPIK_INSIGHTS_VIEWS_GET_BY_ID` | Get insights view by id | Get insights view by id |
| `OPIK_INSIGHTS_VIEWS_RUN_WIDGET_QUERY` | Run a saved widget query | Runs the query saved on an Ollie chart widget of this insights view over the given date range and returns its rows. The query is read from the saved widget; the request carries no SQL. Returns 501 when Ollie or Custom Charts is not enabled for the workspace. |
| `OPIK_INSIGHTS_VIEWS_UPDATE_INSIGHTS_VIEW` | Update insights view | Update insights view by id. Partial updates are supported - only provided fields will be updated. |
| `OPIK_LIST_DATASET_EXPORT_JOBS` | Get all dataset export jobs | Retrieves all export jobs for the workspace. This is used to restore the export panel state after page refresh. |
| `OPIK_LIST_DATASET_ITEMS` | List Dataset Items | Return one page of items from a dataset, optionally at a version hash or tag. |
| `OPIK_LIST_DATASETS` | List Datasets | Return one page of datasets, optionally filtered by name, project, prompt, or whether they have experiments or optimizations. |
| `OPIK_LIST_EXPERIMENTS` | List Experiments | Return one page of experiments filtered by dataset, project, prompt, optimization, name, or deletion state. |
| `OPIK_LIST_FEEDBACK_DEFINITIONS` | List Feedback Definitions | Return one page of numerical, categorical, or boolean feedback definitions, optionally filtered by name or type. |
| `OPIK_LIST_LLM_MODEL_PROFILES` | Get LLM model profiles | Get the params each provider's unlisted models take, keyed by provider |
| `OPIK_LIST_LLM_MODELS` | Get LLM models | Get the list of supported LLM models grouped by provider |
| `OPIK_LIST_PROJECTS` | List Projects | Return one page of workspace projects, optionally filtered by a case-insensitive name match. |
| `OPIK_LIST_PROMPTS` | List Prompts | Return one page of workspace or project-scoped prompts, optionally filtered by name. |
| `OPIK_LIST_PROMPTS_BY_PROJECT` | Get prompts by project | Get prompts scoped to a project |
| `OPIK_LIST_PROMPT_VERSIONS` | Get prompt versions | Get prompt versions |
| `OPIK_LIST_REPORTS` | Get reports for a project | Returns a paginated list of reports, newest first. |
| `OPIK_LIST_SPANS` | List Spans | Return one page of spans for a project or trace, with optional type, text, and time filters. |
| `OPIK_LIST_TRACES` | List Traces | Return one page of traces for a project, with optional text, time, queue, and attachment-handling filters. |
| `OPIK_LIST_TRACE_THREADS` | Get trace threads | Get trace threads |
| `OPIK_LIST_VIEW_VERSIONS` | Get view versions | List the versions of a view, newest first |
| `OPIK_LLM_PROVIDER_KEYS_GET_METADATA` | Get LLM Provider's ApiKey by id | Get non-secret metadata for a configured LLM provider key. The stored API key value and other credential material are never returned. |
| `OPIK_LLM_PROVIDER_KEYS_LIST` | Find LLM Provider's ApiKeys | List non-secret metadata for configured LLM provider keys. Stored API key values and other credential material are never returned. |
| `OPIK_MANUAL_EVALUATION_EVALUATE_SPANS` | Manually evaluate spans | Manually trigger evaluation rules on selected spans. Bypasses sampling and enqueues all specified spans for evaluation. |
| `OPIK_MANUAL_EVALUATION_EVALUATE_THREADS` | Manually evaluate threads | Manually trigger evaluation rules on selected threads. Bypasses sampling and enqueues all specified threads for evaluation. |
| `OPIK_MANUAL_EVALUATION_EVALUATE_TRACES` | Manually evaluate traces | Manually trigger evaluation rules on selected traces. Bypasses sampling and enqueues all specified traces for evaluation. |
| `OPIK_OPTIMIZATIONS_CREATE_OPTIMIZATION` | Create optimization | Create an optimization. Supplying a project_name that does not exist also creates that project. |
| `OPIK_OPTIMIZATIONS_FIND_OPTIMIZATIONS` | Find optimizations | Find optimizations |
| `OPIK_OPTIMIZATIONS_GET_OPTIMIZATION_BY_ID` | Get optimization by id | Get optimization by id |
| `OPIK_OPTIMIZATIONS_UPDATE_OPTIMIZATIONS_BY_ID` | Update optimization by id | Update optimization by id |
| `OPIK_OPTIMIZATIONS_UPSERT_OPTIMIZATION` | Upsert optimization | Create or update an optimization. Supplying a project_name that does not exist also creates that project. |
| `OPIK_PROJECTS_FIND_ALERTS_BY_PROJECT` | Find alerts by project | Find alerts scoped to a project |
| `OPIK_PROJECTS_FIND_DASHBOARDS_BY_PROJECT` | Find dashboards by project | Find dashboards scoped to a project |
| `OPIK_PROJECTS_FIND_DATASETS_BY_PROJECT` | Find datasets by project | Find datasets scoped to a project |
| `OPIK_PROJECTS_FIND_EXPERIMENTS_BY_PROJECT` | Find experiments by project | Find experiments scoped to a project |
| `OPIK_PROJECTS_FIND_OPTIMIZATIONS_BY_PROJECT` | Find optimizations by project | Find optimizations scoped to a project |
| `OPIK_PROJECTS_FIND_TOKEN_USAGE_NAMES` | Find Token Usage names | Find Token Usage names |
| `OPIK_PROJECTS_GET_PROJECT_KPI_CARDS` | Get Project KPI Cards | Gets KPI card metrics for a project |
| `OPIK_PROJECTS_GET_PROJECT_METRICS` | Get Project Metrics | Gets specified metrics for a project |
| `OPIK_PROJECTS_GET_PROJECT_STATS` | Get Project Stats | Get Project Stats |
| `OPIK_PROJECTS_GET_RECENT_ACTIVITY` | Get recent activity for a project | Returns the most recent activity items across all entity types for a project, sorted by date descending. |
| `OPIK_PROJECTS_LIST_FEEDBACK_SCORE_NAMES` | Find Feedback Score names By Project Ids | Find Feedback Score names By Project Ids |
| `OPIK_PROJECTS_UPDATE_PROJECT` | Update project by id | Update project by id |
| `OPIK_PROMPTS_GET_PROMPT_BY_COMMIT` | Get prompt by commit | Get prompt by commit |
| `OPIK_PROMPTS_GET_PROMPT_BY_ID` | Get prompt by id | Get prompt by id; when mask_id or environment is provided, requestedVersion is populated with the resolved version. mask_id and environment are mutually exclusive. |
| `OPIK_PROMPTS_GET_PROMPTS_BY_COMMITS` | Get prompts by commits | Get prompts by prompt version commits |
| `OPIK_PROMPTS_GET_PROMPT_VERSION_BY_ID` | Get prompt version by id | Get prompt version by id |
| `OPIK_PROMPTS_GET_PROMPT_VERSION_BY_NUMBER` | Get prompt version by sequential number | Get a prompt version by its sequential v number for the given prompt. |
| `OPIK_PROMPTS_RESTORE_PROMPT_VERSION` | Restore prompt version | Restore a prompt version by creating a new version with the content from the specified version |
| `OPIK_PROMPTS_RETRIEVE_PROMPT_VERSION` | Retrieve prompt version | Retrieve prompt version. When project_name is supplied the lookup is scoped to that project: a prompt belonging to a different project is never matched, and an unknown project name returns 404. Legacy prompts with no project are still resolved as a deprecated fallback, signalled by the X-Opik-Deprecation response header. |
| `OPIK_PROMPTS_RETRIEVE_PROMPT_VERSIONS_BY_IDS` | Retrieve prompt versions by ids | Retrieve a batch of prompt versions by their ids. Typically used by the UI to resolve mask overlays. |
| `OPIK_PROMPTS_SET_PROMPT_VERSION_ENVIRONMENT` | Set prompt version environment | Replace the prompt version's complete environments array. Send an empty array to clear every environment from the version. |
| `OPIK_PROMPTS_UPDATE_PROMPT` | Update prompt | Update prompt |
| `OPIK_PROMPTS_UPDATE_PROMPT_VERSIONS` | Update prompt versions | Update one or more prompt versions. Note: Prompt versions are immutable by design. Only organizational properties, such as tags etc., can be updated. Core properties like template and metadata cannot be modified after creation. PATCH semantics: - non-empty values update the field - null values preserve existing field values (no change) - empty values explicitly clear the field |
| `OPIK_REPORT_FAILURES_FIND_REPORT_FAILURES` | List failures for a project | Returns failures for the given project id and type, most recent first. |
| `OPIK_REPORTS_GENERATE_REPORT` | Trigger report generation | Creates a pending report and triggers asynchronous generation via the orchestrator. |
| `OPIK_REPORTS_GET_REPORT_PREFERENCE` | Get report preferences | Returns report preferences for a project, or null if none have been set. |
| `OPIK_REPORTS_UPDATE_REPORT_PREFERENCE` | Update report preferences | Enable or disable daily report generation for a project. |
| `OPIK_RUNNERS_CREATE_JOB` | Create local runner job | Create a local runner job and enqueue it for execution |
| `OPIK_RUNNERS_GET_JOB` | Get local runner job | Get a single local runner job's status and results |
| `OPIK_RUNNERS_GET_JOB_LOGS` | Get local runner job logs | Get log entries for a local runner job |
| `OPIK_RUNNERS_GET_RUNNER` | Get local runner | Get a single local runner with its registered agents |
| `OPIK_RUNNERS_LIST_JOBS` | List local runner jobs | List jobs for a local runner |
| `OPIK_RUNNERS_LIST_RUNNERS` | List local runners | List local runners owned by the current user in the workspace |
| `OPIK_SERVICE_TOGGLES_GET_SERVICE_TOGGLES` | Get Service Toggles | Get Service Toggles |
| `OPIK_SPANS_ADD_SPAN_COMMENT` | Add span comment | Add span comment |
| `OPIK_SPANS_ADD_SPAN_FEEDBACK_SCORE` | Add span feedback score | Add span feedback score |
| `OPIK_SPANS_BATCH_UPDATE_SPANS` | Batch update spans | Update multiple spans |
| `OPIK_SPANS_EXIST` | Check whether a project has spans | Returns whether the project has at least one span matching the given scope. Cheap existence probe (LIMIT 1) used to drive empty-state decisions without scanning or aggregating the whole project. |
| `OPIK_SPANS_FIND_SPAN_FEEDBACK_SCORE_NAMES` | Find Feedback Score names | Find Feedback Score names |
| `OPIK_SPANS_GET_SPAN_BY_ID` | Get span by id | Get span by id |
| `OPIK_SPANS_GET_SPAN_COMMENT` | Get span comment | Get span comment |
| `OPIK_SPANS_GET_SPAN_STATS` | Get span stats | Get span stats |
| `OPIK_SPANS_SCORE_BATCH_OF_SPANS` | Batch feedback scoring for spans | Batch feedback scoring for spans |
| `OPIK_SPANS_UPDATE_SPAN` | Update span by id | Update span by id |
| `OPIK_SPANS_UPDATE_SPAN_COMMENT` | Update span comment by id | Update span comment by id |
| `OPIK_TRACES_ADD_THREAD_COMMENT` | Add thread comment | Add thread comment |
| `OPIK_TRACES_ADD_TRACE_COMMENT` | Add trace comment | Add trace comment |
| `OPIK_TRACES_ADD_TRACE_FEEDBACK_SCORE` | Add trace feedback score | Add trace feedback score |
| `OPIK_TRACES_BATCH_UPDATE_THREADS` | Batch update threads | Update multiple threads |
| `OPIK_TRACES_BATCH_UPDATE_TRACES` | Batch update traces | Update multiple traces |
| `OPIK_TRACES_CLOSE_TRACE_THREAD` | Close trace thread(s) | Close one or multiple trace threads. Supports both single thread_id and multiple thread_ids for batch operations. |
| `OPIK_TRACES_EXIST` | Check whether a project has traces | Returns whether the project has at least one trace matching the given scope. Cheap existence probe (LIMIT 1) used to drive empty-state decisions without scanning or aggregating the whole project. |
| `OPIK_TRACES_FIND_TRACE_FEEDBACK_SCORE_NAMES` | Find Feedback Score names | Find Feedback Score names |
| `OPIK_TRACES_GET_THREAD_COMMENT` | Get thread comment | Get thread comment |
| `OPIK_TRACES_GET_TRACE_BY_ID` | Get trace by id | Get trace by id |
| `OPIK_TRACES_GET_TRACE_COMMENT` | Get trace comment | Get trace comment |
| `OPIK_TRACES_GET_TRACE_STATS` | Get trace stats | Get trace stats |
| `OPIK_TRACES_GET_TRACE_THREAD` | Get trace thread | Get trace thread |
| `OPIK_TRACES_GET_TRACE_THREAD_STATS` | Get trace thread stats | Get trace thread stats |
| `OPIK_TRACES_LIST_THREAD_FEEDBACK_SCORE_NAMES` | Find Trace Threads Feedback Score names | Find Trace Threads Feedback Score names |
| `OPIK_TRACES_OPEN_TRACE_THREAD` | Open trace thread | Open trace thread |
| `OPIK_TRACES_SCORE_BATCH_OF_THREADS` | Batch feedback scoring for threads | Batch feedback scoring for threads |
| `OPIK_TRACES_SCORE_BATCH_OF_TRACES` | Batch feedback scoring for traces | Batch feedback scoring for traces |
| `OPIK_TRACES_UPDATE_THREAD` | Update thread | Update thread |
| `OPIK_TRACES_UPDATE_THREAD_COMMENT` | Update thread comment by id | Update thread comment by id |
| `OPIK_TRACES_UPDATE_TRACE` | Update trace by id | Update trace by id |
| `OPIK_TRACES_UPDATE_TRACE_COMMENT` | Update trace comment by id | Update trace comment by id |
| `OPIK_UPSERT_DATASET_ITEMS` | Upsert Dataset Items | Create or update Opik dataset items, using each supplied item UUID as its stable upsert key. Supplying copy_from_dataset_id and copy_from_version_id carries forward rows from that dataset version; omitting batch_group_id mutates the latest destination dataset version. |
| `OPIK_VIEWS_CREATE_VIEW` | Create view | Create a view with its first version |
| `OPIK_VIEWS_CREATE_VIEW_VERSION` | Create view version | Add a version to a view and make it current |
| `OPIK_VIEWS_GET_VIEW_BY_ID` | Get view by id | Get a view with its current version |
| `OPIK_VIEWS_GET_VIEW_VERSION` | Get view version | Get one version of a view |
| `OPIK_VIEWS_SET_VIEW_CURRENT_VERSION` | Select view version | Make an existing version the one that renders. Also used for rollback; writes no version. |
| `OPIK_VIEWS_UPDATE_VIEW` | Update view | Update the name and description of a view |
| `OPIK_WAIT_FOR_RUNNER_JOB` | Wait For Runner Job | Poll an existing Opik local runner job until it completes, fails, is cancelled, or times out. Use this only after obtaining a job ID through another workflow, because the create local runner job endpoint returns an empty response and does not provide a job ID for safe create-and-wait polling. |
| `OPIK_WORKSPACE_PERMISSIONS_GET_WORKSPACE_USER_PERMISSIONS` | Get workspace permissions for the authenticated user | Get workspace permissions for the authenticated user |
| `OPIK_WORKSPACES_COSTS_SUMMARY` | Get costs summary | Get costs summary |
| `OPIK_WORKSPACES_GET_COST` | Get cost daily data | Get cost daily data |
| `OPIK_WORKSPACES_GET_METRIC` | Get metric daily data | Get metric daily data |
| `OPIK_WORKSPACES_GET_WORKSPACE_CONFIGURATION` | Get workspace configuration | Get workspace configuration |
| `OPIK_WORKSPACES_GET_WORKSPACE_SPAN_METRIC` | Get workspace span metric | Gets a span metric time series aggregated across the workspace. When project_ids is empty, all projects in the workspace are included; otherwise only the given projects. |
| `OPIK_WORKSPACES_GET_WORKSPACE_TOKEN_USAGE_NAMES` | Get workspace token usage names | Gets the distinct span token usage key names aggregated across the workspace. When project_ids is empty, all projects in the workspace are included; otherwise only the given projects. |
| `OPIK_WORKSPACES_METRICS_SUMMARY` | Get metrics summary | Get metrics summary |
| `OPIK_WORKSPACES_UPSERT_WORKSPACE_CONFIGURATION` | Upsert workspace configuration | Upsert workspace configuration |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to Opik by Comet
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["opik"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["opik"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run Opik by Comet tools with your agent

Send a request, execute the Opik by Comet tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Find failed traces from yesterday in my Opik project and summarize the main errors."}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Find failed traces from yesterday in my Opik project and summarize the main errors." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to Opik by Comet and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["opik"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["opik"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a Opik by Comet request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to Opik by Comet tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Find failed traces from yesterday in my Opik project and summarize the main errors.")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Find failed traces from yesterday in my Opik project and summarize the main errors.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native Opik by Comet Integration

- Supports both Opik by Comet MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable trace and evaluation tool execution
- Rich coverage for reading, searching, and analyzing your Opik by Comet projects, traces, and spans

### 2. Secure API Key Auth

- Connect Opik by Comet with your API key without writing custom authentication code
- Central place to store, scope, and rotate Opik by Comet credentials
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access Opik by Comet
- Scoped, least privilege access to Opik by Comet resources
- Full audit trail of agent actions to support review and compliance

## Use Opik by Comet with any AI Agent Framework

Choose a framework you want to connect Opik by Comet with:

- [ChatGPT](https://composio.dev/toolkits/opik/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/opik/framework/claude-cowork)

## Related Toolkits

- [Composio](https://composio.dev/toolkits/composio) - Composio is an integration platform that connects AI agents with hundreds of business tools. It streamlines authentication and lets you trigger actions across services—no custom code needed.
- [Composio search](https://composio.dev/toolkits/composio_search) - Composio search is a unified web search toolkit spanning travel, e-commerce, news, financial markets, images, and more. It lets you and your apps tap into up-to-date web data from a single, easy-to-integrate service.
- [Perplexityai](https://composio.dev/toolkits/perplexityai) - Perplexityai delivers natural, conversational AI models for generating human-like text. Instantly get context-aware, high-quality responses for chat, search, or complex workflows.
- [Browser tool](https://composio.dev/toolkits/browser_tool) - Browser tool is a virtual browser integration that lets AI agents interact with the web programmatically. It enables automated browsing, scraping, and action-taking from any AI workflow.
- [Ai ml api](https://composio.dev/toolkits/ai_ml_api) - Ai ml api is a suite of AI/ML models for natural language and image tasks. It provides fast, scalable access to advanced AI capabilities for your apps and workflows.
- [AI/ML API MCP](https://composio.dev/toolkits/ai_ml_api_mcp) - AI/ML API MCP is a unified gateway to hundreds of AI models and generation APIs. It gives teams one place to compare models, run multimodal jobs, and track usage.
- [Aivoov](https://composio.dev/toolkits/aivoov) - Aivoov is an AI-powered text-to-speech platform offering 1,000+ voices in over 150 languages. Instantly turn written content into natural, human-like audio for any application.
- [All images ai](https://composio.dev/toolkits/all_images_ai) - All-Images.ai is an AI-powered image generation and management platform. It helps you create, search, and organize images effortlessly with advanced AI capabilities.
- [AllModels](https://composio.dev/toolkits/allmodels) - AllModels is a unified API for text-to-speech, speech-to-text, realtime voice, and voice cloning across AI providers. It gives developers one consistent way to build and manage voice features.
- [AltTextLab](https://composio.dev/toolkits/alt_text_lab) - AltTextLab is an AI service that generates accessible, SEO-aware alt text for images. It helps teams make image content easier to understand, index, and publish.
- [Anthropic administrator](https://composio.dev/toolkits/anthropic_administrator) - Anthropic administrator is an API for managing Anthropic organizational resources like members, workspaces, and API keys. It helps you automate admin tasks and streamline resource management across your Anthropic organization.
- [Api labz](https://composio.dev/toolkits/api_labz) - Api labz is a platform offering a suite of AI-driven APIs and workflow tools. It helps developers automate tasks and build smarter, more efficient applications.
- [Apiframe](https://composio.dev/toolkits/apiframe) - Apiframe is an API platform for generating and managing AI images, videos, music, uploads, assets, jobs, and custom LoRAs. It gives developers one clean API for creative AI workflows without juggling multiple model providers.
- [Apipie ai](https://composio.dev/toolkits/apipie_ai) - Apipie ai is an AI model aggregator offering a single API for accessing top AI models from multiple providers. It helps developers build cost-efficient, latency-optimized AI solutions without juggling multiple integrations.
- [Arize AX](https://composio.dev/toolkits/arize_ax) - Arize AX is an AI engineering platform for tracing, evaluating, and improving AI applications. Use it to debug LLM behavior, compare experiments, and improve production AI quality.
- [Artificial Analysis](https://composio.dev/toolkits/artificial_analysis) - Artificial Analysis is an independent benchmarking platform for AI models and API providers. Use it to compare model intelligence, coding, math, pricing, latency, throughput, and arena rankings.
- [AssemblyAI](https://composio.dev/toolkits/assemblyai) - AssemblyAI is a speech-to-text and audio intelligence API for uploaded or hosted media. Use it to turn audio and video into accurate transcripts, summaries, and insights.
- [AssemblyAI MCP](https://composio.dev/toolkits/assemblyai_mcp) - AssemblyAI MCP is a hosted speech-to-text and audio intelligence service for transcribing and analyzing media. It helps teams turn audio and video into searchable, translated, actionable transcripts.
- [Astica ai](https://composio.dev/toolkits/astica_ai) - Astica ai provides APIs for computer vision, NLP, and voice synthesis. Integrate advanced AI features into your app with a single API key.
- [Avoma](https://composio.dev/toolkits/avoma) - Avoma is an AI meeting assistant for recording, transcribing, analyzing, and managing meetings, calls, notes, scorecards, and conversation intelligence. It helps teams turn conversations into searchable notes, follow-ups, coaching insights, and revenue intelligence.

## Frequently Asked Questions

### Do I need my own developer credentials to use Opik by Comet with Composio?

Yes, Opik by Comet requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
