DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to audit token spend by agent, model and session with Agent Hud Open

Review 30 days of token history and estimated API cost per agent, model, session and turn.

Short answer: Run make run from the Agent Hud Open folder and let it collect local records for a while; then open the statistics window and select the last 5 hours, 24 hours, 7 days or 30 days; review the card for each agent, then narrow the chart to the models and token kinds you care about. All steps.

Who it is forA developer or team lead who wants to know which agent, model or session is using the most tokens.

The problemToken use is scattered across agent tools, so it is hard to see where the spend goes or which sessions use the most context.

The outcomeA statistics window that breaks tokens down by time, agent, model, session and turn, with cost estimates at API prices.

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, such as Claude Code or Codex

Steps

  1. Run make run from the Agent Hud Open folder and let it collect local records for a while.
  2. Open the statistics window and select the last 5 hours, 24 hours, 7 days or 30 days.
  3. Review the card for each agent, then narrow the chart to the models and token kinds you care about.
  4. Open a session to see tokens per turn, how full the context window got, and each model call in a turn.
  5. Read the cost figures, noting that those marked ≈ are priced at API prices and are an estimate on a subscription, not a charge.

Prompt for your agent

In the agent-hud-open repository, run `make run`, then open the statistics window and report the token total for the last 24 hours for each agent shown. Verify that the cost figures marked ≈ are labelled as estimates.

Caveat. Cost figures are priced at the vendor's API prices where a model has one, so they are not what a subscription actually charges.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for jazzenchen/agent-hud-open and "Audit token spend by agent, model and session"

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