Skip to content

Per-session and consolidated token usage visibility in Claude Code #31564

Description

@rdevarakond88

Preflight Checklist

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

Problem Statement

Currently there is no way to see how many tokens were consumed in an individual Claude Code session, or across sessions in a consolidated view. When using /resume to pick a past session, there is no token metadata shown alongside it.

Proposed Solution

A simple toggle between "Session View" and "Summary View" within the Claude Code interface, similar to how many tools show per-request vs. aggregate
metrics.

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

Add token usage visibility at two levels, with the ability to toggle between them:

  1. Per-session view — when browsing or resuming a session, show input tokens, output tokens, and total tokens consumed for that session
  2. Consolidated view — an aggregate summary across all sessions (daily/weekly/all-time) so users can understand their overall consumption pattern

Why this matters

  • Helps users understand which types of tasks are token-intensive
  • Enables prompt optimization — users can experiment and see the impact
  • Helps manage context window bloat by making it visible rather than invisible
  • Particularly useful for non-technical users who are new to AI-assisted development and learning to work efficiently with Claude Code

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions