Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

652 B
Raw Blame
---
title: AI (Vercel AI SDK, OpenAI, Anthropic)
description: Record every LLM call made through the Vercel AI SDK, the OpenAI client or the Anthropic client as OpenPanel AI events.
---

`@openpanel/ai` records LLM calls from the Vercel AI SDK and the official OpenAI and Anthropic clients. It is part of the [AI observability](/docs/ai-observability) beta.

- [Set it up with the Vercel AI SDK](/docs/ai-observability/vercel-ai-sdk)
- [Wrap an OpenAI client](/docs/ai-observability/openai)
- [Wrap an Anthropic client](/docs/ai-observability/anthropic)
- [Send events yourself](/docs/ai-observability/manual-capture) with `op.ai()` or the raw payload