[FEATURE] Real-time cost/token usage display and warnings in Claude Code

Resolved 💬 3 comments Opened Jun 4, 2026 by davporte Closed Jul 8, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Claude Code sessions can silently grow to 1M token contexts, resulting in unexpected bills of $100+ within days. There is no in-session visibility into token consumption or cost — users only discover the damage after checking the billing dashboard.

Proposed Solution

Embed a live session token counter and running cost estimate directly into the existing daily/weekly usage dashboard that already tracks this data. Add a configurable threshold warning (e.g. at 50% and 75% of context limit) that surfaces in the Claude Code UI, prompting the user to /clear or compact. The data pipeline already exists — it just needs to be surfaced in-session rather than only post-hoc.

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗