Agent Observability
UI componentsCharts

Token Usage

Per-turn input/output token counts with running totals. Designed to answer "is this conversation blowing the budget?" without a calculator.

Preview

Loading token usage preview…

Installation

pnpm dlx agent-observability-ui@latest add token-usage-section
npx agent-observability-ui@latest add token-usage-section
yarn dlx agent-observability-ui@latest add token-usage-section
bunx --bun agent-observability-ui@latest add token-usage-section

Usage

import { TokenUsageSection } from '@/components/token-usage-section'

;<TokenUsageSection />

Props

PropTypeDefaultDescription
metricsSessionMetrics | nullOverride the metrics resolved from provider context.

On this page