AI Usage Meter
Token consumption and budget control panel in an AI workspace.
About this block
What it's for
- Token consumption and budget control panel in an AI workspace.
- Widget for monitoring inference cost and rate limits in developer consoles.
- Billing and LLM model quota section in multi-tenant SaaS platforms.
Includes
- Token breakdown
- Cost vs budget tracking
- Model cost distribution
- Timeframe switching
- Threshold alert state
- Rate limit saturation
- Interactive budget adjustment
- Empty state
Works with
- Radix UI primitives (the registry variant it ships in)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add ai-usage-meterInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/ai-usage-meterUsed in
- Type
- Block
- Variants
- Radix UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- Sample data
- Ships with sample data in
data.ts; replace it with your own.
- npm packages
- None beyond your project's React and Next.js
- Registry dependencies
lib-primitives- Files
3 files
- components/agentic-ui/ai-usage-meter/index.tsx
- components/agentic-ui/ai-usage-meter/data.ts
- components/agentic-ui/ai-usage-meter/types.ts
Related components
AI Action Confirmation
Operations agent that asks to drop production tables and shows the rows, size and last use of each one.
Details and live previewAI Agent Memory Viewer
Assistant settings where the user reviews and corrects what the agent knows about them (time zone, style preferences).
Details and live previewAI Agent Status Badge
Header of an agent run that moves from working to waiting-approval and opens the approval on click.
Details and live previewAI Chat Empty State
Assistant chat with no messages that offers four starting points configured by the workspace.
Details and live preview