🤖 Track your AI apps.
Use our free template.
Back to templates

LLM Tracker

Build your own real-time LLM usage tracker

LLM Tracker

This is a template for an LLM performance tracker dashboard and LLM cost calculator. It is built with Next.js, Tinybird and Clerk

Use this template to bootstrap a multi-tenant, user-facing LLM analytics dashboard and cost calculator.

Features:

  • Track LLM costs, requests, tokens and duration by model, provider, organization, project, environment and user
  • Multi-tenant user-facing dashboard
  • AI cost calculator
  • Vector search
  • Ask AI integration

Fork it and make it your own! You can track your own metrics and dimensions.

Set up the project

Fork the GitHub repository and deploy the data project to Tinybird.

# install the tinybird CLI
curl https://tinybird.co | sh
# select or create a new workspace
tb login
# deploy the template
tb --cloud deploy --template https://github.com/tinybirdco/llm-performance-tracker/tree/main/tinybird

Instrumentation

Send your data to Tinybird using the Events API. Some examples:

Use the hosted app

# copy the token to the clipboard
tb --cloud token copy read_pipes && TINYBIRD_TOKEN=$(pbpaste)
# use the hosted dashboard with your data
open https://llm-tracker.tinybird.live\?token\=$TINYBIRD_TOKEN

Local development, multi-tenancy, customization and more

See README.md

Tech stack

Build fast data products, faster.

Try Tinybird and bring your data sources together and enable engineers to build with data in minutes. No credit card required, free to get started.