5 minutes to get up and running. Just 3 lines of code to start tracking.
1. Install the SDK
2. Get Your Credentials
You’ll need two things from the AgentBasis dashboard:3. Set Environment Variables
Add your credentials to your environment. The SDK will read them automatically.- .env file
- Linux / macOS
- Windows (PowerShell)
python-dotenv or your framework’s env loader.4. Initialize the SDK
Add this at the top of your main application file:Alternative: Pass credentials directly (not recommended for production)
Alternative: Pass credentials directly (not recommended for production)
For quick testing, you can pass credentials directly:
5. Instrument Your LLM
Choose your LLM provider and add one line to start tracking:- OpenAI
- Anthropic
- Gemini
6. Track Custom Functions (Optional)
Use the@trace decorator to track any function:
What’s Next?
Core Concepts
Learn about context, sessions, and manual tracing
LangChain
Trace chains, agents, and tools
Pydantic AI
Monitor Pydantic AI agents
API Reference
Complete function reference

