Skip to main content
Please use Python version 3.10 or higher to ensure compatibility.
pip install lunary

Setup

Add the LUNARY_PUBLIC_KEY to your environment variables.
export LUNARY_PUBLIC_KEY="PUBLIC KEY"
You can use dotenv to load the environment variables from a .env file.
from dotenv import load_dotenv
load_dotenv()

Next steps

LangChain

Usage with LangChain.

OpenAI

Automatically track your OpenAI 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.