Skip to main content
The AgentBasis Python SDK provides a simple, lightweight way to track the performance, traces, sessions, and behavior of AI agents. It sends data using the OpenTelemetry (OTel) standard, making it compatible with AgentBasis and other observability backends. This is the foundation SDK that enables deep observability for coded agents built with:

Pure Python

Track any function with decorators

LLM Providers

OpenAI, Anthropic, Gemini

LangChain

Full chain and tool tracing

Pydantic AI

Agent monitoring

Installation

To get started, install the package using pip:
pip install agentbasis

Next Steps