Provider LogoProvider LogoProvider LogoProvider LogoProvider LogoProvider Logo

Track every OpenAI
call. Know your costs.

Two lines of code. Automatic token tracking, cost attribution, and latency monitoring — across OpenAI, Anthropic, Groq, Gemini, and more. No proxies, zero added latency.

$pip install trackly

Questions? Reach out at support@tracklyai.in

main.py
from trackly import Trackly from langchain_anthropic import ChatAnthropic # 1. Init with metadata trackly = Trackly( feature="chatbot", environment="prod" ) # 2. Attach callback — that's it llm = ChatAnthropic( model="claude-3-5-sonnet-latest", callbacks=[trackly.callback()], ) # Every Claude call is now tracked automatically ✓
0
Events tracked
6
Providers
2
Lines of code
Features

Everything you need to understand
your AI spend

From zero-config provider detection to per-user cost attribution — Trackly gives you complete visibility without changing how you write code.

Zero-config provider detection

Pass your LLM to trackly.callback() and walk away. Provider resolved from LangChain's class namespace — not guessed from model names — so Groq, Ollama, Together, and Fireworks all work out of the box.

OpenAIAnthropicGroqGeminiMistralOllamaTogetherFireworksBedrockCohere

Detected automatically

provider →openai
model →gpt-4o

Cost attribution by feature

See exactly which features are driving your bill. Tag calls with feature= and get a live breakdown.

summarizer
$18.42
chat
$13.71
rag-pipeline
$8.53
onboarding
$4.26

Latency per model

P50 / P95 tracked per model, per feature.

312ms

▲ P95 · gpt-4o · last 24h

P50

198ms

P95

312ms

Per-user cost

Know your most expensive users instantly.

u_8821$4.21

u_3341$2.87

u_9102$1.44

u_0551$0.93

Live model pricing

Cost computed at ingest. Historical events stay accurate when providers change rates.

gpt-4oopenai$2.50 / 1M
claude-3-5-sonnetanthropic$3.00 / 1M
llama-3.3-70bgroq$0.59 / 1M
gemini-1.5-flashgoogle$0.075 / 1M

Cost alerts

Get notified before you overspend.

Budget exceeded
summarizer hit $20 limit
Spike detected
3× usage in last hour

Rich metadata

Tag any call. Filter anything.

llm.invoke( prompt, config={"metadata": { "_trackly": { "feature": "rag", "user_id": uid, } }} )

Daily usage trends

30-day rolling view. Spot spikes, monitor growth, export to CSV.

4.8M

+23% vs last month

Mar 1Mar 11Mar 22
How It Works

Start tracking in 6 simple steps

From sign-in to your first tracked LLM call — here's everything you need to get up and running with Trackly.

1

Sign in & view your Dashboard

After signing in, you land on the Trackly Dashboard. If you don't have any projects yet, you'll be prompted to create your first one.

Step 1: Sign in & view your Dashboard
2

Navigate to Projects

Head to Organization Settings → Projects to see all your tracking environments. Each project isolates its data and API keys.

Step 2: Navigate to Projects
3

Create a new Project

Click "+ New Project", give it a name (e.g. "My App"), and hit Launch Project. Projects keep your tracking data cleanly separated.

Step 3: Create a new Project
4

Go to API Keys

Navigate to API Keys from the sidebar. You'll need a key to authenticate your SDK calls from your codebase.

Step 4: Go to API Keys
5

Generate an API Key

Click "+ Create API Key", give it a descriptive name, and optionally scope it to a specific project for tighter access control.

Step 5: Generate an API Key
6

Copy your API Key & start tracking

Your key is generated! Copy it immediately — you won't be able to see it again. Drop it into your environment variables and start tracking.

Step 6: Copy your API Key & start tracking
Pricing

Simple, transparent pricing

Start free. Scale when you're ready. No hidden fees — just raw performance and deep insights.

Starter

$0forever

For side projects and experiments.

50Klogs / month
  • 3 Projects
  • 7-day log retention
  • Basic analytics
  • Community support

Scale

$99/month

Advanced controls for high-volume traffic.

1Mlogs / month
  • Everything in Pro
  • 90-day log retention
  • Custom feature tags
  • Priority support
  • SLA guarantees

Need more? Contact us for enterprise pricing

About
Udaykumar Dhokia

Udaykumar Dhokia

Builder of Trackly · Software Developer

Trackly was built out of a real frustration. While working on agentic AI projects, I had no simple way to know how much each feature was costing me — especially when using Groq or Ollama where model names give no hint about the host platform.

I'm a Computer Engineering student from Ahmedabad with a focus on Full Stack Development, Agentic AI, and applied AI systems — RAG, vector search, and LLM tooling.

Agentic AILangChainFull StackRAGVector SearchFastAPIFlutterPostgreSQL
Contact

Got questions?
Let's talk.

Whether it's a bug, a feature request, a partnership idea, or just curiosity about how Trackly works — drop a message and I'll get back to you.

Usually responds within 24 hours