DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to review 30 days of token spend by agent and model with Agent Hud Native Open

Open the statistics window to see tokens and API-priced cost by time, agent, model and session.

Short answer: Build and open the app with make run; then let your agents run so the app collects token history, which is kept for 30 days on your Mac; open the statistics window and choose a time range of 5 hours, 24 hours, 7 days or 30 days. All steps.

Who it is forA developer or team lead who wants to know which agent, model or session is using the most tokens and what it would cost at API prices.

The problemToken use is spread across several agents and sessions, so the total cost and the heavy sessions are hard to see.

The outcomeA statistics view showing token history by time, agent, model and session, with an estimated cost.

What you need first

  • A Mac running macOS 14 or later
  • Xcode or the Xcode Command Line Tools with a Swift 6 toolchain
  • git, to clone the repository
  • At least one supported agent installed and signed in, for live data (not needed for sample data)

Steps

  1. Build and open the app with make run
  2. Let your agents run so the app collects token history, which is kept for 30 days on your Mac
  3. Open the statistics window and choose a time range of 5 hours, 24 hours, 7 days or 30 days
  4. Switch to the by agent and model view and narrow the chart to the models and token kinds you need
  5. Open a session to see tokens per turn and how full the context window got

Prompt for your agent

Use agent-hud-native-open on this Mac after make run to open the statistics window and read the 30 day token totals for each agent. Report the top three models by tokens and their estimated cost. Verify that costs marked with the approximate symbol are noted as estimates.

Caveat. Costs are priced at API prices where a model has one and are only an estimate on a subscription, not a charge.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for jazzenchen/agent-hud-native-open and "Review 30 days of token spend by agent and model"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer