opencode
opencode copied to clipboard
Incorrect token usage
Description
When using opencode via the terminal, I dont think it is counting the tokens correctly, it is saying around 50 tokens for a 10 minute task, when i checked in my api dashboard, it was around 75,000 tokens that were used.
OpenCode version
1.0.150
Steps to reproduce
You would just need to send a message
Screenshot and/or share link
Operating System
ubuntu 24.04
Terminal
No response
This issue might be a duplicate of existing issues. Please check:
- #3322: web and tui reports token usage differently - TUI token counting logic differs from web version
- #2020: bug: token cost seems inaccurate - similar concern about token count discrepancies
Feel free to ignore if none of these address your specific case.
what provider are you using? The token calculation comes from the data they send back but maybe its bugged
it seems to have been fixed with 1.0.152