For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: Settings for open weight models on a workspace GPU server, sized by precision, context and parallel requests
When to use
- A self-serve planner where an admin sets next month's token volume, model and add-ons against a budget
- A month to date breakdown of AI spend by model, team, agent and API key, with the caps at risk
- Inference on your own hardware: edge nodes under a power budget, or open weight models sized to a GPU server
When not to use
- Planning next month's hosted model spend against a budget: use the Usage Planner block
- Staff back office for invoices, subscriptions, dunning and metered charges: use the Billing blocks
- Public plan tiers or an upgrade paywall shown before anyone has usage: use the Pricing blocks
- An operator console for provider health, routing and quotas across an org: use the AI Ops blocks
Agent notes
MODELS,APPLIEDandSERVERin data.tsx hold the cards and running config; every memory figure and LED readsmemoryOfandloadsOfhandleApplyandhandleRestartonly wait and fire a sonnertoast; send theconfigOfJSON that Copy and Download write to your server there- The drawing lives in
SCENEin server-scene.ts, sorted once bypaintOrder; each model listsgpusthat must match a card inCARD_X AiUsagetakes no props and calls no API; its figures are typed constants, mostly in components/data.tsx, so swap them for your data- Money prints through en-US USD helpers such as
formatDollarsin formatters.ts, so another currency starts there
Third-party API docs
- Sonner v2: API reference, docs
https://reui.io/blocks/ai-agents/ai-usage/ai-usage-4.mdget_block("ai-usage-4")npx shadcn@latest add @reui/ai-usage-4Shadcn Components in the Local Models Block
Dependencies
- cn
- sonner
Shadcn Local Models Block
Local model settings with a GPU server cutaway whose card LEDs show model memory. Part of the ReUI Shadcn AI & Agents AI Usage blocks collection.
Size open weight models on your own GPU server: an isometric server whose card LEDs show memory in use, model rows, an inspector, and a header to review pending changes, fit, copy, download or restart. ReUI Frame, Alert; shadcn Slider, Popover.
It is composed from Alert, Alert Dialog, Avatar, Badge, Button, Button Group, Dropdown Menu, Field, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Local Models Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn AI & Agents AI Usage blocks to assemble a full screen instead of a single section.
All Shadcn AI & Agents AI Usage Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Usage Planner Usage planner with a stepped token ruler, model cards and a live spend estimate
- Spend Map Spend map that fans monthly AI spend out by model, team, agent and API key
- Edge Nodes Edge AI node fleet with an isometric inference box you open, inspect and power cap
Related Shadcn AI & Agents Block Categories
- AI Chat (13) Conversation surfaces for AI products, from full chat shells to embeddable threads, sheets, and launchers.
- Agent Activity (5) Agent run views, from live step feeds and approvals to research traces, MCP call tables, and run reports.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Local Models block?
Use it for settings for open weight models on a workspace GPU server, sized by precision, context and parallel requests.
The AI Usage category fits:
- A self-serve planner where an admin sets next month's token volume, model and add-ons against a budget
- A month to date breakdown of AI spend by model, team, agent and API key, with the caps at risk
- Inference on your own hardware: edge nodes under a power budget, or open weight models sized to a GPU server
For planning next month's hosted model spend against a budget, use the Usage Planner block. For staff back office for invoices, subscriptions, dunning and metered charges, use the Billing blocks. For public plan tiers or an upgrade paywall shown before anyone has usage, use the Pricing blocks. For an operator console for provider health, routing and quotas across an org, use the AI Ops blocks.
What is the Local Models block built with?
Can I restyle the Local Models block?
How should I use Shadcn ai usage blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.