# Application AI Assistant: Ai Usage Card

AI token usage panel with a monthly progress bar, a per feature breakdown, and the overage policy stated in the same view.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/ai-usage-card
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [AI Assistant](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/ai-usage-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-ai-assistant-ai-usage-card
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: radix-ui
- shadcn/ui components: progress
- Installs to: `@/components/blocks/application-pro/ai-assistant/ai-usage-card`

## About this block

AI Usage Card is the token consumption panel for the
current billing period, Jun 1 to Jun 13, 2026. A Progress
bar shows 1,384,210 of 2,000,000 tokens used, 69% of the
monthly allowance. Below it a ruled breakdown lists Chat
(842,100), Autocomplete (391,440), and Search (150,670)
each with a mini bar scaled to its share. A shaded
overage policy box states the rule plainly: AI features
slow down at the cap but the workspace is never cut off
mid-task, responses resume at full speed when the billing
period resets on Jul 1.

PLAN_TOKENS, USED_TOKENS, and the breakdown array are
named constants; the fmt helper formats numbers with
locale commas. Showing the overage rule next to the meter
is what stops the mid-project support ticket when the
counter hits 100%.

## When to use

Reach for this block on the billing or AI settings page,
wired to your usage endpoint and billing period dates.
Pair it with the
[model picker card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant)
so admins can tune spend in one place.

A natural flow around it on an Application Pro page:

**Before**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Billing settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)

**After**

- [Model picker card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant)

## What you can display

One strong use is the monthly AI quota panel. Other usage
shapes:

- **Per user breakdown.** Rows by team member with their
  individual token counts and the heaviest users flagged.
- **Project allocation.** Tokens charged per project with
  a budget limit and a warn-at threshold.
- **API key usage.** Calls and tokens per key with the
  last-used timestamp and a revoke action.

> Tip: always state the overage policy in the same view
> as the meter; a bare progress bar next to the cap is
> an anxiety machine.

## More in Application AI Assistant

- [Action Approval Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/action-approval-card)
- [Agent Run Trace](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/agent-run-trace)
- [Assistant Chat Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/assistant-chat-panel)
- [Assistant Empty State](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/assistant-empty-state)
- [Citations Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/citations-panel)
- [Context Sources Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/context-sources-panel)
- [Conversation History List](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/conversation-history-list)
- [Feedback Thumbs Row](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/feedback-thumbs-row)
- [Guardrails Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/guardrails-panel)
- [Inline Suggestion Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/inline-suggestion-card)
- [Memory Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/memory-panel)
- [Model Picker Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/model-picker-card)
- [Prompt Composer](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/prompt-composer)
- [Prompt Library Grid](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/prompt-library-grid)
- [Response Compare](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/response-compare)
- [Scheduled Agents List](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/scheduled-agents-list)
- [Thread Summary Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/thread-summary-card)
