Skip to main content
Please use Python version 3.10 or higher to ensure compatibility.
If you want to monitor Anthropic with the official Python SDK, install both packages:

Setup

Add the LUNARY_PUBLIC_KEY to your environment variables.
You can use dotenv to load the environment variables from a .env file.

Next steps

LangChain

Usage with LangChain.

OpenAI

Automatically track your OpenAI calls.

Anthropic

Automatically track your Anthropic calls.

User Tracking

Identify your users.

Tagging

Segment your queries with tags.

Manual Integration

Learn how to use track_event().

Agents & Tools

Setup tracing by tracking agents & tools.

API Reference

Full list of methods and classes.