Feature Request: Add Token Usage To Status Line Input
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 8 comments · opened Aug 20, 2025 · closed Jan 5, 2026
Add input output token usage to the status line input.
8 Comments
---
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
---
Hey, this is a great feature request! I was curious about this myself and did a bit of digging into the documentation to see if it was possible.
From what I can tell, you're right that this isn't currently supported, but it's a fantastic idea for improving visibility on token consumption.
Here’s what I found:
/costcommand, which gives you a summary for the entire session. It's useful, but not the real-time, per-turn feedback you're looking for.So, it seems like the core of your feature request is for the
claudeapp to add token/cost data to the JSON object it sends to the status line script.A Possible (but complex) Workaround
Thinking about a hacky way to get something close to this, you might be able to chain together a couple of features. This is definitely not ideal, but could be a fun experiment:
You could potentially use the Hooks feature. The
Stophook, as described in the Hooks Reference, runs when Claude finishes responding and is given the path to the session transcript file (transcript_path).You could create a script for the
Stophook that:resultmessage, which often contains cost info (like in the SDK output).~/.claude/last_cost.txt).Then, your separate
/statuslinescript could simplycat ~/.claude/last_cost.txtas part of its output.It's a bit convoluted and might have some lag, but it's the only way I can think of to get that data from one part of the app to the other without official support.
Anyway, I'm giving this issue a thumbs up. Hopefully, the devs see this and consider adding it natively. It would be a huge quality-of-life improvement
I'm doing something similar to your suggestion for the time being without the whole hook + temp file, just having the status line itself read and parse the contents of the
transcript_pathfrom stdin given to statuslineThis already existed in version 1.0.81 - token counter and time. It was just removed in version 1.0.82. See this thread https://github.com/anthropics/claude-code/issues/5929
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
I dont think this works yet.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.