Before you begin, make sure you have:
- A PandaProbe account. Sign up at app.pandaprobe.com.
- A PandaProbe API key + project name.
- An API key for the LLM provider you want to trace: OpenAI, Gemini, or Anthropic.
1
Install the SDK
- pip
- uv
2
Set environment variables
Self-hosting PandaProbe? Set
PANDAPROBE_ENDPOINT="your-endpoint".3
Wrap your LLM client
Choose the provider you want to trace. Make sure the matching provider API key is available in your environment.
- OpenAI
- Gemini
- Anthropic
4
View your trace
Open the PandaProbe dashboard. You should see a trace with an LLM span containing the input messages, output, model name, and token usage, all captured automatically.
What’s next?
LLM Providers
Provider wrappers for OpenAI, Anthropic, Gemini, and more
Agent Frameworks
Framework integrations for LangGraph, CrewAI, and more
Manual Instrumentation
Full control with decorators and context managers
For short-lived scripts, call
pandaprobe.flush() before the process exits to ensure all traces are sent. Long-running services flush automatically.
