Getting Started
Trakr instruments any AI agent workflow in two lines of code. After setup, every LLM call is automatically tracked with cost, latency, tokens, and tool use.
1. Create an account
Sign up at the Trakr dashboard and complete onboarding to get your API key.
2. Install the SDK
Choose your language:
- TypeScript SDK —
npm install @trakr/monitor(orpnpm add @trakr/monitor) - Python SDK —
pip install trakr-monitor
3. Initialize and run
import Trakr from '@trakr/monitor';
Trakr.init({ apiKey: process.env.TRAKR_API_KEY });
All Anthropic and OpenAI client calls are automatically captured after initialization.
4. View runs in the dashboard
Open the dashboard to see real-time cost per run, error rates, and workflow breakdowns. Set up alerts for cost spikes, failures, and loop detection.