Show number of tokens used

Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 3 comments · opened Mar 20, 2025 · closed May 8, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator) responded on this thread — see the highlighted reply below.

/cost shows total cost in dollars:

> /cost
  ⎿  Total cost:            $0.0975
     Total duration (API):  13.2s
     Total duration (wall): 1m 59.9s
     Total code changes:    0 lines added, 0 lines removed

Would be great to see total tokens too, which is helpful for calculating cost on Bedrock or alternate models

View original on GitHub ↗

3 Comments

tsplude · 1 year ago

Big +1
In particular we should be able to see tokens in and tokens out since most pricing models (as far as I can tell) charge differently for these, and these are what is reported by the usage page in anthropic console

ant-kurt collaborator · 1 year ago

A simple version of this was added in v0.2.104.

github-actions[bot] · 1 year ago

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.