Opik TypeScript SDK
The Opik TypeScript SDK provides a powerful and easy-to-use interface for tracing, monitoring, and debugging your JavaScript and TypeScript applications. It offers comprehensive observability for LLM applications, agent workflows, and AI-powered systems.
Integrations
Opik provides seamless integrations with popular JavaScript/TypeScript frameworks and libraries:
Frameworks:
- Agno - Trace and monitor your Agno AI agent applications
- BeeAI - Trace and monitor your BeeAI agent applications
- LangChain - Trace and monitor your LangChain applications, including chains, agents, tools, and retrievers
- Mastra - Trace and monitor your Mastra AI applications
- Vercel AI SDK - Integrate Opik with Vercel AI SDK for monitoring AI-powered applications
Model Providers:
- Cloudflare Workers AI - Trace and monitor your Cloudflare Workers AI applications
- Gemini - Trace and monitor your applications using the Google Generative AI Node.js SDK
- OpenAI - Trace and monitor your applications using the official OpenAI Node.js SDK
For a complete list of TypeScript/JavaScript integrations and other language integrations, see the Integrations Overview.
Installation
Option 1: Using the Opik TS (Recommended)
The fastest way to get started is using the Opik TS, an interactive CLI tool that sets up Opik automatically in your project:
The CLI will:
- Detect your project setup
- Install Opik SDK and integration packages
- Configure environment variables
- Set up Opik client for your LLM integrations
Option 2: Manual Installation
You can also install the opik package manually using your favorite package manager:
Opik Configuration
You can configure the Opik client using environment variables.
Or you can pass the configuration to the Opik client constructor.
Usage
You can find the full Typescript reference documentation here.