> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://www.comet.com/docs/opik/integrations/dify/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://www.comet.com/_mcp/server. # Observability for Dify with Opik > Start here to integrate Opik into your Dify-based genai application for end-to-end LLM observability, unit testing, and optimization. Learn how to connect Opik with Dify to monitor your applications' performance. ## Setup Instructions Follow these simple steps to connect Dify with Opik: 1. Select the Dify app you want to monitor 2. Select **Monitoring** from the side menu 3. Click on **Tracing app performance** 4. Click on **Configure** for Opik 5. Enter your connection details based on your Opik version: ![](/docs/opik/_fern-img/87caef67702cbe755734be325ebea4194246f7e860a04d0ce88009d24f0b6855.webp) #### Hosted Opik Fill in these fields: * **API Key**: Your Comet API Key * **Project**: Your preferred project name (if left empty, it will be created automatically) * **Workspace**: Your Comet Workspace name (must already exist) * **URL**: Your Opik installation URL (make sure it ends with `/api/`) #### Self-Hosted Opik Fill in these fields: * **API Key**: Leave this empty * **Project**: Your preferred project name (if left empty, it will be created automatically) * **Workspace**: Type `default` * **URL**: Your Opik installation URL (make sure it ends with `/api/`) ## How to View Your Traces After setup, you can view your application traces by: 1. Opening the **Monitoring** section from the side menu 2. Finding and clicking the **OPIK** button in the top-right corner 3. Selecting **View** to open your Opik project dashboard ![](/docs/opik/_fern-img/4eac294b3ccc1c043d26d77ddb5569598b2c7b7715b97dc81c03a0e0f5df7ad9.webp) > Debug, evaluate, and monitor your LLM applications, RAG systems, and agentic workflows with comprehensive tracing, automated evaluations, and production-ready dashboards.